From b11cfc0938932e8b70a12b236f62f7fcfc4e642d Mon Sep 17 00:00:00 2001 From: Aleksandr Razumov Date: Sat, 29 Apr 2023 09:51:57 +0300 Subject: [PATCH 1/4] chore(deps): update otel --- go.mod | 12 ++++++++---- go.sum | 30 +++++++++++++++++++++--------- 2 files changed, 29 insertions(+), 13 deletions(-) diff --git a/go.mod b/go.mod index 0dcfe6847..77ce15c97 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/ogen-go/ogen -go 1.19 +go 1.20 require ( github.com/davecgh/go-spew v1.1.1 @@ -14,9 +14,9 @@ require ( github.com/mattn/go-isatty v0.0.18 github.com/stretchr/testify v1.8.2 github.com/valyala/fasthttp v1.46.0 - go.opentelemetry.io/otel v1.14.0 - go.opentelemetry.io/otel/metric v0.37.0 - go.opentelemetry.io/otel/trace v1.14.0 + go.opentelemetry.io/otel v1.15.0 + go.opentelemetry.io/otel/metric v0.38.0 + go.opentelemetry.io/otel/trace v1.15.0 go.uber.org/multierr v1.11.0 go.uber.org/zap v1.24.0 golang.org/x/exp v0.0.0-20230321023759-10a507213a29 @@ -32,13 +32,17 @@ require ( github.com/go-logr/logr v1.2.4 // indirect github.com/go-logr/stdr v1.2.2 // indirect github.com/klauspost/compress v1.16.3 // indirect + github.com/kr/pretty v0.3.1 // indirect github.com/mattn/go-colorable v0.1.13 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect + github.com/rogpeppe/go-internal v1.10.0 // indirect github.com/segmentio/asm v1.2.0 // indirect github.com/valyala/bytebufferpool v1.0.0 // indirect go.uber.org/atomic v1.10.0 // indirect + go.uber.org/goleak v1.2.1 // indirect golang.org/x/mod v0.10.0 // indirect golang.org/x/sys v0.7.0 // indirect + gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index 922fa3323..3dbf53f26 100644 --- a/go.sum +++ b/go.sum @@ -2,6 +2,7 @@ github.com/andybalholm/brotli v1.0.5 h1:8uQZIdzKmjc/iuPu7O2ioW48L81FgatrcpfFmiq/ github.com/andybalholm/brotli v1.0.5/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig= github.com/benbjohnson/clock v1.3.0 h1:ip6w0uFQkncKQ979AypyG0ER7mqUSBdKLOgAle/AT8A= github.com/benbjohnson/clock v1.3.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= +github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -27,16 +28,25 @@ github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/klauspost/compress v1.16.3 h1:XuJt9zzcnaz6a16/OU53ZjWp/v7/42WcR5t2a0PcNQY= github.com/klauspost/compress v1.16.3/go.mod h1:ntbaceVETuRiXiv4DpjP66DpAtAGkEQskQzEyD//IeE= -github.com/kr/pretty v0.2.1 h1:Fmg33tUaq4/8ym9TJN1x7sLJnHVwhP33CNkpYV/7rwI= +github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= +github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= +github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= +github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= +github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= +github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= github.com/mattn/go-isatty v0.0.18 h1:DOKFKCQ7FNG2L1rbrmstDN4QVRdS89Nkh85u68Uwp98= github.com/mattn/go-isatty v0.0.18/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= +github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= +github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjRBZyWFQ= +github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog= github.com/segmentio/asm v1.2.0 h1:9BQrFxC+YOHJlTlHGkTrFWf59nbL3XnCoFLTwDCI7ys= github.com/segmentio/asm v1.2.0/go.mod h1:BqMnlJP91P8d+4ibuonYZw9mfnzI9HfxselHZr5aAcs= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= @@ -50,15 +60,16 @@ github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6Kllzaw github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc= github.com/valyala/fasthttp v1.46.0 h1:6ZRhrFg8zBXTRYY6vdzbFhqsBd7FVv123pV2m9V87U4= github.com/valyala/fasthttp v1.46.0/go.mod h1:k2zXd82h/7UZc3VOdJ2WaUqt1uZ/XpXAfE9i+HBC3lA= -go.opentelemetry.io/otel v1.14.0 h1:/79Huy8wbf5DnIPhemGB+zEPVwnN6fuQybr/SRXa6hM= -go.opentelemetry.io/otel v1.14.0/go.mod h1:o4buv+dJzx8rohcUeRmWUZhqupFvzWis188WlggnNeU= -go.opentelemetry.io/otel/metric v0.37.0 h1:pHDQuLQOZwYD+Km0eb657A25NaRzy0a+eLyKfDXedEs= -go.opentelemetry.io/otel/metric v0.37.0/go.mod h1:DmdaHfGt54iV6UKxsV9slj2bBRJcKC1B1uvDLIioc1s= -go.opentelemetry.io/otel/trace v1.14.0 h1:wp2Mmvj41tDsyAJXiWDWpfNsOiIyd38fy85pyKcFq/M= -go.opentelemetry.io/otel/trace v1.14.0/go.mod h1:8avnQLK+CG77yNLUae4ea2JDQ6iT+gozhnZjy/rw9G8= +go.opentelemetry.io/otel v1.15.0 h1:NIl24d4eiLJPM0vKn4HjLYM+UZf6gSfi9Z+NmCxkWbk= +go.opentelemetry.io/otel v1.15.0/go.mod h1:qfwLEbWhLPk5gyWrne4XnF0lC8wtywbuJbgfAE3zbek= +go.opentelemetry.io/otel/metric v0.38.0 h1:vv/Nv/44S3GzMMmeUhaesBKsAenE6xLkTVWL+zuv30w= +go.opentelemetry.io/otel/metric v0.38.0/go.mod h1:uAtxN5hl8aXh5irD8afBtSwQU5Zjg64WWSz6KheZxBg= +go.opentelemetry.io/otel/trace v1.15.0 h1:5Fwje4O2ooOxkfyqI/kJwxWotggDLix4BSAvpE1wlpo= +go.opentelemetry.io/otel/trace v1.15.0/go.mod h1:CUsmE2Ht1CRkvE8OsMESvraoZrrcgD1J2W8GV1ev0Y4= go.uber.org/atomic v1.10.0 h1:9qC72Qh0+3MqyJbAn8YU5xVq1frD8bn3JtD2oXtafVQ= go.uber.org/atomic v1.10.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0= -go.uber.org/goleak v1.1.11 h1:wy28qYRKZgnJTxGxvye5/wgWr1EKjmUDGYox5mGlRlI= +go.uber.org/goleak v1.2.1 h1:NBol2c7O1ZokfZ0LEU9K6Whx/KnwvepVetCUhtKja4A= +go.uber.org/goleak v1.2.1/go.mod h1:qlT2yGI9QafXHhZZLxlSuNsMw3FFLxBr+tBRlmO1xH4= go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= go.uber.org/zap v1.24.0 h1:FiJd5l1UOLj0wCgbSE0rwwXHzEdAZS6hiiSnxJN/D60= @@ -80,7 +91,8 @@ golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= golang.org/x/tools v0.8.0 h1:vSDcovVPld282ceKgDimkRSC8kpaH1dgyc9UMzlt84Y= golang.org/x/tools v0.8.0/go.mod h1:JxBZ99ISMI5ViVkT1tr6tdNmXeTrcpVSD3vZ1RsRdN4= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= From 44e37a90223bc360fe421034e2e39abad866181a Mon Sep 17 00:00:00 2001 From: Aleksandr Razumov Date: Sat, 29 Apr 2023 09:52:12 +0300 Subject: [PATCH 2/4] fix(gen): update on otel api change --- gen/_template/cfg.tmpl | 4 ++-- gen/_template/client.tmpl | 6 +++--- gen/_template/handlers.tmpl | 6 +++--- gen/_template/header.tmpl | 1 + 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/gen/_template/cfg.tmpl b/gen/_template/cfg.tmpl index ac251d0f7..5ecffa180 100644 --- a/gen/_template/cfg.tmpl +++ b/gen/_template/cfg.tmpl @@ -24,7 +24,7 @@ func (cfg *otelConfig) initOTEL() { cfg.TracerProvider = otel.GetTracerProvider() } if cfg.MeterProvider == nil { - cfg.MeterProvider = metric.NewNoopMeterProvider() + cfg.MeterProvider = global.MeterProvider() } cfg.Tracer = cfg.TracerProvider.Tracer(otelogen.Name, trace.WithInstrumentationVersion(otelogen.SemVersion()), @@ -192,7 +192,7 @@ func WithTracerProvider(provider trace.TracerProvider) Option { // WithMeterProvider specifies a meter provider to use for creating a meter. // -// If none is specified, the metric.NewNoopMeterProvider is used. +// If none is specified, the global.MeterProvider() is used. func WithMeterProvider(provider metric.MeterProvider) Option { return otelOptionFunc(func(cfg *otelConfig) { if provider != nil { diff --git a/gen/_template/client.tmpl b/gen/_template/client.tmpl index 0394167a4..6284100a7 100644 --- a/gen/_template/client.tmpl +++ b/gen/_template/client.tmpl @@ -173,11 +173,11 @@ func (c *{{ if $op.WebhookInfo }}Webhook{{ end }}Client) send{{ $op.Name }}(ctx startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, {{ quote $op.Name }}, @@ -192,7 +192,7 @@ func (c *{{ if $op.WebhookInfo }}Webhook{{ end }}Client) send{{ $op.Name }}(ctx if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() diff --git a/gen/_template/handlers.tmpl b/gen/_template/handlers.tmpl index 5b1cec9ea..dbb953f16 100644 --- a/gen/_template/handlers.tmpl +++ b/gen/_template/handlers.tmpl @@ -52,17 +52,17 @@ func (s *{{ if $op.WebhookInfo }}Webhook{{ end }}Server) handle{{ $op.Name }}Req startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error {{- if or $op.Request $op.Params $op.Security.Securities }} diff --git a/gen/_template/header.tmpl b/gen/_template/header.tmpl index a9ee856e0..42ecc7c30 100644 --- a/gen/_template/header.tmpl +++ b/gen/_template/header.tmpl @@ -56,6 +56,7 @@ import ( "go.opentelemetry.io/otel/metric" "go.opentelemetry.io/otel/metric/instrument" "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/global" semconv "go.opentelemetry.io/otel/semconv/v1.17.0" "go.opentelemetry.io/otel/trace" "go.uber.org/multierr" From 7d9e3b5398653edda0f79a25652419ea9db979ce Mon Sep 17 00:00:00 2001 From: Aleksandr Razumov Date: Sat, 29 Apr 2023 09:58:23 +0300 Subject: [PATCH 3/4] test(e2e): update on otel api change --- internal/integration/e2e_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/integration/e2e_test.go b/internal/integration/e2e_test.go index 927c33b50..fba3db7a3 100644 --- a/internal/integration/e2e_test.go +++ b/internal/integration/e2e_test.go @@ -17,7 +17,7 @@ import ( "github.com/google/uuid" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/noop" "go.opentelemetry.io/otel/trace" "github.com/ogen-go/ogen/conv" @@ -230,7 +230,7 @@ func TestIntegration(t *testing.T) { handler := &sampleAPIServer{} h, err := api.NewServer(handler, handler, api.WithTracerProvider(trace.NewNoopTracerProvider()), - api.WithMeterProvider(metric.NewNoopMeterProvider()), + api.WithMeterProvider(noop.NewMeterProvider()), ) require.NoError(t, err) s := httptest.NewServer(h) @@ -240,7 +240,7 @@ func TestIntegration(t *testing.T) { client, err := api.NewClient(s.URL, handler, api.WithClient(httpClient), api.WithTracerProvider(trace.NewNoopTracerProvider()), - api.WithMeterProvider(metric.NewNoopMeterProvider()), + api.WithMeterProvider(noop.NewMeterProvider()), ) require.NoError(t, err) ctx := context.Background() From 2f793c41254460d58b0579fbd4b9894eb53f5379 Mon Sep 17 00:00:00 2001 From: Aleksandr Razumov Date: Sat, 29 Apr 2023 09:52:21 +0300 Subject: [PATCH 4/4] chore(gen): update --- examples/ex_2ch/oas_cfg_gen.go | 5 +- examples/ex_2ch/oas_client_gen.go | 97 +- examples/ex_2ch/oas_handlers_gen.go | 97 +- examples/ex_ent/oas_cfg_gen.go | 5 +- examples/ex_ent/oas_client_gen.go | 73 +- examples/ex_ent/oas_handlers_gen.go | 73 +- examples/ex_firecracker/oas_cfg_gen.go | 5 +- examples/ex_firecracker/oas_client_gen.go | 157 +- examples/ex_firecracker/oas_handlers_gen.go | 157 +- examples/ex_github/oas_cfg_gen.go | 5 +- examples/ex_github/oas_client_gen.go | 4369 ++++++++-------- examples/ex_github/oas_handlers_gen.go | 4369 ++++++++-------- examples/ex_gotd/oas_cfg_gen.go | 5 +- examples/ex_gotd/oas_client_gen.go | 523 +- examples/ex_gotd/oas_handlers_gen.go | 523 +- examples/ex_k8s/oas_cfg_gen.go | 5 +- examples/ex_k8s/oas_client_gen.go | 2773 +++++----- examples/ex_k8s/oas_handlers_gen.go | 2773 +++++----- examples/ex_manga/oas_cfg_gen.go | 5 +- examples/ex_manga/oas_client_gen.go | 37 +- examples/ex_manga/oas_handlers_gen.go | 37 +- examples/ex_openai/oas_cfg_gen.go | 5 +- examples/ex_openai/oas_client_gen.go | 169 +- examples/ex_openai/oas_handlers_gen.go | 169 +- examples/ex_petstore/oas_cfg_gen.go | 5 +- examples/ex_petstore/oas_client_gen.go | 19 +- examples/ex_petstore/oas_handlers_gen.go | 19 +- examples/ex_petstore_expanded/oas_cfg_gen.go | 5 +- .../ex_petstore_expanded/oas_client_gen.go | 25 +- .../ex_petstore_expanded/oas_handlers_gen.go | 25 +- examples/ex_route_params/oas_cfg_gen.go | 5 +- examples/ex_route_params/oas_client_gen.go | 19 +- examples/ex_route_params/oas_handlers_gen.go | 19 +- examples/ex_telegram/oas_cfg_gen.go | 5 +- examples/ex_telegram/oas_client_gen.go | 493 +- examples/ex_telegram/oas_handlers_gen.go | 493 +- examples/ex_test_format/oas_cfg_gen.go | 5 +- examples/ex_test_format/oas_client_gen.go | 4489 +++++++++-------- examples/ex_test_format/oas_handlers_gen.go | 4489 +++++++++-------- examples/ex_tinkoff/oas_cfg_gen.go | 5 +- examples/ex_tinkoff/oas_client_gen.go | 127 +- examples/ex_tinkoff/oas_handlers_gen.go | 127 +- examples/go.mod | 8 +- examples/go.sum | 19 +- .../referenced_path_item/oas_cfg_gen.go | 5 +- .../referenced_path_item/oas_client_gen.go | 7 +- .../referenced_path_item/oas_handlers_gen.go | 7 +- .../integration/sample_api/oas_cfg_gen.go | 5 +- .../integration/sample_api/oas_client_gen.go | 157 +- .../sample_api/oas_handlers_gen.go | 157 +- .../integration/sample_api_nc/oas_cfg_gen.go | 5 +- .../sample_api_nc/oas_handlers_gen.go | 157 +- .../integration/sample_api_ns/oas_cfg_gen.go | 5 +- .../sample_api_ns/oas_client_gen.go | 157 +- .../integration/sample_err/oas_cfg_gen.go | 5 +- .../integration/sample_err/oas_client_gen.go | 13 +- .../sample_err/oas_handlers_gen.go | 13 +- .../integration/techempower/oas_cfg_gen.go | 5 +- .../integration/techempower/oas_client_gen.go | 31 +- .../techempower/oas_handlers_gen.go | 31 +- .../integration/test_allof/oas_cfg_gen.go | 5 +- .../integration/test_allof/oas_client_gen.go | 49 +- .../test_allof/oas_handlers_gen.go | 49 +- .../integration/test_anyof/oas_cfg_gen.go | 5 +- .../integration/test_anyof/oas_client_gen.go | 19 +- .../test_anyof/oas_handlers_gen.go | 19 +- .../test_customformats/oas_cfg_gen.go | 5 +- .../test_customformats/oas_client_gen.go | 13 +- .../test_customformats/oas_handlers_gen.go | 13 +- .../test_enum_naming/oas_cfg_gen.go | 5 +- .../test_enum_naming/oas_client_gen.go | 7 +- .../test_enum_naming/oas_handlers_gen.go | 7 +- internal/integration/test_form/oas_cfg_gen.go | 5 +- .../integration/test_form/oas_client_gen.go | 55 +- .../integration/test_form/oas_handlers_gen.go | 55 +- .../test_http_requests/oas_cfg_gen.go | 5 +- .../test_http_requests/oas_client_gen.go | 37 +- .../test_http_requests/oas_handlers_gen.go | 37 +- .../test_http_responses/oas_cfg_gen.go | 5 +- .../test_http_responses/oas_client_gen.go | 91 +- .../test_http_responses/oas_handlers_gen.go | 91 +- .../test_naming_extensions/oas_cfg_gen.go | 5 +- .../test_naming_extensions/oas_client_gen.go | 7 +- .../oas_handlers_gen.go | 7 +- .../test_parameters/oas_cfg_gen.go | 5 +- .../test_parameters/oas_client_gen.go | 49 +- .../test_parameters/oas_handlers_gen.go | 49 +- .../integration/test_security/oas_cfg_gen.go | 5 +- .../test_security/oas_client_gen.go | 19 +- .../test_security/oas_handlers_gen.go | 19 +- .../integration/test_servers/oas_cfg_gen.go | 5 +- .../test_servers/oas_client_gen.go | 7 +- .../test_servers/oas_handlers_gen.go | 7 +- .../test_single_endpoint/oas_cfg_gen.go | 5 +- .../test_single_endpoint/oas_client_gen.go | 7 +- .../test_single_endpoint/oas_handlers_gen.go | 7 +- .../integration/test_webhooks/oas_cfg_gen.go | 5 +- .../test_webhooks/oas_client_gen.go | 25 +- .../test_webhooks/oas_handlers_gen.go | 25 +- 99 files changed, 14265 insertions(+), 14167 deletions(-) diff --git a/examples/ex_2ch/oas_cfg_gen.go b/examples/ex_2ch/oas_cfg_gen.go index 200975a4a..2674bd0c4 100644 --- a/examples/ex_2ch/oas_cfg_gen.go +++ b/examples/ex_2ch/oas_cfg_gen.go @@ -7,6 +7,7 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/global" "go.opentelemetry.io/otel/metric/instrument" "go.opentelemetry.io/otel/trace" @@ -40,7 +41,7 @@ func (cfg *otelConfig) initOTEL() { cfg.TracerProvider = otel.GetTracerProvider() } if cfg.MeterProvider == nil { - cfg.MeterProvider = metric.NewNoopMeterProvider() + cfg.MeterProvider = global.MeterProvider() } cfg.Tracer = cfg.TracerProvider.Tracer(otelogen.Name, trace.WithInstrumentationVersion(otelogen.SemVersion()), @@ -200,7 +201,7 @@ func WithTracerProvider(provider trace.TracerProvider) Option { // WithMeterProvider specifies a meter provider to use for creating a meter. // -// If none is specified, the metric.NewNoopMeterProvider is used. +// If none is specified, the global.MeterProvider() is used. func WithMeterProvider(provider metric.MeterProvider) Option { return otelOptionFunc(func(cfg *otelConfig) { if provider != nil { diff --git a/examples/ex_2ch/oas_client_gen.go b/examples/ex_2ch/oas_client_gen.go index 7bac8d02d..218d82e35 100644 --- a/examples/ex_2ch/oas_client_gen.go +++ b/examples/ex_2ch/oas_client_gen.go @@ -11,6 +11,7 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" "github.com/ogen-go/ogen/conv" ht "github.com/ogen-go/ogen/http" @@ -83,11 +84,11 @@ func (c *Client) sendAPICaptcha2chcaptchaIDGet(ctx context.Context, params APICa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "APICaptcha2chcaptchaIDGet", @@ -99,7 +100,7 @@ func (c *Client) sendAPICaptcha2chcaptchaIDGet(ctx context.Context, params APICa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -188,11 +189,11 @@ func (c *Client) sendAPICaptcha2chcaptchaShowGet(ctx context.Context, params API startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "APICaptcha2chcaptchaShowGet", @@ -204,7 +205,7 @@ func (c *Client) sendAPICaptcha2chcaptchaShowGet(ctx context.Context, params API if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -277,11 +278,11 @@ func (c *Client) sendAPICaptchaAppIDPublicKeyGet(ctx context.Context, params API startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "APICaptchaAppIDPublicKeyGet", @@ -293,7 +294,7 @@ func (c *Client) sendAPICaptchaAppIDPublicKeyGet(ctx context.Context, params API if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -400,11 +401,11 @@ func (c *Client) sendAPICaptchaInvisibleRecaptchaIDGet(ctx context.Context, para startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "APICaptchaInvisibleRecaptchaIDGet", @@ -416,7 +417,7 @@ func (c *Client) sendAPICaptchaInvisibleRecaptchaIDGet(ctx context.Context, para if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -505,11 +506,11 @@ func (c *Client) sendAPICaptchaInvisibleRecaptchaMobileGet(ctx context.Context) startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "APICaptchaInvisibleRecaptchaMobileGet", @@ -521,7 +522,7 @@ func (c *Client) sendAPICaptchaInvisibleRecaptchaMobileGet(ctx context.Context) if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -572,11 +573,11 @@ func (c *Client) sendAPICaptchaRecaptchaIDGet(ctx context.Context, params APICap startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "APICaptchaRecaptchaIDGet", @@ -588,7 +589,7 @@ func (c *Client) sendAPICaptchaRecaptchaIDGet(ctx context.Context, params APICap if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -677,11 +678,11 @@ func (c *Client) sendAPICaptchaRecaptchaMobileGet(ctx context.Context) (res *API startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "APICaptchaRecaptchaMobileGet", @@ -693,7 +694,7 @@ func (c *Client) sendAPICaptchaRecaptchaMobileGet(ctx context.Context) (res *API if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -744,11 +745,11 @@ func (c *Client) sendAPIDislikeGet(ctx context.Context, params APIDislikeGetPara startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "APIDislikeGet", @@ -760,7 +761,7 @@ func (c *Client) sendAPIDislikeGet(ctx context.Context, params APIDislikeGetPara if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -843,11 +844,11 @@ func (c *Client) sendAPILikeGet(ctx context.Context, params APILikeGetParams) (r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "APILikeGet", @@ -859,7 +860,7 @@ func (c *Client) sendAPILikeGet(ctx context.Context, params APILikeGetParams) (r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -944,11 +945,11 @@ func (c *Client) sendAPIMobileV2AfterBoardThreadNumGet(ctx context.Context, para startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "APIMobileV2AfterBoardThreadNumGet", @@ -960,7 +961,7 @@ func (c *Client) sendAPIMobileV2AfterBoardThreadNumGet(ctx context.Context, para if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1067,11 +1068,11 @@ func (c *Client) sendAPIMobileV2BoardsGet(ctx context.Context) (res Boards, err startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "APIMobileV2BoardsGet", @@ -1083,7 +1084,7 @@ func (c *Client) sendAPIMobileV2BoardsGet(ctx context.Context) (res Boards, err if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1134,11 +1135,11 @@ func (c *Client) sendAPIMobileV2InfoBoardThreadGet(ctx context.Context, params A startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "APIMobileV2InfoBoardThreadGet", @@ -1150,7 +1151,7 @@ func (c *Client) sendAPIMobileV2InfoBoardThreadGet(ctx context.Context, params A if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1238,11 +1239,11 @@ func (c *Client) sendAPIMobileV2PostBoardNumGet(ctx context.Context, params APIM startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "APIMobileV2PostBoardNumGet", @@ -1254,7 +1255,7 @@ func (c *Client) sendAPIMobileV2PostBoardNumGet(ctx context.Context, params APIM if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1342,11 +1343,11 @@ func (c *Client) sendUserPassloginPost(ctx context.Context, request OptUserPassl startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "UserPassloginPost", @@ -1358,7 +1359,7 @@ func (c *Client) sendUserPassloginPost(ctx context.Context, request OptUserPassl if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1446,11 +1447,11 @@ func (c *Client) sendUserPostingPost(ctx context.Context, request OptUserPosting startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "UserPostingPost", @@ -1462,7 +1463,7 @@ func (c *Client) sendUserPostingPost(ctx context.Context, request OptUserPosting if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1516,11 +1517,11 @@ func (c *Client) sendUserReportPost(ctx context.Context, request OptUserReportPo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "UserReportPost", @@ -1532,7 +1533,7 @@ func (c *Client) sendUserReportPost(ctx context.Context, request OptUserReportPo if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() diff --git a/examples/ex_2ch/oas_handlers_gen.go b/examples/ex_2ch/oas_handlers_gen.go index 266f50232..2ea9360f8 100644 --- a/examples/ex_2ch/oas_handlers_gen.go +++ b/examples/ex_2ch/oas_handlers_gen.go @@ -9,6 +9,7 @@ import ( "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" "github.com/ogen-go/ogen/middleware" "github.com/ogen-go/ogen/ogenerrors" @@ -32,17 +33,17 @@ func (s *Server) handleAPICaptcha2chcaptchaIDGetRequest(args [0]string, argsEsca startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -133,17 +134,17 @@ func (s *Server) handleAPICaptcha2chcaptchaShowGetRequest(args [0]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -234,17 +235,17 @@ func (s *Server) handleAPICaptchaAppIDPublicKeyGetRequest(args [1]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -339,17 +340,17 @@ func (s *Server) handleAPICaptchaInvisibleRecaptchaIDGetRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -440,17 +441,17 @@ func (s *Server) handleAPICaptchaInvisibleRecaptchaMobileGetRequest(args [0]stri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -518,17 +519,17 @@ func (s *Server) handleAPICaptchaRecaptchaIDGetRequest(args [0]string, argsEscap startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -619,17 +620,17 @@ func (s *Server) handleAPICaptchaRecaptchaMobileGetRequest(args [0]string, argsE startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -697,17 +698,17 @@ func (s *Server) handleAPIDislikeGetRequest(args [0]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -798,17 +799,17 @@ func (s *Server) handleAPILikeGetRequest(args [0]string, argsEscaped bool, w htt startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -901,17 +902,17 @@ func (s *Server) handleAPIMobileV2AfterBoardThreadNumGetRequest(args [3]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1006,17 +1007,17 @@ func (s *Server) handleAPIMobileV2BoardsGetRequest(args [0]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -1084,17 +1085,17 @@ func (s *Server) handleAPIMobileV2InfoBoardThreadGetRequest(args [2]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1185,17 +1186,17 @@ func (s *Server) handleAPIMobileV2PostBoardNumGetRequest(args [2]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1286,17 +1287,17 @@ func (s *Server) handleUserPassloginPostRequest(args [0]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1398,17 +1399,17 @@ func (s *Server) handleUserPostingPostRequest(args [0]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1495,17 +1496,17 @@ func (s *Server) handleUserReportPostRequest(args [0]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ diff --git a/examples/ex_ent/oas_cfg_gen.go b/examples/ex_ent/oas_cfg_gen.go index 200975a4a..2674bd0c4 100644 --- a/examples/ex_ent/oas_cfg_gen.go +++ b/examples/ex_ent/oas_cfg_gen.go @@ -7,6 +7,7 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/global" "go.opentelemetry.io/otel/metric/instrument" "go.opentelemetry.io/otel/trace" @@ -40,7 +41,7 @@ func (cfg *otelConfig) initOTEL() { cfg.TracerProvider = otel.GetTracerProvider() } if cfg.MeterProvider == nil { - cfg.MeterProvider = metric.NewNoopMeterProvider() + cfg.MeterProvider = global.MeterProvider() } cfg.Tracer = cfg.TracerProvider.Tracer(otelogen.Name, trace.WithInstrumentationVersion(otelogen.SemVersion()), @@ -200,7 +201,7 @@ func WithTracerProvider(provider trace.TracerProvider) Option { // WithMeterProvider specifies a meter provider to use for creating a meter. // -// If none is specified, the metric.NewNoopMeterProvider is used. +// If none is specified, the global.MeterProvider() is used. func WithMeterProvider(provider metric.MeterProvider) Option { return otelOptionFunc(func(cfg *otelConfig) { if provider != nil { diff --git a/examples/ex_ent/oas_client_gen.go b/examples/ex_ent/oas_client_gen.go index 98208bc67..59af935ea 100644 --- a/examples/ex_ent/oas_client_gen.go +++ b/examples/ex_ent/oas_client_gen.go @@ -11,6 +11,7 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" "go.opentelemetry.io/otel/trace" "github.com/ogen-go/ogen/conv" @@ -87,11 +88,11 @@ func (c *Client) sendCreatePet(ctx context.Context, request *CreatePetReq) (res startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "CreatePet", @@ -104,7 +105,7 @@ func (c *Client) sendCreatePet(ctx context.Context, request *CreatePetReq) (res if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -160,11 +161,11 @@ func (c *Client) sendCreatePetCategories(ctx context.Context, request *CreatePet startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "CreatePetCategories", @@ -177,7 +178,7 @@ func (c *Client) sendCreatePetCategories(ctx context.Context, request *CreatePet if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -252,11 +253,11 @@ func (c *Client) sendCreatePetFriends(ctx context.Context, request *CreatePetFri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "CreatePetFriends", @@ -269,7 +270,7 @@ func (c *Client) sendCreatePetFriends(ctx context.Context, request *CreatePetFri if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -344,11 +345,11 @@ func (c *Client) sendCreatePetOwner(ctx context.Context, request *CreatePetOwner startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "CreatePetOwner", @@ -361,7 +362,7 @@ func (c *Client) sendCreatePetOwner(ctx context.Context, request *CreatePetOwner if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -436,11 +437,11 @@ func (c *Client) sendDeletePet(ctx context.Context, params DeletePetParams) (res startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "DeletePet", @@ -453,7 +454,7 @@ func (c *Client) sendDeletePet(ctx context.Context, params DeletePetParams) (res if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -524,11 +525,11 @@ func (c *Client) sendDeletePetOwner(ctx context.Context, params DeletePetOwnerPa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "DeletePetOwner", @@ -541,7 +542,7 @@ func (c *Client) sendDeletePetOwner(ctx context.Context, params DeletePetOwnerPa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -613,11 +614,11 @@ func (c *Client) sendListPet(ctx context.Context, params ListPetParams) (res Lis startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListPet", @@ -630,7 +631,7 @@ func (c *Client) sendListPet(ctx context.Context, params ListPetParams) (res Lis if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -721,11 +722,11 @@ func (c *Client) sendListPetCategories(ctx context.Context, params ListPetCatego startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListPetCategories", @@ -738,7 +739,7 @@ func (c *Client) sendListPetCategories(ctx context.Context, params ListPetCatego if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -848,11 +849,11 @@ func (c *Client) sendListPetFriends(ctx context.Context, params ListPetFriendsPa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListPetFriends", @@ -865,7 +866,7 @@ func (c *Client) sendListPetFriends(ctx context.Context, params ListPetFriendsPa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -975,11 +976,11 @@ func (c *Client) sendReadPet(ctx context.Context, params ReadPetParams) (res Rea startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadPet", @@ -992,7 +993,7 @@ func (c *Client) sendReadPet(ctx context.Context, params ReadPetParams) (res Rea if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1063,11 +1064,11 @@ func (c *Client) sendReadPetOwner(ctx context.Context, params ReadPetOwnerParams startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadPetOwner", @@ -1080,7 +1081,7 @@ func (c *Client) sendReadPetOwner(ctx context.Context, params ReadPetOwnerParams if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1152,11 +1153,11 @@ func (c *Client) sendUpdatePet(ctx context.Context, request *UpdatePetReq, param startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "UpdatePet", @@ -1169,7 +1170,7 @@ func (c *Client) sendUpdatePet(ctx context.Context, request *UpdatePetReq, param if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() diff --git a/examples/ex_ent/oas_handlers_gen.go b/examples/ex_ent/oas_handlers_gen.go index d663be0a4..2fc781aff 100644 --- a/examples/ex_ent/oas_handlers_gen.go +++ b/examples/ex_ent/oas_handlers_gen.go @@ -9,6 +9,7 @@ import ( "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" semconv "go.opentelemetry.io/otel/semconv/v1.17.0" "go.opentelemetry.io/otel/trace" @@ -40,17 +41,17 @@ func (s *Server) handleCreatePetRequest(args [0]string, argsEscaped bool, w http startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -142,17 +143,17 @@ func (s *Server) handleCreatePetCategoriesRequest(args [1]string, argsEscaped bo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -259,17 +260,17 @@ func (s *Server) handleCreatePetFriendsRequest(args [1]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -376,17 +377,17 @@ func (s *Server) handleCreatePetOwnerRequest(args [1]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -493,17 +494,17 @@ func (s *Server) handleDeletePetRequest(args [1]string, argsEscaped bool, w http startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -595,17 +596,17 @@ func (s *Server) handleDeletePetOwnerRequest(args [1]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -697,17 +698,17 @@ func (s *Server) handleListPetRequest(args [0]string, argsEscaped bool, w http.R startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -803,17 +804,17 @@ func (s *Server) handleListPetCategoriesRequest(args [1]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -913,17 +914,17 @@ func (s *Server) handleListPetFriendsRequest(args [1]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1023,17 +1024,17 @@ func (s *Server) handleReadPetRequest(args [1]string, argsEscaped bool, w http.R startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1125,17 +1126,17 @@ func (s *Server) handleReadPetOwnerRequest(args [1]string, argsEscaped bool, w h startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1227,17 +1228,17 @@ func (s *Server) handleUpdatePetRequest(args [1]string, argsEscaped bool, w http startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ diff --git a/examples/ex_firecracker/oas_cfg_gen.go b/examples/ex_firecracker/oas_cfg_gen.go index 200975a4a..2674bd0c4 100644 --- a/examples/ex_firecracker/oas_cfg_gen.go +++ b/examples/ex_firecracker/oas_cfg_gen.go @@ -7,6 +7,7 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/global" "go.opentelemetry.io/otel/metric/instrument" "go.opentelemetry.io/otel/trace" @@ -40,7 +41,7 @@ func (cfg *otelConfig) initOTEL() { cfg.TracerProvider = otel.GetTracerProvider() } if cfg.MeterProvider == nil { - cfg.MeterProvider = metric.NewNoopMeterProvider() + cfg.MeterProvider = global.MeterProvider() } cfg.Tracer = cfg.TracerProvider.Tracer(otelogen.Name, trace.WithInstrumentationVersion(otelogen.SemVersion()), @@ -200,7 +201,7 @@ func WithTracerProvider(provider trace.TracerProvider) Option { // WithMeterProvider specifies a meter provider to use for creating a meter. // -// If none is specified, the metric.NewNoopMeterProvider is used. +// If none is specified, the global.MeterProvider() is used. func WithMeterProvider(provider metric.MeterProvider) Option { return otelOptionFunc(func(cfg *otelConfig) { if provider != nil { diff --git a/examples/ex_firecracker/oas_client_gen.go b/examples/ex_firecracker/oas_client_gen.go index 874449c26..b2ad82658 100644 --- a/examples/ex_firecracker/oas_client_gen.go +++ b/examples/ex_firecracker/oas_client_gen.go @@ -11,6 +11,7 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" "go.opentelemetry.io/otel/trace" "github.com/ogen-go/ogen/conv" @@ -100,11 +101,11 @@ func (c *Client) sendCreateSnapshot(ctx context.Context, request *SnapshotCreate startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "CreateSnapshot", @@ -117,7 +118,7 @@ func (c *Client) sendCreateSnapshot(ctx context.Context, request *SnapshotCreate if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -182,11 +183,11 @@ func (c *Client) sendCreateSyncAction(ctx context.Context, request *InstanceActi startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "CreateSyncAction", @@ -199,7 +200,7 @@ func (c *Client) sendCreateSyncAction(ctx context.Context, request *InstanceActi if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -255,11 +256,11 @@ func (c *Client) sendDescribeBalloonConfig(ctx context.Context) (res DescribeBal startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "DescribeBalloonConfig", @@ -272,7 +273,7 @@ func (c *Client) sendDescribeBalloonConfig(ctx context.Context) (res DescribeBal if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -325,11 +326,11 @@ func (c *Client) sendDescribeBalloonStats(ctx context.Context) (res DescribeBall startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "DescribeBalloonStats", @@ -342,7 +343,7 @@ func (c *Client) sendDescribeBalloonStats(ctx context.Context) (res DescribeBall if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -395,11 +396,11 @@ func (c *Client) sendDescribeInstance(ctx context.Context) (res *InstanceInfo, e startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "DescribeInstance", @@ -412,7 +413,7 @@ func (c *Client) sendDescribeInstance(ctx context.Context) (res *InstanceInfo, e if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -465,11 +466,11 @@ func (c *Client) sendGetExportVmConfig(ctx context.Context) (res *FullVmConfigur startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetExportVmConfig", @@ -482,7 +483,7 @@ func (c *Client) sendGetExportVmConfig(ctx context.Context) (res *FullVmConfigur if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -537,11 +538,11 @@ func (c *Client) sendGetMachineConfiguration(ctx context.Context) (res *MachineC startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetMachineConfiguration", @@ -554,7 +555,7 @@ func (c *Client) sendGetMachineConfiguration(ctx context.Context) (res *MachineC if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -608,11 +609,11 @@ func (c *Client) sendLoadSnapshot(ctx context.Context, request *SnapshotLoadPara startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "LoadSnapshot", @@ -625,7 +626,7 @@ func (c *Client) sendLoadSnapshot(ctx context.Context, request *SnapshotLoadPara if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -679,11 +680,11 @@ func (c *Client) sendMmdsConfigPut(ctx context.Context, request *MmdsConfig) (re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "MmdsConfigPut", @@ -695,7 +696,7 @@ func (c *Client) sendMmdsConfigPut(ctx context.Context, request *MmdsConfig) (re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -749,11 +750,11 @@ func (c *Client) sendMmdsGet(ctx context.Context) (res MmdsGetRes, err error) { startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "MmdsGet", @@ -765,7 +766,7 @@ func (c *Client) sendMmdsGet(ctx context.Context) (res MmdsGetRes, err error) { if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -816,11 +817,11 @@ func (c *Client) sendMmdsPatch(ctx context.Context, request *MmdsPatchReq) (res startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "MmdsPatch", @@ -832,7 +833,7 @@ func (c *Client) sendMmdsPatch(ctx context.Context, request *MmdsPatchReq) (res if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -886,11 +887,11 @@ func (c *Client) sendMmdsPut(ctx context.Context, request *MmdsPutReq) (res Mmds startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "MmdsPut", @@ -902,7 +903,7 @@ func (c *Client) sendMmdsPut(ctx context.Context, request *MmdsPutReq) (res Mmds if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -959,11 +960,11 @@ func (c *Client) sendPatchBalloon(ctx context.Context, request *BalloonUpdate) ( startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PatchBalloon", @@ -976,7 +977,7 @@ func (c *Client) sendPatchBalloon(ctx context.Context, request *BalloonUpdate) ( if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1033,11 +1034,11 @@ func (c *Client) sendPatchBalloonStatsInterval(ctx context.Context, request *Bal startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PatchBalloonStatsInterval", @@ -1050,7 +1051,7 @@ func (c *Client) sendPatchBalloonStatsInterval(ctx context.Context, request *Bal if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1116,11 +1117,11 @@ func (c *Client) sendPatchGuestDriveByID(ctx context.Context, request *PartialDr startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PatchGuestDriveByID", @@ -1133,7 +1134,7 @@ func (c *Client) sendPatchGuestDriveByID(ctx context.Context, request *PartialDr if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1216,11 +1217,11 @@ func (c *Client) sendPatchGuestNetworkInterfaceByID(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PatchGuestNetworkInterfaceByID", @@ -1233,7 +1234,7 @@ func (c *Client) sendPatchGuestNetworkInterfaceByID(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1324,11 +1325,11 @@ func (c *Client) sendPatchMachineConfiguration(ctx context.Context, request OptM startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PatchMachineConfiguration", @@ -1341,7 +1342,7 @@ func (c *Client) sendPatchMachineConfiguration(ctx context.Context, request OptM if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1406,11 +1407,11 @@ func (c *Client) sendPatchVm(ctx context.Context, request *VM) (res PatchVmRes, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PatchVm", @@ -1423,7 +1424,7 @@ func (c *Client) sendPatchVm(ctx context.Context, request *VM) (res PatchVmRes, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1480,11 +1481,11 @@ func (c *Client) sendPutBalloon(ctx context.Context, request *Balloon) (res PutB startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PutBalloon", @@ -1497,7 +1498,7 @@ func (c *Client) sendPutBalloon(ctx context.Context, request *Balloon) (res PutB if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1554,11 +1555,11 @@ func (c *Client) sendPutGuestBootSource(ctx context.Context, request *BootSource startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PutGuestBootSource", @@ -1571,7 +1572,7 @@ func (c *Client) sendPutGuestBootSource(ctx context.Context, request *BootSource if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1637,11 +1638,11 @@ func (c *Client) sendPutGuestDriveByID(ctx context.Context, request *Drive, para startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PutGuestDriveByID", @@ -1654,7 +1655,7 @@ func (c *Client) sendPutGuestDriveByID(ctx context.Context, request *Drive, para if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1737,11 +1738,11 @@ func (c *Client) sendPutGuestNetworkInterfaceByID(ctx context.Context, request * startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PutGuestNetworkInterfaceByID", @@ -1754,7 +1755,7 @@ func (c *Client) sendPutGuestNetworkInterfaceByID(ctx context.Context, request * if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1838,11 +1839,11 @@ func (c *Client) sendPutGuestVsock(ctx context.Context, request *Vsock) (res Put startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PutGuestVsock", @@ -1855,7 +1856,7 @@ func (c *Client) sendPutGuestVsock(ctx context.Context, request *Vsock) (res Put if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1920,11 +1921,11 @@ func (c *Client) sendPutLogger(ctx context.Context, request *Logger) (res PutLog startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PutLogger", @@ -1937,7 +1938,7 @@ func (c *Client) sendPutLogger(ctx context.Context, request *Logger) (res PutLog if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2012,11 +2013,11 @@ func (c *Client) sendPutMachineConfiguration(ctx context.Context, request OptMac startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PutMachineConfiguration", @@ -2029,7 +2030,7 @@ func (c *Client) sendPutMachineConfiguration(ctx context.Context, request OptMac if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2085,11 +2086,11 @@ func (c *Client) sendPutMetrics(ctx context.Context, request *Metrics) (res PutM startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PutMetrics", @@ -2102,7 +2103,7 @@ func (c *Client) sendPutMetrics(ctx context.Context, request *Metrics) (res PutM if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() diff --git a/examples/ex_firecracker/oas_handlers_gen.go b/examples/ex_firecracker/oas_handlers_gen.go index 2b8fd0b8d..a3b1f84b8 100644 --- a/examples/ex_firecracker/oas_handlers_gen.go +++ b/examples/ex_firecracker/oas_handlers_gen.go @@ -10,6 +10,7 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" semconv "go.opentelemetry.io/otel/semconv/v1.17.0" "go.opentelemetry.io/otel/trace" @@ -42,17 +43,17 @@ func (s *Server) handleCreateSnapshotRequest(args [0]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -152,17 +153,17 @@ func (s *Server) handleCreateSyncActionRequest(args [0]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -262,17 +263,17 @@ func (s *Server) handleDescribeBalloonConfigRequest(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -353,17 +354,17 @@ func (s *Server) handleDescribeBalloonStatsRequest(args [0]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -444,17 +445,17 @@ func (s *Server) handleDescribeInstanceRequest(args [0]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -535,17 +536,17 @@ func (s *Server) handleGetExportVmConfigRequest(args [0]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -628,17 +629,17 @@ func (s *Server) handleGetMachineConfigurationRequest(args [0]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -720,17 +721,17 @@ func (s *Server) handleLoadSnapshotRequest(args [0]string, argsEscaped bool, w h startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -825,17 +826,17 @@ func (s *Server) handleMmdsConfigPutRequest(args [0]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -930,17 +931,17 @@ func (s *Server) handleMmdsGetRequest(args [0]string, argsEscaped bool, w http.R startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -1016,17 +1017,17 @@ func (s *Server) handleMmdsPatchRequest(args [0]string, argsEscaped bool, w http startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1121,17 +1122,17 @@ func (s *Server) handleMmdsPutRequest(args [0]string, argsEscaped bool, w http.R startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1232,17 +1233,17 @@ func (s *Server) handlePatchBalloonRequest(args [0]string, argsEscaped bool, w h startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1343,17 +1344,17 @@ func (s *Server) handlePatchBalloonStatsIntervalRequest(args [0]string, argsEsca startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1454,17 +1455,17 @@ func (s *Server) handlePatchGuestDriveByIDRequest(args [1]string, argsEscaped bo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1579,17 +1580,17 @@ func (s *Server) handlePatchGuestNetworkInterfaceByIDRequest(args [1]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1705,17 +1706,17 @@ func (s *Server) handlePatchMachineConfigurationRequest(args [0]string, argsEsca startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1815,17 +1816,17 @@ func (s *Server) handlePatchVmRequest(args [0]string, argsEscaped bool, w http.R startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1926,17 +1927,17 @@ func (s *Server) handlePutBalloonRequest(args [0]string, argsEscaped bool, w htt startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2037,17 +2038,17 @@ func (s *Server) handlePutGuestBootSourceRequest(args [0]string, argsEscaped boo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2148,17 +2149,17 @@ func (s *Server) handlePutGuestDriveByIDRequest(args [1]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2273,17 +2274,17 @@ func (s *Server) handlePutGuestNetworkInterfaceByIDRequest(args [1]string, argsE startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2399,17 +2400,17 @@ func (s *Server) handlePutGuestVsockRequest(args [0]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2509,17 +2510,17 @@ func (s *Server) handlePutLoggerRequest(args [0]string, argsEscaped bool, w http startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2622,17 +2623,17 @@ func (s *Server) handlePutMachineConfigurationRequest(args [0]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2732,17 +2733,17 @@ func (s *Server) handlePutMetricsRequest(args [0]string, argsEscaped bool, w htt startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ diff --git a/examples/ex_github/oas_cfg_gen.go b/examples/ex_github/oas_cfg_gen.go index 677dc1595..6e673bd89 100644 --- a/examples/ex_github/oas_cfg_gen.go +++ b/examples/ex_github/oas_cfg_gen.go @@ -7,6 +7,7 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/global" "go.opentelemetry.io/otel/metric/instrument" "go.opentelemetry.io/otel/trace" @@ -48,7 +49,7 @@ func (cfg *otelConfig) initOTEL() { cfg.TracerProvider = otel.GetTracerProvider() } if cfg.MeterProvider == nil { - cfg.MeterProvider = metric.NewNoopMeterProvider() + cfg.MeterProvider = global.MeterProvider() } cfg.Tracer = cfg.TracerProvider.Tracer(otelogen.Name, trace.WithInstrumentationVersion(otelogen.SemVersion()), @@ -208,7 +209,7 @@ func WithTracerProvider(provider trace.TracerProvider) Option { // WithMeterProvider specifies a meter provider to use for creating a meter. // -// If none is specified, the metric.NewNoopMeterProvider is used. +// If none is specified, the global.MeterProvider() is used. func WithMeterProvider(provider metric.MeterProvider) Option { return otelOptionFunc(func(cfg *otelConfig) { if provider != nil { diff --git a/examples/ex_github/oas_client_gen.go b/examples/ex_github/oas_client_gen.go index 577100c98..4eae3c92b 100644 --- a/examples/ex_github/oas_client_gen.go +++ b/examples/ex_github/oas_client_gen.go @@ -11,6 +11,7 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" "go.opentelemetry.io/otel/trace" "github.com/ogen-go/ogen/conv" @@ -95,11 +96,11 @@ func (c *Client) sendActionsAddRepoAccessToSelfHostedRunnerGroupInOrg(ctx contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsAddRepoAccessToSelfHostedRunnerGroupInOrg", @@ -112,7 +113,7 @@ func (c *Client) sendActionsAddRepoAccessToSelfHostedRunnerGroupInOrg(ctx contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -225,11 +226,11 @@ func (c *Client) sendActionsAddSelectedRepoToOrgSecret(ctx context.Context, para startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsAddSelectedRepoToOrgSecret", @@ -242,7 +243,7 @@ func (c *Client) sendActionsAddSelectedRepoToOrgSecret(ctx context.Context, para if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -356,11 +357,11 @@ func (c *Client) sendActionsAddSelfHostedRunnerToGroupForOrg(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsAddSelfHostedRunnerToGroupForOrg", @@ -373,7 +374,7 @@ func (c *Client) sendActionsAddSelfHostedRunnerToGroupForOrg(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -486,11 +487,11 @@ func (c *Client) sendActionsApproveWorkflowRun(ctx context.Context, params Actio startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsApproveWorkflowRun", @@ -503,7 +504,7 @@ func (c *Client) sendActionsApproveWorkflowRun(ctx context.Context, params Actio if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -615,11 +616,11 @@ func (c *Client) sendActionsCancelWorkflowRun(ctx context.Context, params Action startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsCancelWorkflowRun", @@ -632,7 +633,7 @@ func (c *Client) sendActionsCancelWorkflowRun(ctx context.Context, params Action if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -804,11 +805,11 @@ func (c *Client) sendActionsCreateOrUpdateEnvironmentSecret(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsCreateOrUpdateEnvironmentSecret", @@ -821,7 +822,7 @@ func (c *Client) sendActionsCreateOrUpdateEnvironmentSecret(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -995,11 +996,11 @@ func (c *Client) sendActionsCreateOrUpdateOrgSecret(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsCreateOrUpdateOrgSecret", @@ -1012,7 +1013,7 @@ func (c *Client) sendActionsCreateOrUpdateOrgSecret(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1167,11 +1168,11 @@ func (c *Client) sendActionsCreateOrUpdateRepoSecret(ctx context.Context, reques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsCreateOrUpdateRepoSecret", @@ -1184,7 +1185,7 @@ func (c *Client) sendActionsCreateOrUpdateRepoSecret(ctx context.Context, reques if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1303,11 +1304,11 @@ func (c *Client) sendActionsCreateRegistrationTokenForOrg(ctx context.Context, p startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsCreateRegistrationTokenForOrg", @@ -1320,7 +1321,7 @@ func (c *Client) sendActionsCreateRegistrationTokenForOrg(ctx context.Context, p if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1400,11 +1401,11 @@ func (c *Client) sendActionsCreateRegistrationTokenForRepo(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsCreateRegistrationTokenForRepo", @@ -1417,7 +1418,7 @@ func (c *Client) sendActionsCreateRegistrationTokenForRepo(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1517,11 +1518,11 @@ func (c *Client) sendActionsCreateRemoveTokenForOrg(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsCreateRemoveTokenForOrg", @@ -1534,7 +1535,7 @@ func (c *Client) sendActionsCreateRemoveTokenForOrg(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1614,11 +1615,11 @@ func (c *Client) sendActionsCreateRemoveTokenForRepo(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsCreateRemoveTokenForRepo", @@ -1631,7 +1632,7 @@ func (c *Client) sendActionsCreateRemoveTokenForRepo(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1735,11 +1736,11 @@ func (c *Client) sendActionsCreateSelfHostedRunnerGroupForOrg(ctx context.Contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsCreateSelfHostedRunnerGroupForOrg", @@ -1752,7 +1753,7 @@ func (c *Client) sendActionsCreateSelfHostedRunnerGroupForOrg(ctx context.Contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1829,11 +1830,11 @@ func (c *Client) sendActionsDeleteArtifact(ctx context.Context, params ActionsDe startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsDeleteArtifact", @@ -1846,7 +1847,7 @@ func (c *Client) sendActionsDeleteArtifact(ctx context.Context, params ActionsDe if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1957,11 +1958,11 @@ func (c *Client) sendActionsDeleteEnvironmentSecret(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsDeleteEnvironmentSecret", @@ -1974,7 +1975,7 @@ func (c *Client) sendActionsDeleteEnvironmentSecret(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2085,11 +2086,11 @@ func (c *Client) sendActionsDeleteOrgSecret(ctx context.Context, params ActionsD startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsDeleteOrgSecret", @@ -2102,7 +2103,7 @@ func (c *Client) sendActionsDeleteOrgSecret(ctx context.Context, params ActionsD if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2194,11 +2195,11 @@ func (c *Client) sendActionsDeleteRepoSecret(ctx context.Context, params Actions startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsDeleteRepoSecret", @@ -2211,7 +2212,7 @@ func (c *Client) sendActionsDeleteRepoSecret(ctx context.Context, params Actions if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2322,11 +2323,11 @@ func (c *Client) sendActionsDeleteSelfHostedRunnerFromOrg(ctx context.Context, p startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsDeleteSelfHostedRunnerFromOrg", @@ -2339,7 +2340,7 @@ func (c *Client) sendActionsDeleteSelfHostedRunnerFromOrg(ctx context.Context, p if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2432,11 +2433,11 @@ func (c *Client) sendActionsDeleteSelfHostedRunnerFromRepo(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsDeleteSelfHostedRunnerFromRepo", @@ -2449,7 +2450,7 @@ func (c *Client) sendActionsDeleteSelfHostedRunnerFromRepo(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2562,11 +2563,11 @@ func (c *Client) sendActionsDeleteSelfHostedRunnerGroupFromOrg(ctx context.Conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsDeleteSelfHostedRunnerGroupFromOrg", @@ -2579,7 +2580,7 @@ func (c *Client) sendActionsDeleteSelfHostedRunnerGroupFromOrg(ctx context.Conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2673,11 +2674,11 @@ func (c *Client) sendActionsDeleteWorkflowRun(ctx context.Context, params Action startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsDeleteWorkflowRun", @@ -2690,7 +2691,7 @@ func (c *Client) sendActionsDeleteWorkflowRun(ctx context.Context, params Action if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2801,11 +2802,11 @@ func (c *Client) sendActionsDeleteWorkflowRunLogs(ctx context.Context, params Ac startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsDeleteWorkflowRunLogs", @@ -2818,7 +2819,7 @@ func (c *Client) sendActionsDeleteWorkflowRunLogs(ctx context.Context, params Ac if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2933,11 +2934,11 @@ func (c *Client) sendActionsDisableSelectedRepositoryGithubActionsOrganization(c startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsDisableSelectedRepositoryGithubActionsOrganization", @@ -2950,7 +2951,7 @@ func (c *Client) sendActionsDisableSelectedRepositoryGithubActionsOrganization(c if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -3046,11 +3047,11 @@ func (c *Client) sendActionsDownloadArtifact(ctx context.Context, params Actions startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsDownloadArtifact", @@ -3063,7 +3064,7 @@ func (c *Client) sendActionsDownloadArtifact(ctx context.Context, params Actions if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -3199,11 +3200,11 @@ func (c *Client) sendActionsDownloadJobLogsForWorkflowRun(ctx context.Context, p startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsDownloadJobLogsForWorkflowRun", @@ -3216,7 +3217,7 @@ func (c *Client) sendActionsDownloadJobLogsForWorkflowRun(ctx context.Context, p if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -3332,11 +3333,11 @@ func (c *Client) sendActionsDownloadWorkflowRunLogs(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsDownloadWorkflowRunLogs", @@ -3349,7 +3350,7 @@ func (c *Client) sendActionsDownloadWorkflowRunLogs(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -3464,11 +3465,11 @@ func (c *Client) sendActionsEnableSelectedRepositoryGithubActionsOrganization(ct startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsEnableSelectedRepositoryGithubActionsOrganization", @@ -3481,7 +3482,7 @@ func (c *Client) sendActionsEnableSelectedRepositoryGithubActionsOrganization(ct if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -3576,11 +3577,11 @@ func (c *Client) sendActionsGetAllowedActionsOrganization(ctx context.Context, p startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsGetAllowedActionsOrganization", @@ -3593,7 +3594,7 @@ func (c *Client) sendActionsGetAllowedActionsOrganization(ctx context.Context, p if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -3670,11 +3671,11 @@ func (c *Client) sendActionsGetAllowedActionsRepository(ctx context.Context, par startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsGetAllowedActionsRepository", @@ -3687,7 +3688,7 @@ func (c *Client) sendActionsGetAllowedActionsRepository(ctx context.Context, par if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -3780,11 +3781,11 @@ func (c *Client) sendActionsGetArtifact(ctx context.Context, params ActionsGetAr startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsGetArtifact", @@ -3797,7 +3798,7 @@ func (c *Client) sendActionsGetArtifact(ctx context.Context, params ActionsGetAr if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -3909,11 +3910,11 @@ func (c *Client) sendActionsGetEnvironmentPublicKey(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsGetEnvironmentPublicKey", @@ -3926,7 +3927,7 @@ func (c *Client) sendActionsGetEnvironmentPublicKey(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -4019,11 +4020,11 @@ func (c *Client) sendActionsGetEnvironmentSecret(ctx context.Context, params Act startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsGetEnvironmentSecret", @@ -4036,7 +4037,7 @@ func (c *Client) sendActionsGetEnvironmentSecret(ctx context.Context, params Act if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -4147,11 +4148,11 @@ func (c *Client) sendActionsGetGithubActionsPermissionsOrganization(ctx context. startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsGetGithubActionsPermissionsOrganization", @@ -4164,7 +4165,7 @@ func (c *Client) sendActionsGetGithubActionsPermissionsOrganization(ctx context. if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -4239,11 +4240,11 @@ func (c *Client) sendActionsGetGithubActionsPermissionsRepository(ctx context.Co startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsGetGithubActionsPermissionsRepository", @@ -4256,7 +4257,7 @@ func (c *Client) sendActionsGetGithubActionsPermissionsRepository(ctx context.Co if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -4349,11 +4350,11 @@ func (c *Client) sendActionsGetJobForWorkflowRun(ctx context.Context, params Act startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsGetJobForWorkflowRun", @@ -4366,7 +4367,7 @@ func (c *Client) sendActionsGetJobForWorkflowRun(ctx context.Context, params Act if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -4478,11 +4479,11 @@ func (c *Client) sendActionsGetOrgPublicKey(ctx context.Context, params ActionsG startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsGetOrgPublicKey", @@ -4495,7 +4496,7 @@ func (c *Client) sendActionsGetOrgPublicKey(ctx context.Context, params ActionsG if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -4569,11 +4570,11 @@ func (c *Client) sendActionsGetOrgSecret(ctx context.Context, params ActionsGetO startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsGetOrgSecret", @@ -4586,7 +4587,7 @@ func (c *Client) sendActionsGetOrgSecret(ctx context.Context, params ActionsGetO if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -4679,11 +4680,11 @@ func (c *Client) sendActionsGetRepoPublicKey(ctx context.Context, params Actions startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsGetRepoPublicKey", @@ -4696,7 +4697,7 @@ func (c *Client) sendActionsGetRepoPublicKey(ctx context.Context, params Actions if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -4789,11 +4790,11 @@ func (c *Client) sendActionsGetRepoSecret(ctx context.Context, params ActionsGet startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsGetRepoSecret", @@ -4806,7 +4807,7 @@ func (c *Client) sendActionsGetRepoSecret(ctx context.Context, params ActionsGet if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -4917,11 +4918,11 @@ func (c *Client) sendActionsGetReviewsForRun(ctx context.Context, params Actions startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsGetReviewsForRun", @@ -4934,7 +4935,7 @@ func (c *Client) sendActionsGetReviewsForRun(ctx context.Context, params Actions if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -5045,11 +5046,11 @@ func (c *Client) sendActionsGetSelfHostedRunnerForOrg(ctx context.Context, param startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsGetSelfHostedRunnerForOrg", @@ -5062,7 +5063,7 @@ func (c *Client) sendActionsGetSelfHostedRunnerForOrg(ctx context.Context, param if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -5154,11 +5155,11 @@ func (c *Client) sendActionsGetSelfHostedRunnerForRepo(ctx context.Context, para startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsGetSelfHostedRunnerForRepo", @@ -5171,7 +5172,7 @@ func (c *Client) sendActionsGetSelfHostedRunnerForRepo(ctx context.Context, para if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -5284,11 +5285,11 @@ func (c *Client) sendActionsGetSelfHostedRunnerGroupForOrg(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsGetSelfHostedRunnerGroupForOrg", @@ -5301,7 +5302,7 @@ func (c *Client) sendActionsGetSelfHostedRunnerGroupForOrg(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -5393,11 +5394,11 @@ func (c *Client) sendActionsGetWorkflowRun(ctx context.Context, params ActionsGe startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsGetWorkflowRun", @@ -5410,7 +5411,7 @@ func (c *Client) sendActionsGetWorkflowRun(ctx context.Context, params ActionsGe if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -5528,11 +5529,11 @@ func (c *Client) sendActionsGetWorkflowRunUsage(ctx context.Context, params Acti startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsGetWorkflowRunUsage", @@ -5545,7 +5546,7 @@ func (c *Client) sendActionsGetWorkflowRunUsage(ctx context.Context, params Acti if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -5657,11 +5658,11 @@ func (c *Client) sendActionsListArtifactsForRepo(ctx context.Context, params Act startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsListArtifactsForRepo", @@ -5674,7 +5675,7 @@ func (c *Client) sendActionsListArtifactsForRepo(ctx context.Context, params Act if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -5805,11 +5806,11 @@ func (c *Client) sendActionsListEnvironmentSecrets(ctx context.Context, params A startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsListEnvironmentSecrets", @@ -5822,7 +5823,7 @@ func (c *Client) sendActionsListEnvironmentSecrets(ctx context.Context, params A if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -5955,11 +5956,11 @@ func (c *Client) sendActionsListJobsForWorkflowRun(ctx context.Context, params A startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsListJobsForWorkflowRun", @@ -5972,7 +5973,7 @@ func (c *Client) sendActionsListJobsForWorkflowRun(ctx context.Context, params A if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -6139,11 +6140,11 @@ func (c *Client) sendActionsListOrgSecrets(ctx context.Context, params ActionsLi startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsListOrgSecrets", @@ -6156,7 +6157,7 @@ func (c *Client) sendActionsListOrgSecrets(ctx context.Context, params ActionsLi if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -6270,11 +6271,11 @@ func (c *Client) sendActionsListRepoAccessToSelfHostedRunnerGroupInOrg(ctx conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsListRepoAccessToSelfHostedRunnerGroupInOrg", @@ -6287,7 +6288,7 @@ func (c *Client) sendActionsListRepoAccessToSelfHostedRunnerGroupInOrg(ctx conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -6418,11 +6419,11 @@ func (c *Client) sendActionsListRepoSecrets(ctx context.Context, params ActionsL startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsListRepoSecrets", @@ -6435,7 +6436,7 @@ func (c *Client) sendActionsListRepoSecrets(ctx context.Context, params ActionsL if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -6566,11 +6567,11 @@ func (c *Client) sendActionsListRepoWorkflows(ctx context.Context, params Action startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsListRepoWorkflows", @@ -6583,7 +6584,7 @@ func (c *Client) sendActionsListRepoWorkflows(ctx context.Context, params Action if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -6713,11 +6714,11 @@ func (c *Client) sendActionsListRunnerApplicationsForOrg(ctx context.Context, pa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsListRunnerApplicationsForOrg", @@ -6730,7 +6731,7 @@ func (c *Client) sendActionsListRunnerApplicationsForOrg(ctx context.Context, pa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -6803,11 +6804,11 @@ func (c *Client) sendActionsListRunnerApplicationsForRepo(ctx context.Context, p startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsListRunnerApplicationsForRepo", @@ -6820,7 +6821,7 @@ func (c *Client) sendActionsListRunnerApplicationsForRepo(ctx context.Context, p if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -6914,11 +6915,11 @@ func (c *Client) sendActionsListSelectedReposForOrgSecret(ctx context.Context, p startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsListSelectedReposForOrgSecret", @@ -6931,7 +6932,7 @@ func (c *Client) sendActionsListSelectedReposForOrgSecret(ctx context.Context, p if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -7065,11 +7066,11 @@ func (c *Client) sendActionsListSelectedRepositoriesEnabledGithubActionsOrganiza startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsListSelectedRepositoriesEnabledGithubActionsOrganization", @@ -7082,7 +7083,7 @@ func (c *Client) sendActionsListSelectedRepositoriesEnabledGithubActionsOrganiza if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -7196,11 +7197,11 @@ func (c *Client) sendActionsListSelfHostedRunnerGroupsForOrg(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsListSelfHostedRunnerGroupsForOrg", @@ -7213,7 +7214,7 @@ func (c *Client) sendActionsListSelfHostedRunnerGroupsForOrg(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -7324,11 +7325,11 @@ func (c *Client) sendActionsListSelfHostedRunnersForOrg(ctx context.Context, par startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsListSelfHostedRunnersForOrg", @@ -7341,7 +7342,7 @@ func (c *Client) sendActionsListSelfHostedRunnersForOrg(ctx context.Context, par if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -7452,11 +7453,11 @@ func (c *Client) sendActionsListSelfHostedRunnersForRepo(ctx context.Context, pa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsListSelfHostedRunnersForRepo", @@ -7469,7 +7470,7 @@ func (c *Client) sendActionsListSelfHostedRunnersForRepo(ctx context.Context, pa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -7602,11 +7603,11 @@ func (c *Client) sendActionsListSelfHostedRunnersInGroupForOrg(ctx context.Conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsListSelfHostedRunnersInGroupForOrg", @@ -7619,7 +7620,7 @@ func (c *Client) sendActionsListSelfHostedRunnersInGroupForOrg(ctx context.Conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -7750,11 +7751,11 @@ func (c *Client) sendActionsListWorkflowRunArtifacts(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsListWorkflowRunArtifacts", @@ -7767,7 +7768,7 @@ func (c *Client) sendActionsListWorkflowRunArtifacts(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -7920,11 +7921,11 @@ func (c *Client) sendActionsListWorkflowRunsForRepo(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsListWorkflowRunsForRepo", @@ -7937,7 +7938,7 @@ func (c *Client) sendActionsListWorkflowRunsForRepo(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -8158,11 +8159,11 @@ func (c *Client) sendActionsReRunWorkflow(ctx context.Context, params ActionsReR startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsReRunWorkflow", @@ -8175,7 +8176,7 @@ func (c *Client) sendActionsReRunWorkflow(ctx context.Context, params ActionsReR if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -8292,11 +8293,11 @@ func (c *Client) sendActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrg(ctx con startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrg", @@ -8309,7 +8310,7 @@ func (c *Client) sendActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrg(ctx con if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -8422,11 +8423,11 @@ func (c *Client) sendActionsRemoveSelectedRepoFromOrgSecret(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsRemoveSelectedRepoFromOrgSecret", @@ -8439,7 +8440,7 @@ func (c *Client) sendActionsRemoveSelectedRepoFromOrgSecret(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -8553,11 +8554,11 @@ func (c *Client) sendActionsRemoveSelfHostedRunnerFromGroupForOrg(ctx context.Co startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsRemoveSelfHostedRunnerFromGroupForOrg", @@ -8570,7 +8571,7 @@ func (c *Client) sendActionsRemoveSelfHostedRunnerFromGroupForOrg(ctx context.Co if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -8681,11 +8682,11 @@ func (c *Client) sendActionsRetryWorkflow(ctx context.Context, params ActionsRet startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsRetryWorkflow", @@ -8698,7 +8699,7 @@ func (c *Client) sendActionsRetryWorkflow(ctx context.Context, params ActionsRet if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -8818,11 +8819,11 @@ func (c *Client) sendActionsReviewPendingDeploymentsForRun(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsReviewPendingDeploymentsForRun", @@ -8835,7 +8836,7 @@ func (c *Client) sendActionsReviewPendingDeploymentsForRun(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -8958,11 +8959,11 @@ func (c *Client) sendActionsSetAllowedActionsOrganization(ctx context.Context, r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsSetAllowedActionsOrganization", @@ -8975,7 +8976,7 @@ func (c *Client) sendActionsSetAllowedActionsOrganization(ctx context.Context, r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -9059,11 +9060,11 @@ func (c *Client) sendActionsSetAllowedActionsRepository(ctx context.Context, req startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsSetAllowedActionsRepository", @@ -9076,7 +9077,7 @@ func (c *Client) sendActionsSetAllowedActionsRepository(ctx context.Context, req if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -9184,11 +9185,11 @@ func (c *Client) sendActionsSetGithubActionsPermissionsOrganization(ctx context. startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsSetGithubActionsPermissionsOrganization", @@ -9201,7 +9202,7 @@ func (c *Client) sendActionsSetGithubActionsPermissionsOrganization(ctx context. if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -9291,11 +9292,11 @@ func (c *Client) sendActionsSetGithubActionsPermissionsRepository(ctx context.Co startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsSetGithubActionsPermissionsRepository", @@ -9308,7 +9309,7 @@ func (c *Client) sendActionsSetGithubActionsPermissionsRepository(ctx context.Co if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -9416,11 +9417,11 @@ func (c *Client) sendActionsSetRepoAccessToSelfHostedRunnerGroupInOrg(ctx contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsSetRepoAccessToSelfHostedRunnerGroupInOrg", @@ -9433,7 +9434,7 @@ func (c *Client) sendActionsSetRepoAccessToSelfHostedRunnerGroupInOrg(ctx contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -9540,11 +9541,11 @@ func (c *Client) sendActionsSetSelectedReposForOrgSecret(ctx context.Context, re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsSetSelectedReposForOrgSecret", @@ -9557,7 +9558,7 @@ func (c *Client) sendActionsSetSelectedReposForOrgSecret(ctx context.Context, re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -9665,11 +9666,11 @@ func (c *Client) sendActionsSetSelectedRepositoriesEnabledGithubActionsOrganizat startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsSetSelectedRepositoriesEnabledGithubActionsOrganization", @@ -9682,7 +9683,7 @@ func (c *Client) sendActionsSetSelectedRepositoriesEnabledGithubActionsOrganizat if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -9770,11 +9771,11 @@ func (c *Client) sendActionsSetSelfHostedRunnersInGroupForOrg(ctx context.Contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsSetSelfHostedRunnersInGroupForOrg", @@ -9787,7 +9788,7 @@ func (c *Client) sendActionsSetSelfHostedRunnersInGroupForOrg(ctx context.Contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -9894,11 +9895,11 @@ func (c *Client) sendActionsUpdateSelfHostedRunnerGroupForOrg(ctx context.Contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActionsUpdateSelfHostedRunnerGroupForOrg", @@ -9911,7 +9912,7 @@ func (c *Client) sendActionsUpdateSelfHostedRunnerGroupForOrg(ctx context.Contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -10004,11 +10005,11 @@ func (c *Client) sendActivityCheckRepoIsStarredByAuthenticatedUser(ctx context.C startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActivityCheckRepoIsStarredByAuthenticatedUser", @@ -10021,7 +10022,7 @@ func (c *Client) sendActivityCheckRepoIsStarredByAuthenticatedUser(ctx context.C if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -10113,11 +10114,11 @@ func (c *Client) sendActivityDeleteRepoSubscription(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActivityDeleteRepoSubscription", @@ -10130,7 +10131,7 @@ func (c *Client) sendActivityDeleteRepoSubscription(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -10225,11 +10226,11 @@ func (c *Client) sendActivityDeleteThreadSubscription(ctx context.Context, param startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActivityDeleteThreadSubscription", @@ -10242,7 +10243,7 @@ func (c *Client) sendActivityDeleteThreadSubscription(ctx context.Context, param if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -10328,11 +10329,11 @@ func (c *Client) sendActivityGetFeeds(ctx context.Context) (res *Feed, err error startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActivityGetFeeds", @@ -10345,7 +10346,7 @@ func (c *Client) sendActivityGetFeeds(ctx context.Context) (res *Feed, err error if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -10398,11 +10399,11 @@ func (c *Client) sendActivityGetRepoSubscription(ctx context.Context, params Act startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActivityGetRepoSubscription", @@ -10415,7 +10416,7 @@ func (c *Client) sendActivityGetRepoSubscription(ctx context.Context, params Act if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -10506,11 +10507,11 @@ func (c *Client) sendActivityGetThread(ctx context.Context, params ActivityGetTh startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActivityGetThread", @@ -10523,7 +10524,7 @@ func (c *Client) sendActivityGetThread(ctx context.Context, params ActivityGetTh if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -10597,11 +10598,11 @@ func (c *Client) sendActivityGetThreadSubscriptionForAuthenticatedUser(ctx conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActivityGetThreadSubscriptionForAuthenticatedUser", @@ -10614,7 +10615,7 @@ func (c *Client) sendActivityGetThreadSubscriptionForAuthenticatedUser(ctx conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -10687,11 +10688,11 @@ func (c *Client) sendActivityListEventsForAuthenticatedUser(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActivityListEventsForAuthenticatedUser", @@ -10704,7 +10705,7 @@ func (c *Client) sendActivityListEventsForAuthenticatedUser(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -10814,11 +10815,11 @@ func (c *Client) sendActivityListNotificationsForAuthenticatedUser(ctx context.C startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActivityListNotificationsForAuthenticatedUser", @@ -10831,7 +10832,7 @@ func (c *Client) sendActivityListNotificationsForAuthenticatedUser(ctx context.C if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -10990,11 +10991,11 @@ func (c *Client) sendActivityListOrgEventsForAuthenticatedUser(ctx context.Conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActivityListOrgEventsForAuthenticatedUser", @@ -11007,7 +11008,7 @@ func (c *Client) sendActivityListOrgEventsForAuthenticatedUser(ctx context.Conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -11136,11 +11137,11 @@ func (c *Client) sendActivityListPublicEvents(ctx context.Context, params Activi startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActivityListPublicEvents", @@ -11153,7 +11154,7 @@ func (c *Client) sendActivityListPublicEvents(ctx context.Context, params Activi if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -11244,11 +11245,11 @@ func (c *Client) sendActivityListPublicEventsForRepoNetwork(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActivityListPublicEventsForRepoNetwork", @@ -11261,7 +11262,7 @@ func (c *Client) sendActivityListPublicEventsForRepoNetwork(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -11390,11 +11391,11 @@ func (c *Client) sendActivityListPublicEventsForUser(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActivityListPublicEventsForUser", @@ -11407,7 +11408,7 @@ func (c *Client) sendActivityListPublicEventsForUser(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -11517,11 +11518,11 @@ func (c *Client) sendActivityListPublicOrgEvents(ctx context.Context, params Act startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActivityListPublicOrgEvents", @@ -11534,7 +11535,7 @@ func (c *Client) sendActivityListPublicOrgEvents(ctx context.Context, params Act if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -11646,11 +11647,11 @@ func (c *Client) sendActivityListReceivedEventsForUser(ctx context.Context, para startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActivityListReceivedEventsForUser", @@ -11663,7 +11664,7 @@ func (c *Client) sendActivityListReceivedEventsForUser(ctx context.Context, para if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -11773,11 +11774,11 @@ func (c *Client) sendActivityListReceivedPublicEventsForUser(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActivityListReceivedPublicEventsForUser", @@ -11790,7 +11791,7 @@ func (c *Client) sendActivityListReceivedPublicEventsForUser(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -11900,11 +11901,11 @@ func (c *Client) sendActivityListRepoEvents(ctx context.Context, params Activity startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActivityListRepoEvents", @@ -11917,7 +11918,7 @@ func (c *Client) sendActivityListRepoEvents(ctx context.Context, params Activity if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -12046,11 +12047,11 @@ func (c *Client) sendActivityListRepoNotificationsForAuthenticatedUser(ctx conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActivityListRepoNotificationsForAuthenticatedUser", @@ -12063,7 +12064,7 @@ func (c *Client) sendActivityListRepoNotificationsForAuthenticatedUser(ctx conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -12262,11 +12263,11 @@ func (c *Client) sendActivityListReposStarredByAuthenticatedUser(ctx context.Con startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActivityListReposStarredByAuthenticatedUser", @@ -12279,7 +12280,7 @@ func (c *Client) sendActivityListReposStarredByAuthenticatedUser(ctx context.Con if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -12404,11 +12405,11 @@ func (c *Client) sendActivityListReposWatchedByUser(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActivityListReposWatchedByUser", @@ -12421,7 +12422,7 @@ func (c *Client) sendActivityListReposWatchedByUser(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -12531,11 +12532,11 @@ func (c *Client) sendActivityListWatchedReposForAuthenticatedUser(ctx context.Co startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActivityListWatchedReposForAuthenticatedUser", @@ -12548,7 +12549,7 @@ func (c *Client) sendActivityListWatchedReposForAuthenticatedUser(ctx context.Co if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -12639,11 +12640,11 @@ func (c *Client) sendActivityListWatchersForRepo(ctx context.Context, params Act startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActivityListWatchersForRepo", @@ -12656,7 +12657,7 @@ func (c *Client) sendActivityListWatchersForRepo(ctx context.Context, params Act if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -12791,11 +12792,11 @@ func (c *Client) sendActivityMarkNotificationsAsRead(ctx context.Context, reques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActivityMarkNotificationsAsRead", @@ -12808,7 +12809,7 @@ func (c *Client) sendActivityMarkNotificationsAsRead(ctx context.Context, reques if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -12870,11 +12871,11 @@ func (c *Client) sendActivityMarkRepoNotificationsAsRead(ctx context.Context, re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActivityMarkRepoNotificationsAsRead", @@ -12887,7 +12888,7 @@ func (c *Client) sendActivityMarkRepoNotificationsAsRead(ctx context.Context, re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -12981,11 +12982,11 @@ func (c *Client) sendActivityMarkThreadAsRead(ctx context.Context, params Activi startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActivityMarkThreadAsRead", @@ -12998,7 +12999,7 @@ func (c *Client) sendActivityMarkThreadAsRead(ctx context.Context, params Activi if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -13072,11 +13073,11 @@ func (c *Client) sendActivitySetRepoSubscription(ctx context.Context, request Op startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActivitySetRepoSubscription", @@ -13089,7 +13090,7 @@ func (c *Client) sendActivitySetRepoSubscription(ctx context.Context, request Op if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -13190,11 +13191,11 @@ func (c *Client) sendActivitySetThreadSubscription(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActivitySetThreadSubscription", @@ -13207,7 +13208,7 @@ func (c *Client) sendActivitySetThreadSubscription(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -13284,11 +13285,11 @@ func (c *Client) sendActivityStarRepoForAuthenticatedUser(ctx context.Context, p startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActivityStarRepoForAuthenticatedUser", @@ -13301,7 +13302,7 @@ func (c *Client) sendActivityStarRepoForAuthenticatedUser(ctx context.Context, p if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -13391,11 +13392,11 @@ func (c *Client) sendActivityUnstarRepoForAuthenticatedUser(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ActivityUnstarRepoForAuthenticatedUser", @@ -13408,7 +13409,7 @@ func (c *Client) sendActivityUnstarRepoForAuthenticatedUser(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -13503,11 +13504,11 @@ func (c *Client) sendAppsAddRepoToInstallation(ctx context.Context, params AppsA startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "AppsAddRepoToInstallation", @@ -13520,7 +13521,7 @@ func (c *Client) sendAppsAddRepoToInstallation(ctx context.Context, params AppsA if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -13615,11 +13616,11 @@ func (c *Client) sendAppsCheckToken(ctx context.Context, request *AppsCheckToken startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "AppsCheckToken", @@ -13632,7 +13633,7 @@ func (c *Client) sendAppsCheckToken(ctx context.Context, request *AppsCheckToken if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -13725,11 +13726,11 @@ func (c *Client) sendAppsCreateContentAttachment(ctx context.Context, request *A startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "AppsCreateContentAttachment", @@ -13742,7 +13743,7 @@ func (c *Client) sendAppsCreateContentAttachment(ctx context.Context, request *A if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -13858,11 +13859,11 @@ func (c *Client) sendAppsCreateFromManifest(ctx context.Context, request *AppsCr startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "AppsCreateFromManifest", @@ -13875,7 +13876,7 @@ func (c *Client) sendAppsCreateFromManifest(ctx context.Context, request *AppsCr if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -13975,11 +13976,11 @@ func (c *Client) sendAppsCreateInstallationAccessToken(ctx context.Context, requ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "AppsCreateInstallationAccessToken", @@ -13992,7 +13993,7 @@ func (c *Client) sendAppsCreateInstallationAccessToken(ctx context.Context, requ if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -14076,11 +14077,11 @@ func (c *Client) sendAppsDeleteAuthorization(ctx context.Context, request *AppsD startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "AppsDeleteAuthorization", @@ -14093,7 +14094,7 @@ func (c *Client) sendAppsDeleteAuthorization(ctx context.Context, request *AppsD if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -14173,11 +14174,11 @@ func (c *Client) sendAppsDeleteInstallation(ctx context.Context, params AppsDele startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "AppsDeleteInstallation", @@ -14190,7 +14191,7 @@ func (c *Client) sendAppsDeleteInstallation(ctx context.Context, params AppsDele if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -14264,11 +14265,11 @@ func (c *Client) sendAppsDeleteToken(ctx context.Context, request *AppsDeleteTok startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "AppsDeleteToken", @@ -14281,7 +14282,7 @@ func (c *Client) sendAppsDeleteToken(ctx context.Context, request *AppsDeleteTok if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -14363,11 +14364,11 @@ func (c *Client) sendAppsGetAuthenticated(ctx context.Context) (res *Integration startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "AppsGetAuthenticated", @@ -14380,7 +14381,7 @@ func (c *Client) sendAppsGetAuthenticated(ctx context.Context) (res *Integration if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -14440,11 +14441,11 @@ func (c *Client) sendAppsGetBySlug(ctx context.Context, params AppsGetBySlugPara startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "AppsGetBySlug", @@ -14457,7 +14458,7 @@ func (c *Client) sendAppsGetBySlug(ctx context.Context, params AppsGetBySlugPara if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -14535,11 +14536,11 @@ func (c *Client) sendAppsGetSubscriptionPlanForAccount(ctx context.Context, para startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "AppsGetSubscriptionPlanForAccount", @@ -14552,7 +14553,7 @@ func (c *Client) sendAppsGetSubscriptionPlanForAccount(ctx context.Context, para if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -14630,11 +14631,11 @@ func (c *Client) sendAppsGetSubscriptionPlanForAccountStubbed(ctx context.Contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "AppsGetSubscriptionPlanForAccountStubbed", @@ -14647,7 +14648,7 @@ func (c *Client) sendAppsGetSubscriptionPlanForAccountStubbed(ctx context.Contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -14722,11 +14723,11 @@ func (c *Client) sendAppsGetWebhookConfigForApp(ctx context.Context) (res *Webho startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "AppsGetWebhookConfigForApp", @@ -14739,7 +14740,7 @@ func (c *Client) sendAppsGetWebhookConfigForApp(ctx context.Context) (res *Webho if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -14795,11 +14796,11 @@ func (c *Client) sendAppsGetWebhookDelivery(ctx context.Context, params AppsGetW startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "AppsGetWebhookDelivery", @@ -14812,7 +14813,7 @@ func (c *Client) sendAppsGetWebhookDelivery(ctx context.Context, params AppsGetW if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -14891,11 +14892,11 @@ func (c *Client) sendAppsListAccountsForPlan(ctx context.Context, params AppsLis startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "AppsListAccountsForPlan", @@ -14908,7 +14909,7 @@ func (c *Client) sendAppsListAccountsForPlan(ctx context.Context, params AppsLis if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -15060,11 +15061,11 @@ func (c *Client) sendAppsListAccountsForPlanStubbed(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "AppsListAccountsForPlanStubbed", @@ -15077,7 +15078,7 @@ func (c *Client) sendAppsListAccountsForPlanStubbed(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -15227,11 +15228,11 @@ func (c *Client) sendAppsListInstallationReposForAuthenticatedUser(ctx context.C startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "AppsListInstallationReposForAuthenticatedUser", @@ -15244,7 +15245,7 @@ func (c *Client) sendAppsListInstallationReposForAuthenticatedUser(ctx context.C if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -15359,11 +15360,11 @@ func (c *Client) sendAppsListPlans(ctx context.Context, params AppsListPlansPara startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "AppsListPlans", @@ -15376,7 +15377,7 @@ func (c *Client) sendAppsListPlans(ctx context.Context, params AppsListPlansPara if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -15472,11 +15473,11 @@ func (c *Client) sendAppsListPlansStubbed(ctx context.Context, params AppsListPl startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "AppsListPlansStubbed", @@ -15489,7 +15490,7 @@ func (c *Client) sendAppsListPlansStubbed(ctx context.Context, params AppsListPl if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -15583,11 +15584,11 @@ func (c *Client) sendAppsListReposAccessibleToInstallation(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "AppsListReposAccessibleToInstallation", @@ -15600,7 +15601,7 @@ func (c *Client) sendAppsListReposAccessibleToInstallation(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -15693,11 +15694,11 @@ func (c *Client) sendAppsListSubscriptionsForAuthenticatedUser(ctx context.Conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "AppsListSubscriptionsForAuthenticatedUser", @@ -15710,7 +15711,7 @@ func (c *Client) sendAppsListSubscriptionsForAuthenticatedUser(ctx context.Conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -15803,11 +15804,11 @@ func (c *Client) sendAppsListSubscriptionsForAuthenticatedUserStubbed(ctx contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "AppsListSubscriptionsForAuthenticatedUserStubbed", @@ -15820,7 +15821,7 @@ func (c *Client) sendAppsListSubscriptionsForAuthenticatedUserStubbed(ctx contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -15914,11 +15915,11 @@ func (c *Client) sendAppsListWebhookDeliveries(ctx context.Context, params AppsL startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "AppsListWebhookDeliveries", @@ -15931,7 +15932,7 @@ func (c *Client) sendAppsListWebhookDeliveries(ctx context.Context, params AppsL if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -16025,11 +16026,11 @@ func (c *Client) sendAppsRedeliverWebhookDelivery(ctx context.Context, params Ap startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "AppsRedeliverWebhookDelivery", @@ -16042,7 +16043,7 @@ func (c *Client) sendAppsRedeliverWebhookDelivery(ctx context.Context, params Ap if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -16119,11 +16120,11 @@ func (c *Client) sendAppsRemoveRepoFromInstallation(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "AppsRemoveRepoFromInstallation", @@ -16136,7 +16137,7 @@ func (c *Client) sendAppsRemoveRepoFromInstallation(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -16231,11 +16232,11 @@ func (c *Client) sendAppsResetToken(ctx context.Context, request *AppsResetToken startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "AppsResetToken", @@ -16248,7 +16249,7 @@ func (c *Client) sendAppsResetToken(ctx context.Context, request *AppsResetToken if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -16332,11 +16333,11 @@ func (c *Client) sendAppsRevokeInstallationAccessToken(ctx context.Context) (res startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "AppsRevokeInstallationAccessToken", @@ -16349,7 +16350,7 @@ func (c *Client) sendAppsRevokeInstallationAccessToken(ctx context.Context) (res if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -16416,11 +16417,11 @@ func (c *Client) sendAppsScopeToken(ctx context.Context, request *AppsScopeToken startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "AppsScopeToken", @@ -16433,7 +16434,7 @@ func (c *Client) sendAppsScopeToken(ctx context.Context, request *AppsScopeToken if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -16513,11 +16514,11 @@ func (c *Client) sendAppsSuspendInstallation(ctx context.Context, params AppsSus startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "AppsSuspendInstallation", @@ -16530,7 +16531,7 @@ func (c *Client) sendAppsSuspendInstallation(ctx context.Context, params AppsSus if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -16605,11 +16606,11 @@ func (c *Client) sendAppsUnsuspendInstallation(ctx context.Context, params AppsU startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "AppsUnsuspendInstallation", @@ -16622,7 +16623,7 @@ func (c *Client) sendAppsUnsuspendInstallation(ctx context.Context, params AppsU if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -16714,11 +16715,11 @@ func (c *Client) sendAppsUpdateWebhookConfigForApp(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "AppsUpdateWebhookConfigForApp", @@ -16731,7 +16732,7 @@ func (c *Client) sendAppsUpdateWebhookConfigForApp(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -16794,11 +16795,11 @@ func (c *Client) sendBillingGetGithubActionsBillingGhe(ctx context.Context, para startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "BillingGetGithubActionsBillingGhe", @@ -16811,7 +16812,7 @@ func (c *Client) sendBillingGetGithubActionsBillingGhe(ctx context.Context, para if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -16890,11 +16891,11 @@ func (c *Client) sendBillingGetGithubActionsBillingOrg(ctx context.Context, para startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "BillingGetGithubActionsBillingOrg", @@ -16907,7 +16908,7 @@ func (c *Client) sendBillingGetGithubActionsBillingOrg(ctx context.Context, para if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -16986,11 +16987,11 @@ func (c *Client) sendBillingGetGithubActionsBillingUser(ctx context.Context, par startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "BillingGetGithubActionsBillingUser", @@ -17003,7 +17004,7 @@ func (c *Client) sendBillingGetGithubActionsBillingUser(ctx context.Context, par if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -17079,11 +17080,11 @@ func (c *Client) sendBillingGetGithubPackagesBillingGhe(ctx context.Context, par startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "BillingGetGithubPackagesBillingGhe", @@ -17096,7 +17097,7 @@ func (c *Client) sendBillingGetGithubPackagesBillingGhe(ctx context.Context, par if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -17172,11 +17173,11 @@ func (c *Client) sendBillingGetGithubPackagesBillingOrg(ctx context.Context, par startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "BillingGetGithubPackagesBillingOrg", @@ -17189,7 +17190,7 @@ func (c *Client) sendBillingGetGithubPackagesBillingOrg(ctx context.Context, par if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -17265,11 +17266,11 @@ func (c *Client) sendBillingGetGithubPackagesBillingUser(ctx context.Context, pa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "BillingGetGithubPackagesBillingUser", @@ -17282,7 +17283,7 @@ func (c *Client) sendBillingGetGithubPackagesBillingUser(ctx context.Context, pa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -17358,11 +17359,11 @@ func (c *Client) sendBillingGetSharedStorageBillingGhe(ctx context.Context, para startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "BillingGetSharedStorageBillingGhe", @@ -17375,7 +17376,7 @@ func (c *Client) sendBillingGetSharedStorageBillingGhe(ctx context.Context, para if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -17451,11 +17452,11 @@ func (c *Client) sendBillingGetSharedStorageBillingOrg(ctx context.Context, para startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "BillingGetSharedStorageBillingOrg", @@ -17468,7 +17469,7 @@ func (c *Client) sendBillingGetSharedStorageBillingOrg(ctx context.Context, para if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -17544,11 +17545,11 @@ func (c *Client) sendBillingGetSharedStorageBillingUser(ctx context.Context, par startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "BillingGetSharedStorageBillingUser", @@ -17561,7 +17562,7 @@ func (c *Client) sendBillingGetSharedStorageBillingUser(ctx context.Context, par if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -17641,11 +17642,11 @@ func (c *Client) sendChecksCreateSuite(ctx context.Context, request *ChecksCreat startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ChecksCreateSuite", @@ -17658,7 +17659,7 @@ func (c *Client) sendChecksCreateSuite(ctx context.Context, request *ChecksCreat if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -17757,11 +17758,11 @@ func (c *Client) sendChecksGet(ctx context.Context, params ChecksGetParams) (res startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ChecksGet", @@ -17774,7 +17775,7 @@ func (c *Client) sendChecksGet(ctx context.Context, params ChecksGetParams) (res if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -17888,11 +17889,11 @@ func (c *Client) sendChecksGetSuite(ctx context.Context, params ChecksGetSuitePa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ChecksGetSuite", @@ -17905,7 +17906,7 @@ func (c *Client) sendChecksGetSuite(ctx context.Context, params ChecksGetSuitePa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -18017,11 +18018,11 @@ func (c *Client) sendChecksListAnnotations(ctx context.Context, params ChecksLis startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ChecksListAnnotations", @@ -18034,7 +18035,7 @@ func (c *Client) sendChecksListAnnotations(ctx context.Context, params ChecksLis if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -18188,11 +18189,11 @@ func (c *Client) sendChecksListForRef(ctx context.Context, params ChecksListForR startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ChecksListForRef", @@ -18205,7 +18206,7 @@ func (c *Client) sendChecksListForRef(ctx context.Context, params ChecksListForR if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -18426,11 +18427,11 @@ func (c *Client) sendChecksListForSuite(ctx context.Context, params ChecksListFo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ChecksListForSuite", @@ -18443,7 +18444,7 @@ func (c *Client) sendChecksListForSuite(ctx context.Context, params ChecksListFo if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -18648,11 +18649,11 @@ func (c *Client) sendChecksListSuitesForRef(ctx context.Context, params ChecksLi startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ChecksListSuitesForRef", @@ -18665,7 +18666,7 @@ func (c *Client) sendChecksListSuitesForRef(ctx context.Context, params ChecksLi if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -18852,11 +18853,11 @@ func (c *Client) sendChecksRerequestSuite(ctx context.Context, params ChecksRere startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ChecksRerequestSuite", @@ -18869,7 +18870,7 @@ func (c *Client) sendChecksRerequestSuite(ctx context.Context, params ChecksRere if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -18983,11 +18984,11 @@ func (c *Client) sendChecksSetSuitesPreferences(ctx context.Context, request *Ch startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ChecksSetSuitesPreferences", @@ -19000,7 +19001,7 @@ func (c *Client) sendChecksSetSuitesPreferences(ctx context.Context, request *Ch if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -19152,11 +19153,11 @@ func (c *Client) sendCodeScanningDeleteAnalysis(ctx context.Context, params Code startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "CodeScanningDeleteAnalysis", @@ -19169,7 +19170,7 @@ func (c *Client) sendCodeScanningDeleteAnalysis(ctx context.Context, params Code if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -19305,11 +19306,11 @@ func (c *Client) sendCodeScanningGetAlert(ctx context.Context, params CodeScanni startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "CodeScanningGetAlert", @@ -19322,7 +19323,7 @@ func (c *Client) sendCodeScanningGetAlert(ctx context.Context, params CodeScanni if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -19452,11 +19453,11 @@ func (c *Client) sendCodeScanningGetAnalysis(ctx context.Context, params CodeSca startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "CodeScanningGetAnalysis", @@ -19469,7 +19470,7 @@ func (c *Client) sendCodeScanningGetAnalysis(ctx context.Context, params CodeSca if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -19583,11 +19584,11 @@ func (c *Client) sendCodeScanningGetSarif(ctx context.Context, params CodeScanni startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "CodeScanningGetSarif", @@ -19600,7 +19601,7 @@ func (c *Client) sendCodeScanningGetSarif(ctx context.Context, params CodeScanni if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -19711,11 +19712,11 @@ func (c *Client) sendCodeScanningListAlertInstances(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "CodeScanningListAlertInstances", @@ -19728,7 +19729,7 @@ func (c *Client) sendCodeScanningListAlertInstances(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -19906,11 +19907,11 @@ func (c *Client) sendCodeScanningListAlertsForRepo(ctx context.Context, params C startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "CodeScanningListAlertsForRepo", @@ -19923,7 +19924,7 @@ func (c *Client) sendCodeScanningListAlertsForRepo(ctx context.Context, params C if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -20143,11 +20144,11 @@ func (c *Client) sendCodeScanningListRecentAnalyses(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "CodeScanningListRecentAnalyses", @@ -20160,7 +20161,7 @@ func (c *Client) sendCodeScanningListRecentAnalyses(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -20380,11 +20381,11 @@ func (c *Client) sendCodeScanningUpdateAlert(ctx context.Context, request *CodeS startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "CodeScanningUpdateAlert", @@ -20397,7 +20398,7 @@ func (c *Client) sendCodeScanningUpdateAlert(ctx context.Context, request *CodeS if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -20547,11 +20548,11 @@ func (c *Client) sendCodeScanningUploadSarif(ctx context.Context, request *CodeS startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "CodeScanningUploadSarif", @@ -20564,7 +20565,7 @@ func (c *Client) sendCodeScanningUploadSarif(ctx context.Context, request *CodeS if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -20658,11 +20659,11 @@ func (c *Client) sendCodesOfConductGetAllCodesOfConduct(ctx context.Context) (re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "CodesOfConductGetAllCodesOfConduct", @@ -20675,7 +20676,7 @@ func (c *Client) sendCodesOfConductGetAllCodesOfConduct(ctx context.Context) (re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -20728,11 +20729,11 @@ func (c *Client) sendCodesOfConductGetConductCode(ctx context.Context, params Co startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "CodesOfConductGetConductCode", @@ -20745,7 +20746,7 @@ func (c *Client) sendCodesOfConductGetConductCode(ctx context.Context, params Co if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -20816,11 +20817,11 @@ func (c *Client) sendEmojisGet(ctx context.Context) (res EmojisGetRes, err error startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "EmojisGet", @@ -20833,7 +20834,7 @@ func (c *Client) sendEmojisGet(ctx context.Context) (res EmojisGetRes, err error if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -20890,11 +20891,11 @@ func (c *Client) sendEnterpriseAdminAddOrgAccessToSelfHostedRunnerGroupInEnterpr startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "EnterpriseAdminAddOrgAccessToSelfHostedRunnerGroupInEnterprise", @@ -20907,7 +20908,7 @@ func (c *Client) sendEnterpriseAdminAddOrgAccessToSelfHostedRunnerGroupInEnterpr if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -21018,11 +21019,11 @@ func (c *Client) sendEnterpriseAdminAddSelfHostedRunnerToGroupForEnterprise(ctx startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "EnterpriseAdminAddSelfHostedRunnerToGroupForEnterprise", @@ -21035,7 +21036,7 @@ func (c *Client) sendEnterpriseAdminAddSelfHostedRunnerToGroupForEnterprise(ctx if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -21151,11 +21152,11 @@ func (c *Client) sendEnterpriseAdminCreateRegistrationTokenForEnterprise(ctx con startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "EnterpriseAdminCreateRegistrationTokenForEnterprise", @@ -21168,7 +21169,7 @@ func (c *Client) sendEnterpriseAdminCreateRegistrationTokenForEnterprise(ctx con if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -21249,11 +21250,11 @@ func (c *Client) sendEnterpriseAdminCreateRemoveTokenForEnterprise(ctx context.C startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "EnterpriseAdminCreateRemoveTokenForEnterprise", @@ -21266,7 +21267,7 @@ func (c *Client) sendEnterpriseAdminCreateRemoveTokenForEnterprise(ctx context.C if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -21348,11 +21349,11 @@ func (c *Client) sendEnterpriseAdminCreateSelfHostedRunnerGroupForEnterprise(ctx startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "EnterpriseAdminCreateSelfHostedRunnerGroupForEnterprise", @@ -21365,7 +21366,7 @@ func (c *Client) sendEnterpriseAdminCreateSelfHostedRunnerGroupForEnterprise(ctx if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -21441,11 +21442,11 @@ func (c *Client) sendEnterpriseAdminDeleteScimGroupFromEnterprise(ctx context.Co startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "EnterpriseAdminDeleteScimGroupFromEnterprise", @@ -21458,7 +21459,7 @@ func (c *Client) sendEnterpriseAdminDeleteScimGroupFromEnterprise(ctx context.Co if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -21550,11 +21551,11 @@ func (c *Client) sendEnterpriseAdminDeleteSelfHostedRunnerFromEnterprise(ctx con startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "EnterpriseAdminDeleteSelfHostedRunnerFromEnterprise", @@ -21567,7 +21568,7 @@ func (c *Client) sendEnterpriseAdminDeleteSelfHostedRunnerFromEnterprise(ctx con if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -21658,11 +21659,11 @@ func (c *Client) sendEnterpriseAdminDeleteSelfHostedRunnerGroupFromEnterprise(ct startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "EnterpriseAdminDeleteSelfHostedRunnerGroupFromEnterprise", @@ -21675,7 +21676,7 @@ func (c *Client) sendEnterpriseAdminDeleteSelfHostedRunnerGroupFromEnterprise(ct if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -21766,11 +21767,11 @@ func (c *Client) sendEnterpriseAdminDeleteUserFromEnterprise(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "EnterpriseAdminDeleteUserFromEnterprise", @@ -21783,7 +21784,7 @@ func (c *Client) sendEnterpriseAdminDeleteUserFromEnterprise(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -21877,11 +21878,11 @@ func (c *Client) sendEnterpriseAdminDisableSelectedOrganizationGithubActionsEnte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "EnterpriseAdminDisableSelectedOrganizationGithubActionsEnterprise", @@ -21894,7 +21895,7 @@ func (c *Client) sendEnterpriseAdminDisableSelectedOrganizationGithubActionsEnte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -21988,11 +21989,11 @@ func (c *Client) sendEnterpriseAdminEnableSelectedOrganizationGithubActionsEnter startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "EnterpriseAdminEnableSelectedOrganizationGithubActionsEnterprise", @@ -22005,7 +22006,7 @@ func (c *Client) sendEnterpriseAdminEnableSelectedOrganizationGithubActionsEnter if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -22099,11 +22100,11 @@ func (c *Client) sendEnterpriseAdminGetAllowedActionsEnterprise(ctx context.Cont startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "EnterpriseAdminGetAllowedActionsEnterprise", @@ -22116,7 +22117,7 @@ func (c *Client) sendEnterpriseAdminGetAllowedActionsEnterprise(ctx context.Cont if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -22189,11 +22190,11 @@ func (c *Client) sendEnterpriseAdminGetAuditLog(ctx context.Context, params Ente startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "EnterpriseAdminGetAuditLog", @@ -22206,7 +22207,7 @@ func (c *Client) sendEnterpriseAdminGetAuditLog(ctx context.Context, params Ente if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -22402,11 +22403,11 @@ func (c *Client) sendEnterpriseAdminGetGithubActionsPermissionsEnterprise(ctx co startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "EnterpriseAdminGetGithubActionsPermissionsEnterprise", @@ -22419,7 +22420,7 @@ func (c *Client) sendEnterpriseAdminGetGithubActionsPermissionsEnterprise(ctx co if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -22492,11 +22493,11 @@ func (c *Client) sendEnterpriseAdminGetProvisioningInformationForEnterpriseGroup startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "EnterpriseAdminGetProvisioningInformationForEnterpriseGroup", @@ -22509,7 +22510,7 @@ func (c *Client) sendEnterpriseAdminGetProvisioningInformationForEnterpriseGroup if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -22621,11 +22622,11 @@ func (c *Client) sendEnterpriseAdminGetProvisioningInformationForEnterpriseUser( startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "EnterpriseAdminGetProvisioningInformationForEnterpriseUser", @@ -22638,7 +22639,7 @@ func (c *Client) sendEnterpriseAdminGetProvisioningInformationForEnterpriseUser( if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -22729,11 +22730,11 @@ func (c *Client) sendEnterpriseAdminGetSelfHostedRunnerForEnterprise(ctx context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "EnterpriseAdminGetSelfHostedRunnerForEnterprise", @@ -22746,7 +22747,7 @@ func (c *Client) sendEnterpriseAdminGetSelfHostedRunnerForEnterprise(ctx context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -22837,11 +22838,11 @@ func (c *Client) sendEnterpriseAdminGetSelfHostedRunnerGroupForEnterprise(ctx co startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "EnterpriseAdminGetSelfHostedRunnerGroupForEnterprise", @@ -22854,7 +22855,7 @@ func (c *Client) sendEnterpriseAdminGetSelfHostedRunnerGroupForEnterprise(ctx co if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -22945,11 +22946,11 @@ func (c *Client) sendEnterpriseAdminListOrgAccessToSelfHostedRunnerGroupInEnterp startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "EnterpriseAdminListOrgAccessToSelfHostedRunnerGroupInEnterprise", @@ -22962,7 +22963,7 @@ func (c *Client) sendEnterpriseAdminListOrgAccessToSelfHostedRunnerGroupInEnterp if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -23092,11 +23093,11 @@ func (c *Client) sendEnterpriseAdminListProvisionedGroupsEnterprise(ctx context. startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "EnterpriseAdminListProvisionedGroupsEnterprise", @@ -23109,7 +23110,7 @@ func (c *Client) sendEnterpriseAdminListProvisionedGroupsEnterprise(ctx context. if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -23279,11 +23280,11 @@ func (c *Client) sendEnterpriseAdminListProvisionedIdentitiesEnterprise(ctx cont startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "EnterpriseAdminListProvisionedIdentitiesEnterprise", @@ -23296,7 +23297,7 @@ func (c *Client) sendEnterpriseAdminListProvisionedIdentitiesEnterprise(ctx cont if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -23424,11 +23425,11 @@ func (c *Client) sendEnterpriseAdminListRunnerApplicationsForEnterprise(ctx cont startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "EnterpriseAdminListRunnerApplicationsForEnterprise", @@ -23441,7 +23442,7 @@ func (c *Client) sendEnterpriseAdminListRunnerApplicationsForEnterprise(ctx cont if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -23517,11 +23518,11 @@ func (c *Client) sendEnterpriseAdminListSelectedOrganizationsEnabledGithubAction startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "EnterpriseAdminListSelectedOrganizationsEnabledGithubActionsEnterprise", @@ -23534,7 +23535,7 @@ func (c *Client) sendEnterpriseAdminListSelectedOrganizationsEnabledGithubAction if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -23645,11 +23646,11 @@ func (c *Client) sendEnterpriseAdminListSelfHostedRunnerGroupsForEnterprise(ctx startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "EnterpriseAdminListSelfHostedRunnerGroupsForEnterprise", @@ -23662,7 +23663,7 @@ func (c *Client) sendEnterpriseAdminListSelfHostedRunnerGroupsForEnterprise(ctx if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -23773,11 +23774,11 @@ func (c *Client) sendEnterpriseAdminListSelfHostedRunnersForEnterprise(ctx conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "EnterpriseAdminListSelfHostedRunnersForEnterprise", @@ -23790,7 +23791,7 @@ func (c *Client) sendEnterpriseAdminListSelfHostedRunnersForEnterprise(ctx conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -23901,11 +23902,11 @@ func (c *Client) sendEnterpriseAdminListSelfHostedRunnersInGroupForEnterprise(ct startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "EnterpriseAdminListSelfHostedRunnersInGroupForEnterprise", @@ -23918,7 +23919,7 @@ func (c *Client) sendEnterpriseAdminListSelfHostedRunnersInGroupForEnterprise(ct if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -24060,11 +24061,11 @@ func (c *Client) sendEnterpriseAdminProvisionAndInviteEnterpriseGroup(ctx contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "EnterpriseAdminProvisionAndInviteEnterpriseGroup", @@ -24077,7 +24078,7 @@ func (c *Client) sendEnterpriseAdminProvisionAndInviteEnterpriseGroup(ctx contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -24167,11 +24168,11 @@ func (c *Client) sendEnterpriseAdminProvisionAndInviteEnterpriseUser(ctx context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "EnterpriseAdminProvisionAndInviteEnterpriseUser", @@ -24184,7 +24185,7 @@ func (c *Client) sendEnterpriseAdminProvisionAndInviteEnterpriseUser(ctx context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -24263,11 +24264,11 @@ func (c *Client) sendEnterpriseAdminRemoveOrgAccessToSelfHostedRunnerGroupInEnte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "EnterpriseAdminRemoveOrgAccessToSelfHostedRunnerGroupInEnterprise", @@ -24280,7 +24281,7 @@ func (c *Client) sendEnterpriseAdminRemoveOrgAccessToSelfHostedRunnerGroupInEnte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -24391,11 +24392,11 @@ func (c *Client) sendEnterpriseAdminRemoveSelfHostedRunnerFromGroupForEnterprise startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "EnterpriseAdminRemoveSelfHostedRunnerFromGroupForEnterprise", @@ -24408,7 +24409,7 @@ func (c *Client) sendEnterpriseAdminRemoveSelfHostedRunnerFromGroupForEnterprise if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -24521,11 +24522,11 @@ func (c *Client) sendEnterpriseAdminSetAllowedActionsEnterprise(ctx context.Cont startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "EnterpriseAdminSetAllowedActionsEnterprise", @@ -24538,7 +24539,7 @@ func (c *Client) sendEnterpriseAdminSetAllowedActionsEnterprise(ctx context.Cont if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -24623,11 +24624,11 @@ func (c *Client) sendEnterpriseAdminSetGithubActionsPermissionsEnterprise(ctx co startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "EnterpriseAdminSetGithubActionsPermissionsEnterprise", @@ -24640,7 +24641,7 @@ func (c *Client) sendEnterpriseAdminSetGithubActionsPermissionsEnterprise(ctx co if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -24730,11 +24731,11 @@ func (c *Client) sendEnterpriseAdminSetInformationForProvisionedEnterpriseGroup( startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "EnterpriseAdminSetInformationForProvisionedEnterpriseGroup", @@ -24747,7 +24748,7 @@ func (c *Client) sendEnterpriseAdminSetInformationForProvisionedEnterpriseGroup( if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -24858,11 +24859,11 @@ func (c *Client) sendEnterpriseAdminSetInformationForProvisionedEnterpriseUser(c startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "EnterpriseAdminSetInformationForProvisionedEnterpriseUser", @@ -24875,7 +24876,7 @@ func (c *Client) sendEnterpriseAdminSetInformationForProvisionedEnterpriseUser(c if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -24979,11 +24980,11 @@ func (c *Client) sendEnterpriseAdminSetOrgAccessToSelfHostedRunnerGroupInEnterpr startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "EnterpriseAdminSetOrgAccessToSelfHostedRunnerGroupInEnterprise", @@ -24996,7 +24997,7 @@ func (c *Client) sendEnterpriseAdminSetOrgAccessToSelfHostedRunnerGroupInEnterpr if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -25103,11 +25104,11 @@ func (c *Client) sendEnterpriseAdminSetSelectedOrganizationsEnabledGithubActions startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "EnterpriseAdminSetSelectedOrganizationsEnabledGithubActionsEnterprise", @@ -25120,7 +25121,7 @@ func (c *Client) sendEnterpriseAdminSetSelectedOrganizationsEnabledGithubActions if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -25205,11 +25206,11 @@ func (c *Client) sendEnterpriseAdminSetSelfHostedRunnersInGroupForEnterprise(ctx startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "EnterpriseAdminSetSelfHostedRunnersInGroupForEnterprise", @@ -25222,7 +25223,7 @@ func (c *Client) sendEnterpriseAdminSetSelfHostedRunnersInGroupForEnterprise(ctx if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -25330,11 +25331,11 @@ func (c *Client) sendEnterpriseAdminUpdateAttributeForEnterpriseGroup(ctx contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "EnterpriseAdminUpdateAttributeForEnterpriseGroup", @@ -25347,7 +25348,7 @@ func (c *Client) sendEnterpriseAdminUpdateAttributeForEnterpriseGroup(ctx contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -25471,11 +25472,11 @@ func (c *Client) sendEnterpriseAdminUpdateAttributeForEnterpriseUser(ctx context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "EnterpriseAdminUpdateAttributeForEnterpriseUser", @@ -25488,7 +25489,7 @@ func (c *Client) sendEnterpriseAdminUpdateAttributeForEnterpriseUser(ctx context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -25598,11 +25599,11 @@ func (c *Client) sendEnterpriseAdminUpdateSelfHostedRunnerGroupForEnterprise(ctx startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "EnterpriseAdminUpdateSelfHostedRunnerGroupForEnterprise", @@ -25615,7 +25616,7 @@ func (c *Client) sendEnterpriseAdminUpdateSelfHostedRunnerGroupForEnterprise(ctx if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -25708,11 +25709,11 @@ func (c *Client) sendGistsCheckIsStarred(ctx context.Context, params GistsCheckI startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GistsCheckIsStarred", @@ -25725,7 +25726,7 @@ func (c *Client) sendGistsCheckIsStarred(ctx context.Context, params GistsCheckI if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -25808,11 +25809,11 @@ func (c *Client) sendGistsCreate(ctx context.Context, request *GistsCreateReq) ( startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GistsCreate", @@ -25825,7 +25826,7 @@ func (c *Client) sendGistsCreate(ctx context.Context, request *GistsCreateReq) ( if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -25890,11 +25891,11 @@ func (c *Client) sendGistsCreateComment(ctx context.Context, request *GistsCreat startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GistsCreateComment", @@ -25907,7 +25908,7 @@ func (c *Client) sendGistsCreateComment(ctx context.Context, request *GistsCreat if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -25982,11 +25983,11 @@ func (c *Client) sendGistsDelete(ctx context.Context, params GistsDeleteParams) startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GistsDelete", @@ -25999,7 +26000,7 @@ func (c *Client) sendGistsDelete(ctx context.Context, params GistsDeleteParams) if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -26070,11 +26071,11 @@ func (c *Client) sendGistsDeleteComment(ctx context.Context, params GistsDeleteC startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GistsDeleteComment", @@ -26087,7 +26088,7 @@ func (c *Client) sendGistsDeleteComment(ctx context.Context, params GistsDeleteC if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -26177,11 +26178,11 @@ func (c *Client) sendGistsFork(ctx context.Context, params GistsForkParams) (res startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GistsFork", @@ -26194,7 +26195,7 @@ func (c *Client) sendGistsFork(ctx context.Context, params GistsForkParams) (res if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -26266,11 +26267,11 @@ func (c *Client) sendGistsGet(ctx context.Context, params GistsGetParams) (res G startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GistsGet", @@ -26283,7 +26284,7 @@ func (c *Client) sendGistsGet(ctx context.Context, params GistsGetParams) (res G if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -26354,11 +26355,11 @@ func (c *Client) sendGistsGetComment(ctx context.Context, params GistsGetComment startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GistsGetComment", @@ -26371,7 +26372,7 @@ func (c *Client) sendGistsGetComment(ctx context.Context, params GistsGetComment if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -26461,11 +26462,11 @@ func (c *Client) sendGistsGetRevision(ctx context.Context, params GistsGetRevisi startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GistsGetRevision", @@ -26478,7 +26479,7 @@ func (c *Client) sendGistsGetRevision(ctx context.Context, params GistsGetRevisi if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -26569,11 +26570,11 @@ func (c *Client) sendGistsList(ctx context.Context, params GistsListParams) (res startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GistsList", @@ -26586,7 +26587,7 @@ func (c *Client) sendGistsList(ctx context.Context, params GistsListParams) (res if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -26694,11 +26695,11 @@ func (c *Client) sendGistsListComments(ctx context.Context, params GistsListComm startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GistsListComments", @@ -26711,7 +26712,7 @@ func (c *Client) sendGistsListComments(ctx context.Context, params GistsListComm if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -26821,11 +26822,11 @@ func (c *Client) sendGistsListCommits(ctx context.Context, params GistsListCommi startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GistsListCommits", @@ -26838,7 +26839,7 @@ func (c *Client) sendGistsListCommits(ctx context.Context, params GistsListCommi if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -26948,11 +26949,11 @@ func (c *Client) sendGistsListForUser(ctx context.Context, params GistsListForUs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GistsListForUser", @@ -26965,7 +26966,7 @@ func (c *Client) sendGistsListForUser(ctx context.Context, params GistsListForUs if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -27092,11 +27093,11 @@ func (c *Client) sendGistsListForks(ctx context.Context, params GistsListForksPa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GistsListForks", @@ -27109,7 +27110,7 @@ func (c *Client) sendGistsListForks(ctx context.Context, params GistsListForksPa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -27222,11 +27223,11 @@ func (c *Client) sendGistsListPublic(ctx context.Context, params GistsListPublic startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GistsListPublic", @@ -27239,7 +27240,7 @@ func (c *Client) sendGistsListPublic(ctx context.Context, params GistsListPublic if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -27347,11 +27348,11 @@ func (c *Client) sendGistsListStarred(ctx context.Context, params GistsListStarr startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GistsListStarred", @@ -27364,7 +27365,7 @@ func (c *Client) sendGistsListStarred(ctx context.Context, params GistsListStarr if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -27474,11 +27475,11 @@ func (c *Client) sendGistsStar(ctx context.Context, params GistsStarParams) (res startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GistsStar", @@ -27491,7 +27492,7 @@ func (c *Client) sendGistsStar(ctx context.Context, params GistsStarParams) (res if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -27563,11 +27564,11 @@ func (c *Client) sendGistsUnstar(ctx context.Context, params GistsUnstarParams) startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GistsUnstar", @@ -27580,7 +27581,7 @@ func (c *Client) sendGistsUnstar(ctx context.Context, params GistsUnstarParams) if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -27661,11 +27662,11 @@ func (c *Client) sendGistsUpdateComment(ctx context.Context, request *GistsUpdat startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GistsUpdateComment", @@ -27678,7 +27679,7 @@ func (c *Client) sendGistsUpdateComment(ctx context.Context, request *GistsUpdat if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -27771,11 +27772,11 @@ func (c *Client) sendGitCreateBlob(ctx context.Context, request *GitCreateBlobRe startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GitCreateBlob", @@ -27788,7 +27789,7 @@ func (c *Client) sendGitCreateBlob(ctx context.Context, request *GitCreateBlobRe if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -27915,11 +27916,11 @@ func (c *Client) sendGitCreateCommit(ctx context.Context, request *GitCreateComm startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GitCreateCommit", @@ -27932,7 +27933,7 @@ func (c *Client) sendGitCreateCommit(ctx context.Context, request *GitCreateComm if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -28028,11 +28029,11 @@ func (c *Client) sendGitCreateRef(ctx context.Context, request *GitCreateRefReq, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GitCreateRef", @@ -28045,7 +28046,7 @@ func (c *Client) sendGitCreateRef(ctx context.Context, request *GitCreateRefReq, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -28184,11 +28185,11 @@ func (c *Client) sendGitCreateTag(ctx context.Context, request *GitCreateTagReq, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GitCreateTag", @@ -28201,7 +28202,7 @@ func (c *Client) sendGitCreateTag(ctx context.Context, request *GitCreateTagReq, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -28310,11 +28311,11 @@ func (c *Client) sendGitCreateTree(ctx context.Context, request *GitCreateTreeRe startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GitCreateTree", @@ -28327,7 +28328,7 @@ func (c *Client) sendGitCreateTree(ctx context.Context, request *GitCreateTreeRe if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -28421,11 +28422,11 @@ func (c *Client) sendGitDeleteRef(ctx context.Context, params GitDeleteRefParams startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GitDeleteRef", @@ -28438,7 +28439,7 @@ func (c *Client) sendGitDeleteRef(ctx context.Context, params GitDeleteRefParams if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -28548,11 +28549,11 @@ func (c *Client) sendGitGetBlob(ctx context.Context, params GitGetBlobParams) (r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GitGetBlob", @@ -28565,7 +28566,7 @@ func (c *Client) sendGitGetBlob(ctx context.Context, params GitGetBlobParams) (r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -28707,11 +28708,11 @@ func (c *Client) sendGitGetCommit(ctx context.Context, params GitGetCommitParams startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GitGetCommit", @@ -28724,7 +28725,7 @@ func (c *Client) sendGitGetCommit(ctx context.Context, params GitGetCommitParams if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -28840,11 +28841,11 @@ func (c *Client) sendGitGetRef(ctx context.Context, params GitGetRefParams) (res startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GitGetRef", @@ -28857,7 +28858,7 @@ func (c *Client) sendGitGetRef(ctx context.Context, params GitGetRefParams) (res if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -28997,11 +28998,11 @@ func (c *Client) sendGitGetTag(ctx context.Context, params GitGetTagParams) (res startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GitGetTag", @@ -29014,7 +29015,7 @@ func (c *Client) sendGitGetTag(ctx context.Context, params GitGetTagParams) (res if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -29126,11 +29127,11 @@ func (c *Client) sendGitGetTree(ctx context.Context, params GitGetTreeParams) (r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GitGetTree", @@ -29143,7 +29144,7 @@ func (c *Client) sendGitGetTree(ctx context.Context, params GitGetTreeParams) (r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -29287,11 +29288,11 @@ func (c *Client) sendGitListMatchingRefs(ctx context.Context, params GitListMatc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GitListMatchingRefs", @@ -29304,7 +29305,7 @@ func (c *Client) sendGitListMatchingRefs(ctx context.Context, params GitListMatc if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -29451,11 +29452,11 @@ func (c *Client) sendGitUpdateRef(ctx context.Context, request *GitUpdateRefReq, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GitUpdateRef", @@ -29468,7 +29469,7 @@ func (c *Client) sendGitUpdateRef(ctx context.Context, request *GitUpdateRefReq, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -29581,11 +29582,11 @@ func (c *Client) sendGitignoreGetAllTemplates(ctx context.Context) (res Gitignor startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GitignoreGetAllTemplates", @@ -29598,7 +29599,7 @@ func (c *Client) sendGitignoreGetAllTemplates(ctx context.Context) (res Gitignor if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -29653,11 +29654,11 @@ func (c *Client) sendGitignoreGetTemplate(ctx context.Context, params GitignoreG startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GitignoreGetTemplate", @@ -29670,7 +29671,7 @@ func (c *Client) sendGitignoreGetTemplate(ctx context.Context, params GitignoreG if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -29741,11 +29742,11 @@ func (c *Client) sendInteractionsRemoveRestrictionsForAuthenticatedUser(ctx cont startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "InteractionsRemoveRestrictionsForAuthenticatedUser", @@ -29758,7 +29759,7 @@ func (c *Client) sendInteractionsRemoveRestrictionsForAuthenticatedUser(ctx cont if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -29812,11 +29813,11 @@ func (c *Client) sendInteractionsRemoveRestrictionsForOrg(ctx context.Context, p startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "InteractionsRemoveRestrictionsForOrg", @@ -29829,7 +29830,7 @@ func (c *Client) sendInteractionsRemoveRestrictionsForOrg(ctx context.Context, p if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -29904,11 +29905,11 @@ func (c *Client) sendInteractionsRemoveRestrictionsForRepo(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "InteractionsRemoveRestrictionsForRepo", @@ -29921,7 +29922,7 @@ func (c *Client) sendInteractionsRemoveRestrictionsForRepo(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -30023,11 +30024,11 @@ func (c *Client) sendInteractionsSetRestrictionsForAuthenticatedUser(ctx context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "InteractionsSetRestrictionsForAuthenticatedUser", @@ -30040,7 +30041,7 @@ func (c *Client) sendInteractionsSetRestrictionsForAuthenticatedUser(ctx context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -30108,11 +30109,11 @@ func (c *Client) sendInteractionsSetRestrictionsForOrg(ctx context.Context, requ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "InteractionsSetRestrictionsForOrg", @@ -30125,7 +30126,7 @@ func (c *Client) sendInteractionsSetRestrictionsForOrg(ctx context.Context, requ if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -30212,11 +30213,11 @@ func (c *Client) sendInteractionsSetRestrictionsForRepo(ctx context.Context, req startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "InteractionsSetRestrictionsForRepo", @@ -30229,7 +30230,7 @@ func (c *Client) sendInteractionsSetRestrictionsForRepo(ctx context.Context, req if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -30323,11 +30324,11 @@ func (c *Client) sendIssuesAddAssignees(ctx context.Context, request OptIssuesAd startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "IssuesAddAssignees", @@ -30340,7 +30341,7 @@ func (c *Client) sendIssuesAddAssignees(ctx context.Context, request OptIssuesAd if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -30456,11 +30457,11 @@ func (c *Client) sendIssuesCheckUserCanBeAssigned(ctx context.Context, params Is startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "IssuesCheckUserCanBeAssigned", @@ -30473,7 +30474,7 @@ func (c *Client) sendIssuesCheckUserCanBeAssigned(ctx context.Context, params Is if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -30591,11 +30592,11 @@ func (c *Client) sendIssuesCreate(ctx context.Context, request *IssuesCreateReq, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "IssuesCreate", @@ -30608,7 +30609,7 @@ func (c *Client) sendIssuesCreate(ctx context.Context, request *IssuesCreateReq, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -30708,11 +30709,11 @@ func (c *Client) sendIssuesCreateComment(ctx context.Context, request *IssuesCre startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "IssuesCreateComment", @@ -30725,7 +30726,7 @@ func (c *Client) sendIssuesCreateComment(ctx context.Context, request *IssuesCre if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -30838,11 +30839,11 @@ func (c *Client) sendIssuesCreateLabel(ctx context.Context, request *IssuesCreat startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "IssuesCreateLabel", @@ -30855,7 +30856,7 @@ func (c *Client) sendIssuesCreateLabel(ctx context.Context, request *IssuesCreat if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -30958,11 +30959,11 @@ func (c *Client) sendIssuesCreateMilestone(ctx context.Context, request *IssuesC startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "IssuesCreateMilestone", @@ -30975,7 +30976,7 @@ func (c *Client) sendIssuesCreateMilestone(ctx context.Context, request *IssuesC if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -31069,11 +31070,11 @@ func (c *Client) sendIssuesDeleteComment(ctx context.Context, params IssuesDelet startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "IssuesDeleteComment", @@ -31086,7 +31087,7 @@ func (c *Client) sendIssuesDeleteComment(ctx context.Context, params IssuesDelet if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -31195,11 +31196,11 @@ func (c *Client) sendIssuesDeleteLabel(ctx context.Context, params IssuesDeleteL startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "IssuesDeleteLabel", @@ -31212,7 +31213,7 @@ func (c *Client) sendIssuesDeleteLabel(ctx context.Context, params IssuesDeleteL if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -31321,11 +31322,11 @@ func (c *Client) sendIssuesDeleteMilestone(ctx context.Context, params IssuesDel startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "IssuesDeleteMilestone", @@ -31338,7 +31339,7 @@ func (c *Client) sendIssuesDeleteMilestone(ctx context.Context, params IssuesDel if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -31465,11 +31466,11 @@ func (c *Client) sendIssuesGet(ctx context.Context, params IssuesGetParams) (res startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "IssuesGet", @@ -31482,7 +31483,7 @@ func (c *Client) sendIssuesGet(ctx context.Context, params IssuesGetParams) (res if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -31591,11 +31592,11 @@ func (c *Client) sendIssuesGetComment(ctx context.Context, params IssuesGetComme startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "IssuesGetComment", @@ -31608,7 +31609,7 @@ func (c *Client) sendIssuesGetComment(ctx context.Context, params IssuesGetComme if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -31717,11 +31718,11 @@ func (c *Client) sendIssuesGetEvent(ctx context.Context, params IssuesGetEventPa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "IssuesGetEvent", @@ -31734,7 +31735,7 @@ func (c *Client) sendIssuesGetEvent(ctx context.Context, params IssuesGetEventPa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -31843,11 +31844,11 @@ func (c *Client) sendIssuesGetLabel(ctx context.Context, params IssuesGetLabelPa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "IssuesGetLabel", @@ -31860,7 +31861,7 @@ func (c *Client) sendIssuesGetLabel(ctx context.Context, params IssuesGetLabelPa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -31969,11 +31970,11 @@ func (c *Client) sendIssuesGetMilestone(ctx context.Context, params IssuesGetMil startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "IssuesGetMilestone", @@ -31986,7 +31987,7 @@ func (c *Client) sendIssuesGetMilestone(ctx context.Context, params IssuesGetMil if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -32107,11 +32108,11 @@ func (c *Client) sendIssuesList(ctx context.Context, params IssuesListParams) (r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "IssuesList", @@ -32124,7 +32125,7 @@ func (c *Client) sendIssuesList(ctx context.Context, params IssuesListParams) (r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -32386,11 +32387,11 @@ func (c *Client) sendIssuesListAssignees(ctx context.Context, params IssuesListA startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "IssuesListAssignees", @@ -32403,7 +32404,7 @@ func (c *Client) sendIssuesListAssignees(ctx context.Context, params IssuesListA if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -32532,11 +32533,11 @@ func (c *Client) sendIssuesListComments(ctx context.Context, params IssuesListCo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "IssuesListComments", @@ -32549,7 +32550,7 @@ func (c *Client) sendIssuesListComments(ctx context.Context, params IssuesListCo if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -32714,11 +32715,11 @@ func (c *Client) sendIssuesListCommentsForRepo(ctx context.Context, params Issue startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "IssuesListCommentsForRepo", @@ -32731,7 +32732,7 @@ func (c *Client) sendIssuesListCommentsForRepo(ctx context.Context, params Issue if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -32911,11 +32912,11 @@ func (c *Client) sendIssuesListEventsForRepo(ctx context.Context, params IssuesL startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "IssuesListEventsForRepo", @@ -32928,7 +32929,7 @@ func (c *Client) sendIssuesListEventsForRepo(ctx context.Context, params IssuesL if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -33065,11 +33066,11 @@ func (c *Client) sendIssuesListForAuthenticatedUser(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "IssuesListForAuthenticatedUser", @@ -33082,7 +33083,7 @@ func (c *Client) sendIssuesListForAuthenticatedUser(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -33283,11 +33284,11 @@ func (c *Client) sendIssuesListForOrg(ctx context.Context, params IssuesListForO startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "IssuesListForOrg", @@ -33300,7 +33301,7 @@ func (c *Client) sendIssuesListForOrg(ctx context.Context, params IssuesListForO if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -33520,11 +33521,11 @@ func (c *Client) sendIssuesListForRepo(ctx context.Context, params IssuesListFor startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "IssuesListForRepo", @@ -33537,7 +33538,7 @@ func (c *Client) sendIssuesListForRepo(ctx context.Context, params IssuesListFor if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -33819,11 +33820,11 @@ func (c *Client) sendIssuesListLabelsForMilestone(ctx context.Context, params Is startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "IssuesListLabelsForMilestone", @@ -33836,7 +33837,7 @@ func (c *Client) sendIssuesListLabelsForMilestone(ctx context.Context, params Is if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -33984,11 +33985,11 @@ func (c *Client) sendIssuesListLabelsForRepo(ctx context.Context, params IssuesL startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "IssuesListLabelsForRepo", @@ -34001,7 +34002,7 @@ func (c *Client) sendIssuesListLabelsForRepo(ctx context.Context, params IssuesL if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -34130,11 +34131,11 @@ func (c *Client) sendIssuesListLabelsOnIssue(ctx context.Context, params IssuesL startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "IssuesListLabelsOnIssue", @@ -34147,7 +34148,7 @@ func (c *Client) sendIssuesListLabelsOnIssue(ctx context.Context, params IssuesL if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -34295,11 +34296,11 @@ func (c *Client) sendIssuesListMilestones(ctx context.Context, params IssuesList startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "IssuesListMilestones", @@ -34312,7 +34313,7 @@ func (c *Client) sendIssuesListMilestones(ctx context.Context, params IssuesList if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -34511,11 +34512,11 @@ func (c *Client) sendIssuesLock(ctx context.Context, request OptNilIssuesLockReq startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "IssuesLock", @@ -34528,7 +34529,7 @@ func (c *Client) sendIssuesLock(ctx context.Context, request OptNilIssuesLockReq if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -34641,11 +34642,11 @@ func (c *Client) sendIssuesRemoveAllLabels(ctx context.Context, params IssuesRem startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "IssuesRemoveAllLabels", @@ -34658,7 +34659,7 @@ func (c *Client) sendIssuesRemoveAllLabels(ctx context.Context, params IssuesRem if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -34768,11 +34769,11 @@ func (c *Client) sendIssuesRemoveAssignees(ctx context.Context, request OptIssue startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "IssuesRemoveAssignees", @@ -34785,7 +34786,7 @@ func (c *Client) sendIssuesRemoveAssignees(ctx context.Context, request OptIssue if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -34899,11 +34900,11 @@ func (c *Client) sendIssuesRemoveLabel(ctx context.Context, params IssuesRemoveL startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "IssuesRemoveLabel", @@ -34916,7 +34917,7 @@ func (c *Client) sendIssuesRemoveLabel(ctx context.Context, params IssuesRemoveL if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -35044,11 +35045,11 @@ func (c *Client) sendIssuesUnlock(ctx context.Context, params IssuesUnlockParams startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "IssuesUnlock", @@ -35061,7 +35062,7 @@ func (c *Client) sendIssuesUnlock(ctx context.Context, params IssuesUnlockParams if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -35187,11 +35188,11 @@ func (c *Client) sendIssuesUpdate(ctx context.Context, request OptIssuesUpdateRe startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "IssuesUpdate", @@ -35204,7 +35205,7 @@ func (c *Client) sendIssuesUpdate(ctx context.Context, request OptIssuesUpdateRe if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -35316,11 +35317,11 @@ func (c *Client) sendIssuesUpdateComment(ctx context.Context, request *IssuesUpd startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "IssuesUpdateComment", @@ -35333,7 +35334,7 @@ func (c *Client) sendIssuesUpdateComment(ctx context.Context, request *IssuesUpd if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -35445,11 +35446,11 @@ func (c *Client) sendIssuesUpdateLabel(ctx context.Context, request OptIssuesUpd startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "IssuesUpdateLabel", @@ -35462,7 +35463,7 @@ func (c *Client) sendIssuesUpdateLabel(ctx context.Context, request OptIssuesUpd if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -35590,11 +35591,11 @@ func (c *Client) sendIssuesUpdateMilestone(ctx context.Context, request OptIssue startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "IssuesUpdateMilestone", @@ -35607,7 +35608,7 @@ func (c *Client) sendIssuesUpdateMilestone(ctx context.Context, request OptIssue if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -35719,11 +35720,11 @@ func (c *Client) sendLicensesGet(ctx context.Context, params LicensesGetParams) startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "LicensesGet", @@ -35736,7 +35737,7 @@ func (c *Client) sendLicensesGet(ctx context.Context, params LicensesGetParams) if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -35807,11 +35808,11 @@ func (c *Client) sendLicensesGetAllCommonlyUsed(ctx context.Context, params Lice startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "LicensesGetAllCommonlyUsed", @@ -35824,7 +35825,7 @@ func (c *Client) sendLicensesGetAllCommonlyUsed(ctx context.Context, params Lice if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -35936,11 +35937,11 @@ func (c *Client) sendLicensesGetForRepo(ctx context.Context, params LicensesGetF startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "LicensesGetForRepo", @@ -35953,7 +35954,7 @@ func (c *Client) sendLicensesGetForRepo(ctx context.Context, params LicensesGetF if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -36053,11 +36054,11 @@ func (c *Client) sendMarkdownRender(ctx context.Context, request *MarkdownRender startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "MarkdownRender", @@ -36070,7 +36071,7 @@ func (c *Client) sendMarkdownRender(ctx context.Context, request *MarkdownRender if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -36140,11 +36141,11 @@ func (c *Client) sendMarkdownRenderRaw(ctx context.Context, request MarkdownRend startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "MarkdownRenderRaw", @@ -36157,7 +36158,7 @@ func (c *Client) sendMarkdownRenderRaw(ctx context.Context, request MarkdownRend if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -36217,11 +36218,11 @@ func (c *Client) sendMetaGet(ctx context.Context) (res MetaGetRes, err error) { startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "MetaGet", @@ -36234,7 +36235,7 @@ func (c *Client) sendMetaGet(ctx context.Context) (res MetaGetRes, err error) { if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -36287,11 +36288,11 @@ func (c *Client) sendMetaGetOctocat(ctx context.Context, params MetaGetOctocatPa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "MetaGetOctocat", @@ -36304,7 +36305,7 @@ func (c *Client) sendMetaGetOctocat(ctx context.Context, params MetaGetOctocatPa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -36378,11 +36379,11 @@ func (c *Client) sendMetaGetZen(ctx context.Context) (res MetaGetZenOK, err erro startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "MetaGetZen", @@ -36395,7 +36396,7 @@ func (c *Client) sendMetaGetZen(ctx context.Context) (res MetaGetZenOK, err erro if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -36448,11 +36449,11 @@ func (c *Client) sendMetaRoot(ctx context.Context) (res *MetaRootOK, err error) startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "MetaRoot", @@ -36465,7 +36466,7 @@ func (c *Client) sendMetaRoot(ctx context.Context) (res *MetaRootOK, err error) if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -36518,11 +36519,11 @@ func (c *Client) sendMigrationsCancelImport(ctx context.Context, params Migratio startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "MigrationsCancelImport", @@ -36535,7 +36536,7 @@ func (c *Client) sendMigrationsCancelImport(ctx context.Context, params Migratio if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -36630,11 +36631,11 @@ func (c *Client) sendMigrationsDeleteArchiveForAuthenticatedUser(ctx context.Con startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "MigrationsDeleteArchiveForAuthenticatedUser", @@ -36647,7 +36648,7 @@ func (c *Client) sendMigrationsDeleteArchiveForAuthenticatedUser(ctx context.Con if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -36720,11 +36721,11 @@ func (c *Client) sendMigrationsDeleteArchiveForOrg(ctx context.Context, params M startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "MigrationsDeleteArchiveForOrg", @@ -36737,7 +36738,7 @@ func (c *Client) sendMigrationsDeleteArchiveForOrg(ctx context.Context, params M if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -36828,11 +36829,11 @@ func (c *Client) sendMigrationsDownloadArchiveForOrg(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "MigrationsDownloadArchiveForOrg", @@ -36845,7 +36846,7 @@ func (c *Client) sendMigrationsDownloadArchiveForOrg(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -36956,11 +36957,11 @@ func (c *Client) sendMigrationsGetArchiveForAuthenticatedUser(ctx context.Contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "MigrationsGetArchiveForAuthenticatedUser", @@ -36973,7 +36974,7 @@ func (c *Client) sendMigrationsGetArchiveForAuthenticatedUser(ctx context.Contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -37052,11 +37053,11 @@ func (c *Client) sendMigrationsGetCommitAuthors(ctx context.Context, params Migr startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "MigrationsGetCommitAuthors", @@ -37069,7 +37070,7 @@ func (c *Client) sendMigrationsGetCommitAuthors(ctx context.Context, params Migr if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -37233,11 +37234,11 @@ func (c *Client) sendMigrationsGetImportStatus(ctx context.Context, params Migra startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "MigrationsGetImportStatus", @@ -37250,7 +37251,7 @@ func (c *Client) sendMigrationsGetImportStatus(ctx context.Context, params Migra if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -37341,11 +37342,11 @@ func (c *Client) sendMigrationsGetLargeFiles(ctx context.Context, params Migrati startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "MigrationsGetLargeFiles", @@ -37358,7 +37359,7 @@ func (c *Client) sendMigrationsGetLargeFiles(ctx context.Context, params Migrati if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -37456,11 +37457,11 @@ func (c *Client) sendMigrationsGetStatusForAuthenticatedUser(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "MigrationsGetStatusForAuthenticatedUser", @@ -37473,7 +37474,7 @@ func (c *Client) sendMigrationsGetStatusForAuthenticatedUser(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -37576,11 +37577,11 @@ func (c *Client) sendMigrationsGetStatusForOrg(ctx context.Context, params Migra startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "MigrationsGetStatusForOrg", @@ -37593,7 +37594,7 @@ func (c *Client) sendMigrationsGetStatusForOrg(ctx context.Context, params Migra if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -37710,11 +37711,11 @@ func (c *Client) sendMigrationsListForAuthenticatedUser(ctx context.Context, par startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "MigrationsListForAuthenticatedUser", @@ -37727,7 +37728,7 @@ func (c *Client) sendMigrationsListForAuthenticatedUser(ctx context.Context, par if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -37818,11 +37819,11 @@ func (c *Client) sendMigrationsListForOrg(ctx context.Context, params Migrations startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "MigrationsListForOrg", @@ -37835,7 +37836,7 @@ func (c *Client) sendMigrationsListForOrg(ctx context.Context, params Migrations if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -37968,11 +37969,11 @@ func (c *Client) sendMigrationsListReposForOrg(ctx context.Context, params Migra startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "MigrationsListReposForOrg", @@ -37985,7 +37986,7 @@ func (c *Client) sendMigrationsListReposForOrg(ctx context.Context, params Migra if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -38114,11 +38115,11 @@ func (c *Client) sendMigrationsListReposForUser(ctx context.Context, params Migr startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "MigrationsListReposForUser", @@ -38131,7 +38132,7 @@ func (c *Client) sendMigrationsListReposForUser(ctx context.Context, params Migr if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -38242,11 +38243,11 @@ func (c *Client) sendMigrationsMapCommitAuthor(ctx context.Context, request OptM startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "MigrationsMapCommitAuthor", @@ -38259,7 +38260,7 @@ func (c *Client) sendMigrationsMapCommitAuthor(ctx context.Context, request OptM if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -38383,11 +38384,11 @@ func (c *Client) sendMigrationsSetLfsPreference(ctx context.Context, request *Mi startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "MigrationsSetLfsPreference", @@ -38400,7 +38401,7 @@ func (c *Client) sendMigrationsSetLfsPreference(ctx context.Context, request *Mi if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -38503,11 +38504,11 @@ func (c *Client) sendMigrationsStartForAuthenticatedUser(ctx context.Context, re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "MigrationsStartForAuthenticatedUser", @@ -38520,7 +38521,7 @@ func (c *Client) sendMigrationsStartForAuthenticatedUser(ctx context.Context, re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -38585,11 +38586,11 @@ func (c *Client) sendMigrationsStartForOrg(ctx context.Context, request *Migrati startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "MigrationsStartForOrg", @@ -38602,7 +38603,7 @@ func (c *Client) sendMigrationsStartForOrg(ctx context.Context, request *Migrati if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -38686,11 +38687,11 @@ func (c *Client) sendMigrationsStartImport(ctx context.Context, request *Migrati startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "MigrationsStartImport", @@ -38703,7 +38704,7 @@ func (c *Client) sendMigrationsStartImport(ctx context.Context, request *Migrati if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -38801,11 +38802,11 @@ func (c *Client) sendMigrationsUnlockRepoForAuthenticatedUser(ctx context.Contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "MigrationsUnlockRepoForAuthenticatedUser", @@ -38818,7 +38819,7 @@ func (c *Client) sendMigrationsUnlockRepoForAuthenticatedUser(ctx context.Contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -38911,11 +38912,11 @@ func (c *Client) sendMigrationsUnlockRepoForOrg(ctx context.Context, params Migr startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "MigrationsUnlockRepoForOrg", @@ -38928,7 +38929,7 @@ func (c *Client) sendMigrationsUnlockRepoForOrg(ctx context.Context, params Migr if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -39040,11 +39041,11 @@ func (c *Client) sendMigrationsUpdateImport(ctx context.Context, request OptNilM startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "MigrationsUpdateImport", @@ -39057,7 +39058,7 @@ func (c *Client) sendMigrationsUpdateImport(ctx context.Context, request OptNilM if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -39196,11 +39197,11 @@ func (c *Client) sendOAuthAuthorizationsCreateAuthorization(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OAuthAuthorizationsCreateAuthorization", @@ -39213,7 +39214,7 @@ func (c *Client) sendOAuthAuthorizationsCreateAuthorization(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -39278,11 +39279,11 @@ func (c *Client) sendOAuthAuthorizationsDeleteAuthorization(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OAuthAuthorizationsDeleteAuthorization", @@ -39295,7 +39296,7 @@ func (c *Client) sendOAuthAuthorizationsDeleteAuthorization(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -39378,11 +39379,11 @@ func (c *Client) sendOAuthAuthorizationsDeleteGrant(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OAuthAuthorizationsDeleteGrant", @@ -39395,7 +39396,7 @@ func (c *Client) sendOAuthAuthorizationsDeleteGrant(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -39475,11 +39476,11 @@ func (c *Client) sendOAuthAuthorizationsGetAuthorization(ctx context.Context, pa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OAuthAuthorizationsGetAuthorization", @@ -39492,7 +39493,7 @@ func (c *Client) sendOAuthAuthorizationsGetAuthorization(ctx context.Context, pa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -39572,11 +39573,11 @@ func (c *Client) sendOAuthAuthorizationsGetGrant(ctx context.Context, params OAu startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OAuthAuthorizationsGetGrant", @@ -39589,7 +39590,7 @@ func (c *Client) sendOAuthAuthorizationsGetGrant(ctx context.Context, params OAu if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -39697,11 +39698,11 @@ func (c *Client) sendOAuthAuthorizationsGetOrCreateAuthorizationForApp(ctx conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OAuthAuthorizationsGetOrCreateAuthorizationForApp", @@ -39714,7 +39715,7 @@ func (c *Client) sendOAuthAuthorizationsGetOrCreateAuthorizationForApp(ctx conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -39820,11 +39821,11 @@ func (c *Client) sendOAuthAuthorizationsGetOrCreateAuthorizationForAppAndFingerp startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OAuthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprint", @@ -39837,7 +39838,7 @@ func (c *Client) sendOAuthAuthorizationsGetOrCreateAuthorizationForAppAndFingerp if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -39939,11 +39940,11 @@ func (c *Client) sendOAuthAuthorizationsListAuthorizations(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OAuthAuthorizationsListAuthorizations", @@ -39956,7 +39957,7 @@ func (c *Client) sendOAuthAuthorizationsListAuthorizations(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -40084,11 +40085,11 @@ func (c *Client) sendOAuthAuthorizationsListGrants(ctx context.Context, params O startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OAuthAuthorizationsListGrants", @@ -40101,7 +40102,7 @@ func (c *Client) sendOAuthAuthorizationsListGrants(ctx context.Context, params O if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -40238,11 +40239,11 @@ func (c *Client) sendOAuthAuthorizationsUpdateAuthorization(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OAuthAuthorizationsUpdateAuthorization", @@ -40255,7 +40256,7 @@ func (c *Client) sendOAuthAuthorizationsUpdateAuthorization(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -40329,11 +40330,11 @@ func (c *Client) sendOrgsBlockUser(ctx context.Context, params OrgsBlockUserPara startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OrgsBlockUser", @@ -40346,7 +40347,7 @@ func (c *Client) sendOrgsBlockUser(ctx context.Context, params OrgsBlockUserPara if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -40439,11 +40440,11 @@ func (c *Client) sendOrgsCancelInvitation(ctx context.Context, params OrgsCancel startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OrgsCancelInvitation", @@ -40456,7 +40457,7 @@ func (c *Client) sendOrgsCancelInvitation(ctx context.Context, params OrgsCancel if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -40546,11 +40547,11 @@ func (c *Client) sendOrgsCheckBlockedUser(ctx context.Context, params OrgsCheckB startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OrgsCheckBlockedUser", @@ -40563,7 +40564,7 @@ func (c *Client) sendOrgsCheckBlockedUser(ctx context.Context, params OrgsCheckB if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -40653,11 +40654,11 @@ func (c *Client) sendOrgsCheckMembershipForUser(ctx context.Context, params Orgs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OrgsCheckMembershipForUser", @@ -40670,7 +40671,7 @@ func (c *Client) sendOrgsCheckMembershipForUser(ctx context.Context, params Orgs if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -40760,11 +40761,11 @@ func (c *Client) sendOrgsCheckPublicMembershipForUser(ctx context.Context, param startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OrgsCheckPublicMembershipForUser", @@ -40777,7 +40778,7 @@ func (c *Client) sendOrgsCheckPublicMembershipForUser(ctx context.Context, param if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -40871,11 +40872,11 @@ func (c *Client) sendOrgsConvertMemberToOutsideCollaborator(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OrgsConvertMemberToOutsideCollaborator", @@ -40888,7 +40889,7 @@ func (c *Client) sendOrgsConvertMemberToOutsideCollaborator(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -41002,11 +41003,11 @@ func (c *Client) sendOrgsCreateInvitation(ctx context.Context, request OptOrgsCr startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OrgsCreateInvitation", @@ -41019,7 +41020,7 @@ func (c *Client) sendOrgsCreateInvitation(ctx context.Context, request OptOrgsCr if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -41103,11 +41104,11 @@ func (c *Client) sendOrgsCreateWebhook(ctx context.Context, request *OrgsCreateW startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OrgsCreateWebhook", @@ -41120,7 +41121,7 @@ func (c *Client) sendOrgsCreateWebhook(ctx context.Context, request *OrgsCreateW if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -41195,11 +41196,11 @@ func (c *Client) sendOrgsDeleteWebhook(ctx context.Context, params OrgsDeleteWeb startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OrgsDeleteWebhook", @@ -41212,7 +41213,7 @@ func (c *Client) sendOrgsDeleteWebhook(ctx context.Context, params OrgsDeleteWeb if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -41310,11 +41311,11 @@ func (c *Client) sendOrgsGet(ctx context.Context, params OrgsGetParams) (res Org startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OrgsGet", @@ -41327,7 +41328,7 @@ func (c *Client) sendOrgsGet(ctx context.Context, params OrgsGetParams) (res Org if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -41403,11 +41404,11 @@ func (c *Client) sendOrgsGetAuditLog(ctx context.Context, params OrgsGetAuditLog startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OrgsGetAuditLog", @@ -41420,7 +41421,7 @@ func (c *Client) sendOrgsGetAuditLog(ctx context.Context, params OrgsGetAuditLog if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -41615,11 +41616,11 @@ func (c *Client) sendOrgsGetMembershipForAuthenticatedUser(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OrgsGetMembershipForAuthenticatedUser", @@ -41632,7 +41633,7 @@ func (c *Client) sendOrgsGetMembershipForAuthenticatedUser(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -41705,11 +41706,11 @@ func (c *Client) sendOrgsGetMembershipForUser(ctx context.Context, params OrgsGe startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OrgsGetMembershipForUser", @@ -41722,7 +41723,7 @@ func (c *Client) sendOrgsGetMembershipForUser(ctx context.Context, params OrgsGe if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -41814,11 +41815,11 @@ func (c *Client) sendOrgsGetWebhook(ctx context.Context, params OrgsGetWebhookPa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OrgsGetWebhook", @@ -41831,7 +41832,7 @@ func (c *Client) sendOrgsGetWebhook(ctx context.Context, params OrgsGetWebhookPa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -41925,11 +41926,11 @@ func (c *Client) sendOrgsGetWebhookConfigForOrg(ctx context.Context, params Orgs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OrgsGetWebhookConfigForOrg", @@ -41942,7 +41943,7 @@ func (c *Client) sendOrgsGetWebhookConfigForOrg(ctx context.Context, params Orgs if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -42033,11 +42034,11 @@ func (c *Client) sendOrgsGetWebhookDelivery(ctx context.Context, params OrgsGetW startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OrgsGetWebhookDelivery", @@ -42050,7 +42051,7 @@ func (c *Client) sendOrgsGetWebhookDelivery(ctx context.Context, params OrgsGetW if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -42162,11 +42163,11 @@ func (c *Client) sendOrgsList(ctx context.Context, params OrgsListParams) (res O startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OrgsList", @@ -42179,7 +42180,7 @@ func (c *Client) sendOrgsList(ctx context.Context, params OrgsListParams) (res O if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -42270,11 +42271,11 @@ func (c *Client) sendOrgsListBlockedUsers(ctx context.Context, params OrgsListBl startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OrgsListBlockedUsers", @@ -42287,7 +42288,7 @@ func (c *Client) sendOrgsListBlockedUsers(ctx context.Context, params OrgsListBl if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -42360,11 +42361,11 @@ func (c *Client) sendOrgsListFailedInvitations(ctx context.Context, params OrgsL startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OrgsListFailedInvitations", @@ -42377,7 +42378,7 @@ func (c *Client) sendOrgsListFailedInvitations(ctx context.Context, params OrgsL if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -42492,11 +42493,11 @@ func (c *Client) sendOrgsListForAuthenticatedUser(ctx context.Context, params Or startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OrgsListForAuthenticatedUser", @@ -42509,7 +42510,7 @@ func (c *Client) sendOrgsListForAuthenticatedUser(ctx context.Context, params Or if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -42605,11 +42606,11 @@ func (c *Client) sendOrgsListForUser(ctx context.Context, params OrgsListForUser startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OrgsListForUser", @@ -42622,7 +42623,7 @@ func (c *Client) sendOrgsListForUser(ctx context.Context, params OrgsListForUser if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -42733,11 +42734,11 @@ func (c *Client) sendOrgsListInvitationTeams(ctx context.Context, params OrgsLis startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OrgsListInvitationTeams", @@ -42750,7 +42751,7 @@ func (c *Client) sendOrgsListInvitationTeams(ctx context.Context, params OrgsLis if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -42880,11 +42881,11 @@ func (c *Client) sendOrgsListMembers(ctx context.Context, params OrgsListMembers startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OrgsListMembers", @@ -42897,7 +42898,7 @@ func (c *Client) sendOrgsListMembers(ctx context.Context, params OrgsListMembers if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -43041,11 +43042,11 @@ func (c *Client) sendOrgsListMembershipsForAuthenticatedUser(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OrgsListMembershipsForAuthenticatedUser", @@ -43058,7 +43059,7 @@ func (c *Client) sendOrgsListMembershipsForAuthenticatedUser(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -43166,11 +43167,11 @@ func (c *Client) sendOrgsListOutsideCollaborators(ctx context.Context, params Or startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OrgsListOutsideCollaborators", @@ -43183,7 +43184,7 @@ func (c *Client) sendOrgsListOutsideCollaborators(ctx context.Context, params Or if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -43313,11 +43314,11 @@ func (c *Client) sendOrgsListPendingInvitations(ctx context.Context, params Orgs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OrgsListPendingInvitations", @@ -43330,7 +43331,7 @@ func (c *Client) sendOrgsListPendingInvitations(ctx context.Context, params Orgs if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -43440,11 +43441,11 @@ func (c *Client) sendOrgsListPublicMembers(ctx context.Context, params OrgsListP startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OrgsListPublicMembers", @@ -43457,7 +43458,7 @@ func (c *Client) sendOrgsListPublicMembers(ctx context.Context, params OrgsListP if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -43574,11 +43575,11 @@ func (c *Client) sendOrgsListSamlSSOAuthorizations(ctx context.Context, params O startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OrgsListSamlSSOAuthorizations", @@ -43591,7 +43592,7 @@ func (c *Client) sendOrgsListSamlSSOAuthorizations(ctx context.Context, params O if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -43663,11 +43664,11 @@ func (c *Client) sendOrgsListWebhookDeliveries(ctx context.Context, params OrgsL startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OrgsListWebhookDeliveries", @@ -43680,7 +43681,7 @@ func (c *Client) sendOrgsListWebhookDeliveries(ctx context.Context, params OrgsL if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -43809,11 +43810,11 @@ func (c *Client) sendOrgsListWebhooks(ctx context.Context, params OrgsListWebhoo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OrgsListWebhooks", @@ -43826,7 +43827,7 @@ func (c *Client) sendOrgsListWebhooks(ctx context.Context, params OrgsListWebhoo if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -43937,11 +43938,11 @@ func (c *Client) sendOrgsPingWebhook(ctx context.Context, params OrgsPingWebhook startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OrgsPingWebhook", @@ -43954,7 +43955,7 @@ func (c *Client) sendOrgsPingWebhook(ctx context.Context, params OrgsPingWebhook if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -44045,11 +44046,11 @@ func (c *Client) sendOrgsRedeliverWebhookDelivery(ctx context.Context, params Or startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OrgsRedeliverWebhookDelivery", @@ -44062,7 +44063,7 @@ func (c *Client) sendOrgsRedeliverWebhookDelivery(ctx context.Context, params Or if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -44173,11 +44174,11 @@ func (c *Client) sendOrgsRemoveMember(ctx context.Context, params OrgsRemoveMemb startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OrgsRemoveMember", @@ -44190,7 +44191,7 @@ func (c *Client) sendOrgsRemoveMember(ctx context.Context, params OrgsRemoveMemb if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -44284,11 +44285,11 @@ func (c *Client) sendOrgsRemoveMembershipForUser(ctx context.Context, params Org startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OrgsRemoveMembershipForUser", @@ -44301,7 +44302,7 @@ func (c *Client) sendOrgsRemoveMembershipForUser(ctx context.Context, params Org if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -44391,11 +44392,11 @@ func (c *Client) sendOrgsRemoveOutsideCollaborator(ctx context.Context, params O startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OrgsRemoveOutsideCollaborator", @@ -44408,7 +44409,7 @@ func (c *Client) sendOrgsRemoveOutsideCollaborator(ctx context.Context, params O if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -44498,11 +44499,11 @@ func (c *Client) sendOrgsRemovePublicMembershipForAuthenticatedUser(ctx context. startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OrgsRemovePublicMembershipForAuthenticatedUser", @@ -44515,7 +44516,7 @@ func (c *Client) sendOrgsRemovePublicMembershipForAuthenticatedUser(ctx context. if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -44611,11 +44612,11 @@ func (c *Client) sendOrgsRemoveSamlSSOAuthorization(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OrgsRemoveSamlSSOAuthorization", @@ -44628,7 +44629,7 @@ func (c *Client) sendOrgsRemoveSamlSSOAuthorization(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -44747,11 +44748,11 @@ func (c *Client) sendOrgsSetMembershipForUser(ctx context.Context, request OptOr startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OrgsSetMembershipForUser", @@ -44764,7 +44765,7 @@ func (c *Client) sendOrgsSetMembershipForUser(ctx context.Context, request OptOr if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -44861,11 +44862,11 @@ func (c *Client) sendOrgsSetPublicMembershipForAuthenticatedUser(ctx context.Con startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OrgsSetPublicMembershipForAuthenticatedUser", @@ -44878,7 +44879,7 @@ func (c *Client) sendOrgsSetPublicMembershipForAuthenticatedUser(ctx context.Con if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -44968,11 +44969,11 @@ func (c *Client) sendOrgsUnblockUser(ctx context.Context, params OrgsUnblockUser startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OrgsUnblockUser", @@ -44985,7 +44986,7 @@ func (c *Client) sendOrgsUnblockUser(ctx context.Context, params OrgsUnblockUser if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -45084,11 +45085,11 @@ func (c *Client) sendOrgsUpdateMembershipForAuthenticatedUser(ctx context.Contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OrgsUpdateMembershipForAuthenticatedUser", @@ -45101,7 +45102,7 @@ func (c *Client) sendOrgsUpdateMembershipForAuthenticatedUser(ctx context.Contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -45195,11 +45196,11 @@ func (c *Client) sendOrgsUpdateWebhook(ctx context.Context, request OptOrgsUpdat startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OrgsUpdateWebhook", @@ -45212,7 +45213,7 @@ func (c *Client) sendOrgsUpdateWebhook(ctx context.Context, request OptOrgsUpdat if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -45325,11 +45326,11 @@ func (c *Client) sendOrgsUpdateWebhookConfigForOrg(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OrgsUpdateWebhookConfigForOrg", @@ -45342,7 +45343,7 @@ func (c *Client) sendOrgsUpdateWebhookConfigForOrg(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -45441,11 +45442,11 @@ func (c *Client) sendPackagesDeletePackageForAuthenticatedUser(ctx context.Conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PackagesDeletePackageForAuthenticatedUser", @@ -45458,7 +45459,7 @@ func (c *Client) sendPackagesDeletePackageForAuthenticatedUser(ctx context.Conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -45555,11 +45556,11 @@ func (c *Client) sendPackagesDeletePackageForOrg(ctx context.Context, params Pac startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PackagesDeletePackageForOrg", @@ -45572,7 +45573,7 @@ func (c *Client) sendPackagesDeletePackageForOrg(ctx context.Context, params Pac if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -45688,11 +45689,11 @@ func (c *Client) sendPackagesDeletePackageForUser(ctx context.Context, params Pa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PackagesDeletePackageForUser", @@ -45705,7 +45706,7 @@ func (c *Client) sendPackagesDeletePackageForUser(ctx context.Context, params Pa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -45819,11 +45820,11 @@ func (c *Client) sendPackagesDeletePackageVersionForAuthenticatedUser(ctx contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PackagesDeletePackageVersionForAuthenticatedUser", @@ -45836,7 +45837,7 @@ func (c *Client) sendPackagesDeletePackageVersionForAuthenticatedUser(ctx contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -45952,11 +45953,11 @@ func (c *Client) sendPackagesDeletePackageVersionForOrg(ctx context.Context, par startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PackagesDeletePackageVersionForOrg", @@ -45969,7 +45970,7 @@ func (c *Client) sendPackagesDeletePackageVersionForOrg(ctx context.Context, par if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -46104,11 +46105,11 @@ func (c *Client) sendPackagesDeletePackageVersionForUser(ctx context.Context, pa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PackagesDeletePackageVersionForUser", @@ -46121,7 +46122,7 @@ func (c *Client) sendPackagesDeletePackageVersionForUser(ctx context.Context, pa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -46251,11 +46252,11 @@ func (c *Client) sendPackagesGetAllPackageVersionsForPackageOwnedByAuthenticated startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUser", @@ -46268,7 +46269,7 @@ func (c *Client) sendPackagesGetAllPackageVersionsForPackageOwnedByAuthenticated if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -46416,11 +46417,11 @@ func (c *Client) sendPackagesGetAllPackageVersionsForPackageOwnedByOrg(ctx conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PackagesGetAllPackageVersionsForPackageOwnedByOrg", @@ -46433,7 +46434,7 @@ func (c *Client) sendPackagesGetAllPackageVersionsForPackageOwnedByOrg(ctx conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -46600,11 +46601,11 @@ func (c *Client) sendPackagesGetAllPackageVersionsForPackageOwnedByUser(ctx cont startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PackagesGetAllPackageVersionsForPackageOwnedByUser", @@ -46617,7 +46618,7 @@ func (c *Client) sendPackagesGetAllPackageVersionsForPackageOwnedByUser(ctx cont if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -46729,11 +46730,11 @@ func (c *Client) sendPackagesGetPackageForAuthenticatedUser(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PackagesGetPackageForAuthenticatedUser", @@ -46746,7 +46747,7 @@ func (c *Client) sendPackagesGetPackageForAuthenticatedUser(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -46838,11 +46839,11 @@ func (c *Client) sendPackagesGetPackageForOrganization(ctx context.Context, para startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PackagesGetPackageForOrganization", @@ -46855,7 +46856,7 @@ func (c *Client) sendPackagesGetPackageForOrganization(ctx context.Context, para if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -46966,11 +46967,11 @@ func (c *Client) sendPackagesGetPackageForUser(ctx context.Context, params Packa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PackagesGetPackageForUser", @@ -46983,7 +46984,7 @@ func (c *Client) sendPackagesGetPackageForUser(ctx context.Context, params Packa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -47094,11 +47095,11 @@ func (c *Client) sendPackagesGetPackageVersionForAuthenticatedUser(ctx context.C startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PackagesGetPackageVersionForAuthenticatedUser", @@ -47111,7 +47112,7 @@ func (c *Client) sendPackagesGetPackageVersionForAuthenticatedUser(ctx context.C if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -47222,11 +47223,11 @@ func (c *Client) sendPackagesGetPackageVersionForOrganization(ctx context.Contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PackagesGetPackageVersionForOrganization", @@ -47239,7 +47240,7 @@ func (c *Client) sendPackagesGetPackageVersionForOrganization(ctx context.Contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -47370,11 +47371,11 @@ func (c *Client) sendPackagesGetPackageVersionForUser(ctx context.Context, param startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PackagesGetPackageVersionForUser", @@ -47387,7 +47388,7 @@ func (c *Client) sendPackagesGetPackageVersionForUser(ctx context.Context, param if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -47517,11 +47518,11 @@ func (c *Client) sendPackagesListPackagesForAuthenticatedUser(ctx context.Contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PackagesListPackagesForAuthenticatedUser", @@ -47534,7 +47535,7 @@ func (c *Client) sendPackagesListPackagesForAuthenticatedUser(ctx context.Contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -47624,11 +47625,11 @@ func (c *Client) sendPackagesListPackagesForOrganization(ctx context.Context, pa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PackagesListPackagesForOrganization", @@ -47641,7 +47642,7 @@ func (c *Client) sendPackagesListPackagesForOrganization(ctx context.Context, pa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -47750,11 +47751,11 @@ func (c *Client) sendPackagesListPackagesForUser(ctx context.Context, params Pac startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PackagesListPackagesForUser", @@ -47767,7 +47768,7 @@ func (c *Client) sendPackagesListPackagesForUser(ctx context.Context, params Pac if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -47883,11 +47884,11 @@ func (c *Client) sendPackagesRestorePackageForAuthenticatedUser(ctx context.Cont startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PackagesRestorePackageForAuthenticatedUser", @@ -47900,7 +47901,7 @@ func (c *Client) sendPackagesRestorePackageForAuthenticatedUser(ctx context.Cont if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -48023,11 +48024,11 @@ func (c *Client) sendPackagesRestorePackageForOrg(ctx context.Context, params Pa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PackagesRestorePackageForOrg", @@ -48040,7 +48041,7 @@ func (c *Client) sendPackagesRestorePackageForOrg(ctx context.Context, params Pa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -48182,11 +48183,11 @@ func (c *Client) sendPackagesRestorePackageForUser(ctx context.Context, params P startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PackagesRestorePackageForUser", @@ -48199,7 +48200,7 @@ func (c *Client) sendPackagesRestorePackageForUser(ctx context.Context, params P if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -48339,11 +48340,11 @@ func (c *Client) sendPackagesRestorePackageVersionForAuthenticatedUser(ctx conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PackagesRestorePackageVersionForAuthenticatedUser", @@ -48356,7 +48357,7 @@ func (c *Client) sendPackagesRestorePackageVersionForAuthenticatedUser(ctx conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -48477,11 +48478,11 @@ func (c *Client) sendPackagesRestorePackageVersionForOrg(ctx context.Context, pa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PackagesRestorePackageVersionForOrg", @@ -48494,7 +48495,7 @@ func (c *Client) sendPackagesRestorePackageVersionForOrg(ctx context.Context, pa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -48634,11 +48635,11 @@ func (c *Client) sendPackagesRestorePackageVersionForUser(ctx context.Context, p startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PackagesRestorePackageVersionForUser", @@ -48651,7 +48652,7 @@ func (c *Client) sendPackagesRestorePackageVersionForUser(ctx context.Context, p if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -48797,11 +48798,11 @@ func (c *Client) sendProjectsAddCollaborator(ctx context.Context, request OptNil startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ProjectsAddCollaborator", @@ -48814,7 +48815,7 @@ func (c *Client) sendProjectsAddCollaborator(ctx context.Context, request OptNil if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -48907,11 +48908,11 @@ func (c *Client) sendProjectsCreateColumn(ctx context.Context, request *Projects startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ProjectsCreateColumn", @@ -48924,7 +48925,7 @@ func (c *Client) sendProjectsCreateColumn(ctx context.Context, request *Projects if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -48999,11 +49000,11 @@ func (c *Client) sendProjectsCreateForAuthenticatedUser(ctx context.Context, req startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ProjectsCreateForAuthenticatedUser", @@ -49016,7 +49017,7 @@ func (c *Client) sendProjectsCreateForAuthenticatedUser(ctx context.Context, req if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -49074,11 +49075,11 @@ func (c *Client) sendProjectsCreateForOrg(ctx context.Context, request *Projects startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ProjectsCreateForOrg", @@ -49091,7 +49092,7 @@ func (c *Client) sendProjectsCreateForOrg(ctx context.Context, request *Projects if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -49168,11 +49169,11 @@ func (c *Client) sendProjectsCreateForRepo(ctx context.Context, request *Project startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ProjectsCreateForRepo", @@ -49185,7 +49186,7 @@ func (c *Client) sendProjectsCreateForRepo(ctx context.Context, request *Project if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -49279,11 +49280,11 @@ func (c *Client) sendProjectsDelete(ctx context.Context, params ProjectsDeletePa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ProjectsDelete", @@ -49296,7 +49297,7 @@ func (c *Client) sendProjectsDelete(ctx context.Context, params ProjectsDeletePa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -49367,11 +49368,11 @@ func (c *Client) sendProjectsDeleteCard(ctx context.Context, params ProjectsDele startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ProjectsDeleteCard", @@ -49384,7 +49385,7 @@ func (c *Client) sendProjectsDeleteCard(ctx context.Context, params ProjectsDele if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -49455,11 +49456,11 @@ func (c *Client) sendProjectsDeleteColumn(ctx context.Context, params ProjectsDe startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ProjectsDeleteColumn", @@ -49472,7 +49473,7 @@ func (c *Client) sendProjectsDeleteColumn(ctx context.Context, params ProjectsDe if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -49545,11 +49546,11 @@ func (c *Client) sendProjectsGet(ctx context.Context, params ProjectsGetParams) startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ProjectsGet", @@ -49562,7 +49563,7 @@ func (c *Client) sendProjectsGet(ctx context.Context, params ProjectsGetParams) if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -49633,11 +49634,11 @@ func (c *Client) sendProjectsGetCard(ctx context.Context, params ProjectsGetCard startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ProjectsGetCard", @@ -49650,7 +49651,7 @@ func (c *Client) sendProjectsGetCard(ctx context.Context, params ProjectsGetCard if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -49721,11 +49722,11 @@ func (c *Client) sendProjectsGetColumn(ctx context.Context, params ProjectsGetCo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ProjectsGetColumn", @@ -49738,7 +49739,7 @@ func (c *Client) sendProjectsGetColumn(ctx context.Context, params ProjectsGetCo if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -49811,11 +49812,11 @@ func (c *Client) sendProjectsGetPermissionForUser(ctx context.Context, params Pr startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ProjectsGetPermissionForUser", @@ -49828,7 +49829,7 @@ func (c *Client) sendProjectsGetPermissionForUser(ctx context.Context, params Pr if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -49919,11 +49920,11 @@ func (c *Client) sendProjectsListCards(ctx context.Context, params ProjectsListC startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ProjectsListCards", @@ -49936,7 +49937,7 @@ func (c *Client) sendProjectsListCards(ctx context.Context, params ProjectsListC if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -50067,11 +50068,11 @@ func (c *Client) sendProjectsListCollaborators(ctx context.Context, params Proje startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ProjectsListCollaborators", @@ -50084,7 +50085,7 @@ func (c *Client) sendProjectsListCollaborators(ctx context.Context, params Proje if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -50211,11 +50212,11 @@ func (c *Client) sendProjectsListColumns(ctx context.Context, params ProjectsLis startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ProjectsListColumns", @@ -50228,7 +50229,7 @@ func (c *Client) sendProjectsListColumns(ctx context.Context, params ProjectsLis if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -50340,11 +50341,11 @@ func (c *Client) sendProjectsListForOrg(ctx context.Context, params ProjectsList startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ProjectsListForOrg", @@ -50357,7 +50358,7 @@ func (c *Client) sendProjectsListForOrg(ctx context.Context, params ProjectsList if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -50486,11 +50487,11 @@ func (c *Client) sendProjectsListForRepo(ctx context.Context, params ProjectsLis startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ProjectsListForRepo", @@ -50503,7 +50504,7 @@ func (c *Client) sendProjectsListForRepo(ctx context.Context, params ProjectsLis if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -50649,11 +50650,11 @@ func (c *Client) sendProjectsListForUser(ctx context.Context, params ProjectsLis startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ProjectsListForUser", @@ -50666,7 +50667,7 @@ func (c *Client) sendProjectsListForUser(ctx context.Context, params ProjectsLis if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -50802,11 +50803,11 @@ func (c *Client) sendProjectsMoveCard(ctx context.Context, request *ProjectsMove startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ProjectsMoveCard", @@ -50819,7 +50820,7 @@ func (c *Client) sendProjectsMoveCard(ctx context.Context, request *ProjectsMove if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -50903,11 +50904,11 @@ func (c *Client) sendProjectsMoveColumn(ctx context.Context, request *ProjectsMo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ProjectsMoveColumn", @@ -50920,7 +50921,7 @@ func (c *Client) sendProjectsMoveColumn(ctx context.Context, request *ProjectsMo if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -50996,11 +50997,11 @@ func (c *Client) sendProjectsRemoveCollaborator(ctx context.Context, params Proj startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ProjectsRemoveCollaborator", @@ -51013,7 +51014,7 @@ func (c *Client) sendProjectsRemoveCollaborator(ctx context.Context, params Proj if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -51121,11 +51122,11 @@ func (c *Client) sendProjectsUpdate(ctx context.Context, request OptProjectsUpda startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ProjectsUpdate", @@ -51138,7 +51139,7 @@ func (c *Client) sendProjectsUpdate(ctx context.Context, request OptProjectsUpda if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -51212,11 +51213,11 @@ func (c *Client) sendProjectsUpdateCard(ctx context.Context, request OptProjects startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ProjectsUpdateCard", @@ -51229,7 +51230,7 @@ func (c *Client) sendProjectsUpdateCard(ctx context.Context, request OptProjects if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -51303,11 +51304,11 @@ func (c *Client) sendProjectsUpdateColumn(ctx context.Context, request *Projects startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ProjectsUpdateColumn", @@ -51320,7 +51321,7 @@ func (c *Client) sendProjectsUpdateColumn(ctx context.Context, request *Projects if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -51394,11 +51395,11 @@ func (c *Client) sendPullsCheckIfMerged(ctx context.Context, params PullsCheckIf startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PullsCheckIfMerged", @@ -51411,7 +51412,7 @@ func (c *Client) sendPullsCheckIfMerged(ctx context.Context, params PullsCheckIf if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -51536,11 +51537,11 @@ func (c *Client) sendPullsCreate(ctx context.Context, request *PullsCreateReq, p startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PullsCreate", @@ -51553,7 +51554,7 @@ func (c *Client) sendPullsCreate(ctx context.Context, request *PullsCreateReq, p if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -51656,11 +51657,11 @@ func (c *Client) sendPullsCreateReplyForReviewComment(ctx context.Context, reque startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PullsCreateReplyForReviewComment", @@ -51673,7 +51674,7 @@ func (c *Client) sendPullsCreateReplyForReviewComment(ctx context.Context, reque if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -51839,11 +51840,11 @@ func (c *Client) sendPullsCreateReview(ctx context.Context, request OptPullsCrea startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PullsCreateReview", @@ -51856,7 +51857,7 @@ func (c *Client) sendPullsCreateReview(ctx context.Context, request OptPullsCrea if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -51997,11 +51998,11 @@ func (c *Client) sendPullsCreateReviewComment(ctx context.Context, request *Pull startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PullsCreateReviewComment", @@ -52014,7 +52015,7 @@ func (c *Client) sendPullsCreateReviewComment(ctx context.Context, request *Pull if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -52127,11 +52128,11 @@ func (c *Client) sendPullsDeletePendingReview(ctx context.Context, params PullsD startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PullsDeletePendingReview", @@ -52144,7 +52145,7 @@ func (c *Client) sendPullsDeletePendingReview(ctx context.Context, params PullsD if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -52272,11 +52273,11 @@ func (c *Client) sendPullsDeleteReviewComment(ctx context.Context, params PullsD startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PullsDeleteReviewComment", @@ -52289,7 +52290,7 @@ func (c *Client) sendPullsDeleteReviewComment(ctx context.Context, params PullsD if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -52400,11 +52401,11 @@ func (c *Client) sendPullsDismissReview(ctx context.Context, request *PullsDismi startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PullsDismissReview", @@ -52417,7 +52418,7 @@ func (c *Client) sendPullsDismissReview(ctx context.Context, request *PullsDismi if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -52582,11 +52583,11 @@ func (c *Client) sendPullsGet(ctx context.Context, params PullsGetParams) (res P startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PullsGet", @@ -52599,7 +52600,7 @@ func (c *Client) sendPullsGet(ctx context.Context, params PullsGetParams) (res P if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -52708,11 +52709,11 @@ func (c *Client) sendPullsGetReview(ctx context.Context, params PullsGetReviewPa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PullsGetReview", @@ -52725,7 +52726,7 @@ func (c *Client) sendPullsGetReview(ctx context.Context, params PullsGetReviewPa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -52853,11 +52854,11 @@ func (c *Client) sendPullsGetReviewComment(ctx context.Context, params PullsGetR startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PullsGetReviewComment", @@ -52870,7 +52871,7 @@ func (c *Client) sendPullsGetReviewComment(ctx context.Context, params PullsGetR if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -52983,11 +52984,11 @@ func (c *Client) sendPullsList(ctx context.Context, params PullsListParams) (res startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PullsList", @@ -53000,7 +53001,7 @@ func (c *Client) sendPullsList(ctx context.Context, params PullsListParams) (res if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -53214,11 +53215,11 @@ func (c *Client) sendPullsListCommentsForReview(ctx context.Context, params Pull startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PullsListCommentsForReview", @@ -53231,7 +53232,7 @@ func (c *Client) sendPullsListCommentsForReview(ctx context.Context, params Pull if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -53400,11 +53401,11 @@ func (c *Client) sendPullsListCommits(ctx context.Context, params PullsListCommi startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PullsListCommits", @@ -53417,7 +53418,7 @@ func (c *Client) sendPullsListCommits(ctx context.Context, params PullsListCommi if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -53566,11 +53567,11 @@ func (c *Client) sendPullsListFiles(ctx context.Context, params PullsListFilesPa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PullsListFiles", @@ -53583,7 +53584,7 @@ func (c *Client) sendPullsListFiles(ctx context.Context, params PullsListFilesPa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -53731,11 +53732,11 @@ func (c *Client) sendPullsListRequestedReviewers(ctx context.Context, params Pul startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PullsListRequestedReviewers", @@ -53748,7 +53749,7 @@ func (c *Client) sendPullsListRequestedReviewers(ctx context.Context, params Pul if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -53897,11 +53898,11 @@ func (c *Client) sendPullsListReviewComments(ctx context.Context, params PullsLi startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PullsListReviewComments", @@ -53914,7 +53915,7 @@ func (c *Client) sendPullsListReviewComments(ctx context.Context, params PullsLi if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -54114,11 +54115,11 @@ func (c *Client) sendPullsListReviewCommentsForRepo(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PullsListReviewCommentsForRepo", @@ -54131,7 +54132,7 @@ func (c *Client) sendPullsListReviewCommentsForRepo(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -54311,11 +54312,11 @@ func (c *Client) sendPullsListReviews(ctx context.Context, params PullsListRevie startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PullsListReviews", @@ -54328,7 +54329,7 @@ func (c *Client) sendPullsListReviews(ctx context.Context, params PullsListRevie if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -54498,11 +54499,11 @@ func (c *Client) sendPullsMerge(ctx context.Context, request OptNilPullsMergeReq startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PullsMerge", @@ -54515,7 +54516,7 @@ func (c *Client) sendPullsMerge(ctx context.Context, request OptNilPullsMergeReq if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -54637,11 +54638,11 @@ func (c *Client) sendPullsRemoveRequestedReviewers(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PullsRemoveRequestedReviewers", @@ -54654,7 +54655,7 @@ func (c *Client) sendPullsRemoveRequestedReviewers(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -54776,11 +54777,11 @@ func (c *Client) sendPullsSubmitReview(ctx context.Context, request *PullsSubmit startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PullsSubmitReview", @@ -54793,7 +54794,7 @@ func (c *Client) sendPullsSubmitReview(ctx context.Context, request *PullsSubmit if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -54948,11 +54949,11 @@ func (c *Client) sendPullsUpdate(ctx context.Context, request OptPullsUpdateReq, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PullsUpdate", @@ -54965,7 +54966,7 @@ func (c *Client) sendPullsUpdate(ctx context.Context, request OptPullsUpdateReq, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -55078,11 +55079,11 @@ func (c *Client) sendPullsUpdateBranch(ctx context.Context, request OptNilPullsU startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PullsUpdateBranch", @@ -55095,7 +55096,7 @@ func (c *Client) sendPullsUpdateBranch(ctx context.Context, request OptNilPullsU if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -55208,11 +55209,11 @@ func (c *Client) sendPullsUpdateReview(ctx context.Context, request *PullsUpdate startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PullsUpdateReview", @@ -55225,7 +55226,7 @@ func (c *Client) sendPullsUpdateReview(ctx context.Context, request *PullsUpdate if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -55356,11 +55357,11 @@ func (c *Client) sendPullsUpdateReviewComment(ctx context.Context, request *Pull startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PullsUpdateReviewComment", @@ -55373,7 +55374,7 @@ func (c *Client) sendPullsUpdateReviewComment(ctx context.Context, request *Pull if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -55488,11 +55489,11 @@ func (c *Client) sendRateLimitGet(ctx context.Context) (res RateLimitGetRes, err startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "RateLimitGet", @@ -55505,7 +55506,7 @@ func (c *Client) sendRateLimitGet(ctx context.Context) (res RateLimitGetRes, err if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -55569,11 +55570,11 @@ func (c *Client) sendReactionsCreateForCommitComment(ctx context.Context, reques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReactionsCreateForCommitComment", @@ -55586,7 +55587,7 @@ func (c *Client) sendReactionsCreateForCommitComment(ctx context.Context, reques if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -55709,11 +55710,11 @@ func (c *Client) sendReactionsCreateForIssue(ctx context.Context, request *React startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReactionsCreateForIssue", @@ -55726,7 +55727,7 @@ func (c *Client) sendReactionsCreateForIssue(ctx context.Context, request *React if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -55850,11 +55851,11 @@ func (c *Client) sendReactionsCreateForIssueComment(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReactionsCreateForIssueComment", @@ -55867,7 +55868,7 @@ func (c *Client) sendReactionsCreateForIssueComment(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -55991,11 +55992,11 @@ func (c *Client) sendReactionsCreateForPullRequestReviewComment(ctx context.Cont startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReactionsCreateForPullRequestReviewComment", @@ -56008,7 +56009,7 @@ func (c *Client) sendReactionsCreateForPullRequestReviewComment(ctx context.Cont if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -56131,11 +56132,11 @@ func (c *Client) sendReactionsCreateForRelease(ctx context.Context, request *Rea startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReactionsCreateForRelease", @@ -56148,7 +56149,7 @@ func (c *Client) sendReactionsCreateForRelease(ctx context.Context, request *Rea if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -56276,11 +56277,11 @@ func (c *Client) sendReactionsCreateForTeamDiscussionCommentInOrg(ctx context.Co startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReactionsCreateForTeamDiscussionCommentInOrg", @@ -56293,7 +56294,7 @@ func (c *Client) sendReactionsCreateForTeamDiscussionCommentInOrg(ctx context.Co if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -56444,11 +56445,11 @@ func (c *Client) sendReactionsCreateForTeamDiscussionCommentLegacy(ctx context.C startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReactionsCreateForTeamDiscussionCommentLegacy", @@ -56461,7 +56462,7 @@ func (c *Client) sendReactionsCreateForTeamDiscussionCommentLegacy(ctx context.C if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -56590,11 +56591,11 @@ func (c *Client) sendReactionsCreateForTeamDiscussionInOrg(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReactionsCreateForTeamDiscussionInOrg", @@ -56607,7 +56608,7 @@ func (c *Client) sendReactionsCreateForTeamDiscussionInOrg(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -56740,11 +56741,11 @@ func (c *Client) sendReactionsCreateForTeamDiscussionLegacy(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReactionsCreateForTeamDiscussionLegacy", @@ -56757,7 +56758,7 @@ func (c *Client) sendReactionsCreateForTeamDiscussionLegacy(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -56853,11 +56854,11 @@ func (c *Client) sendReactionsDeleteForCommitComment(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReactionsDeleteForCommitComment", @@ -56870,7 +56871,7 @@ func (c *Client) sendReactionsDeleteForCommitComment(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -57000,11 +57001,11 @@ func (c *Client) sendReactionsDeleteForIssue(ctx context.Context, params Reactio startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReactionsDeleteForIssue", @@ -57017,7 +57018,7 @@ func (c *Client) sendReactionsDeleteForIssue(ctx context.Context, params Reactio if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -57147,11 +57148,11 @@ func (c *Client) sendReactionsDeleteForIssueComment(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReactionsDeleteForIssueComment", @@ -57164,7 +57165,7 @@ func (c *Client) sendReactionsDeleteForIssueComment(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -57295,11 +57296,11 @@ func (c *Client) sendReactionsDeleteForPullRequestComment(ctx context.Context, p startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReactionsDeleteForPullRequestComment", @@ -57312,7 +57313,7 @@ func (c *Client) sendReactionsDeleteForPullRequestComment(ctx context.Context, p if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -57447,11 +57448,11 @@ func (c *Client) sendReactionsDeleteForTeamDiscussion(ctx context.Context, param startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReactionsDeleteForTeamDiscussion", @@ -57464,7 +57465,7 @@ func (c *Client) sendReactionsDeleteForTeamDiscussion(ctx context.Context, param if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -57597,11 +57598,11 @@ func (c *Client) sendReactionsDeleteForTeamDiscussionComment(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReactionsDeleteForTeamDiscussionComment", @@ -57614,7 +57615,7 @@ func (c *Client) sendReactionsDeleteForTeamDiscussionComment(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -57770,11 +57771,11 @@ func (c *Client) sendReactionsDeleteLegacy(ctx context.Context, params Reactions startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReactionsDeleteLegacy", @@ -57787,7 +57788,7 @@ func (c *Client) sendReactionsDeleteLegacy(ctx context.Context, params Reactions if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -57858,11 +57859,11 @@ func (c *Client) sendReactionsListForCommitComment(ctx context.Context, params R startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReactionsListForCommitComment", @@ -57875,7 +57876,7 @@ func (c *Client) sendReactionsListForCommitComment(ctx context.Context, params R if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -58040,11 +58041,11 @@ func (c *Client) sendReactionsListForIssue(ctx context.Context, params Reactions startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReactionsListForIssue", @@ -58057,7 +58058,7 @@ func (c *Client) sendReactionsListForIssue(ctx context.Context, params Reactions if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -58222,11 +58223,11 @@ func (c *Client) sendReactionsListForIssueComment(ctx context.Context, params Re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReactionsListForIssueComment", @@ -58239,7 +58240,7 @@ func (c *Client) sendReactionsListForIssueComment(ctx context.Context, params Re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -58405,11 +58406,11 @@ func (c *Client) sendReactionsListForPullRequestReviewComment(ctx context.Contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReactionsListForPullRequestReviewComment", @@ -58422,7 +58423,7 @@ func (c *Client) sendReactionsListForPullRequestReviewComment(ctx context.Contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -58591,11 +58592,11 @@ func (c *Client) sendReactionsListForTeamDiscussionCommentInOrg(ctx context.Cont startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReactionsListForTeamDiscussionCommentInOrg", @@ -58608,7 +58609,7 @@ func (c *Client) sendReactionsListForTeamDiscussionCommentInOrg(ctx context.Cont if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -58800,11 +58801,11 @@ func (c *Client) sendReactionsListForTeamDiscussionCommentLegacy(ctx context.Con startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReactionsListForTeamDiscussionCommentLegacy", @@ -58817,7 +58818,7 @@ func (c *Client) sendReactionsListForTeamDiscussionCommentLegacy(ctx context.Con if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -58986,11 +58987,11 @@ func (c *Client) sendReactionsListForTeamDiscussionInOrg(ctx context.Context, pa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReactionsListForTeamDiscussionInOrg", @@ -59003,7 +59004,7 @@ func (c *Client) sendReactionsListForTeamDiscussionInOrg(ctx context.Context, pa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -59176,11 +59177,11 @@ func (c *Client) sendReactionsListForTeamDiscussionLegacy(ctx context.Context, p startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReactionsListForTeamDiscussionLegacy", @@ -59193,7 +59194,7 @@ func (c *Client) sendReactionsListForTeamDiscussionLegacy(ctx context.Context, p if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -59339,11 +59340,11 @@ func (c *Client) sendReposAcceptInvitation(ctx context.Context, params ReposAcce startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposAcceptInvitation", @@ -59356,7 +59357,7 @@ func (c *Client) sendReposAcceptInvitation(ctx context.Context, params ReposAcce if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -59457,11 +59458,11 @@ func (c *Client) sendReposAddAppAccessRestrictions(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposAddAppAccessRestrictions", @@ -59474,7 +59475,7 @@ func (c *Client) sendReposAddAppAccessRestrictions(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -59622,11 +59623,11 @@ func (c *Client) sendReposAddCollaborator(ctx context.Context, request OptReposA startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposAddCollaborator", @@ -59639,7 +59640,7 @@ func (c *Client) sendReposAddCollaborator(ctx context.Context, request OptReposA if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -59771,11 +59772,11 @@ func (c *Client) sendReposAddStatusCheckContexts(ctx context.Context, request Op startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposAddStatusCheckContexts", @@ -59788,7 +59789,7 @@ func (c *Client) sendReposAddStatusCheckContexts(ctx context.Context, request Op if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -59931,11 +59932,11 @@ func (c *Client) sendReposAddTeamAccessRestrictions(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposAddTeamAccessRestrictions", @@ -59948,7 +59949,7 @@ func (c *Client) sendReposAddTeamAccessRestrictions(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -60090,11 +60091,11 @@ func (c *Client) sendReposAddUserAccessRestrictions(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposAddUserAccessRestrictions", @@ -60107,7 +60108,7 @@ func (c *Client) sendReposAddUserAccessRestrictions(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -60224,11 +60225,11 @@ func (c *Client) sendReposCheckCollaborator(ctx context.Context, params ReposChe startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposCheckCollaborator", @@ -60241,7 +60242,7 @@ func (c *Client) sendReposCheckCollaborator(ctx context.Context, params ReposChe if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -60353,11 +60354,11 @@ func (c *Client) sendReposCheckVulnerabilityAlerts(ctx context.Context, params R startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposCheckVulnerabilityAlerts", @@ -60370,7 +60371,7 @@ func (c *Client) sendReposCheckVulnerabilityAlerts(ctx context.Context, params R if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -60515,11 +60516,11 @@ func (c *Client) sendReposCompareCommits(ctx context.Context, params ReposCompar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposCompareCommits", @@ -60532,7 +60533,7 @@ func (c *Client) sendReposCompareCommits(ctx context.Context, params ReposCompar if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -60679,11 +60680,11 @@ func (c *Client) sendReposCreateAutolink(ctx context.Context, request *ReposCrea startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposCreateAutolink", @@ -60696,7 +60697,7 @@ func (c *Client) sendReposCreateAutolink(ctx context.Context, request *ReposCrea if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -60797,11 +60798,11 @@ func (c *Client) sendReposCreateCommitComment(ctx context.Context, request *Repo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposCreateCommitComment", @@ -60814,7 +60815,7 @@ func (c *Client) sendReposCreateCommitComment(ctx context.Context, request *Repo if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -60933,11 +60934,11 @@ func (c *Client) sendReposCreateCommitSignatureProtection(ctx context.Context, p startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposCreateCommitSignatureProtection", @@ -60950,7 +60951,7 @@ func (c *Client) sendReposCreateCommitSignatureProtection(ctx context.Context, p if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -61071,11 +61072,11 @@ func (c *Client) sendReposCreateCommitStatus(ctx context.Context, request *Repos startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposCreateCommitStatus", @@ -61088,7 +61089,7 @@ func (c *Client) sendReposCreateCommitStatus(ctx context.Context, request *Repos if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -61200,11 +61201,11 @@ func (c *Client) sendReposCreateDeployKey(ctx context.Context, request *ReposCre startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposCreateDeployKey", @@ -61217,7 +61218,7 @@ func (c *Client) sendReposCreateDeployKey(ctx context.Context, request *ReposCre if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -61366,11 +61367,11 @@ func (c *Client) sendReposCreateDeployment(ctx context.Context, request *ReposCr startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposCreateDeployment", @@ -61383,7 +61384,7 @@ func (c *Client) sendReposCreateDeployment(ctx context.Context, request *ReposCr if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -61488,11 +61489,11 @@ func (c *Client) sendReposCreateDeploymentStatus(ctx context.Context, request *R startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposCreateDeploymentStatus", @@ -61505,7 +61506,7 @@ func (c *Client) sendReposCreateDeploymentStatus(ctx context.Context, request *R if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -61646,11 +61647,11 @@ func (c *Client) sendReposCreateDispatchEvent(ctx context.Context, request *Repo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposCreateDispatchEvent", @@ -61663,7 +61664,7 @@ func (c *Client) sendReposCreateDispatchEvent(ctx context.Context, request *Repo if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -61763,11 +61764,11 @@ func (c *Client) sendReposCreateForAuthenticatedUser(ctx context.Context, reques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposCreateForAuthenticatedUser", @@ -61780,7 +61781,7 @@ func (c *Client) sendReposCreateForAuthenticatedUser(ctx context.Context, reques if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -61839,11 +61840,11 @@ func (c *Client) sendReposCreateFork(ctx context.Context, request OptNilReposCre startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposCreateFork", @@ -61856,7 +61857,7 @@ func (c *Client) sendReposCreateFork(ctx context.Context, request OptNilReposCre if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -61966,11 +61967,11 @@ func (c *Client) sendReposCreateInOrg(ctx context.Context, request *ReposCreateI startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposCreateInOrg", @@ -61983,7 +61984,7 @@ func (c *Client) sendReposCreateInOrg(ctx context.Context, request *ReposCreateI if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -62058,11 +62059,11 @@ func (c *Client) sendReposCreateOrUpdateFileContents(ctx context.Context, reques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposCreateOrUpdateFileContents", @@ -62075,7 +62076,7 @@ func (c *Client) sendReposCreateOrUpdateFileContents(ctx context.Context, reques if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -62197,11 +62198,11 @@ func (c *Client) sendReposCreatePagesSite(ctx context.Context, request NilReposC startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposCreatePagesSite", @@ -62214,7 +62215,7 @@ func (c *Client) sendReposCreatePagesSite(ctx context.Context, request NilReposC if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -62315,11 +62316,11 @@ func (c *Client) sendReposCreateRelease(ctx context.Context, request *ReposCreat startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposCreateRelease", @@ -62332,7 +62333,7 @@ func (c *Client) sendReposCreateRelease(ctx context.Context, request *ReposCreat if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -62437,11 +62438,11 @@ func (c *Client) sendReposCreateUsingTemplate(ctx context.Context, request *Repo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposCreateUsingTemplate", @@ -62454,7 +62455,7 @@ func (c *Client) sendReposCreateUsingTemplate(ctx context.Context, request *Repo if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -62566,11 +62567,11 @@ func (c *Client) sendReposCreateWebhook(ctx context.Context, request OptNilRepos startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposCreateWebhook", @@ -62583,7 +62584,7 @@ func (c *Client) sendReposCreateWebhook(ctx context.Context, request OptNilRepos if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -62677,11 +62678,11 @@ func (c *Client) sendReposDeclineInvitation(ctx context.Context, params ReposDec startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposDeclineInvitation", @@ -62694,7 +62695,7 @@ func (c *Client) sendReposDeclineInvitation(ctx context.Context, params ReposDec if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -62768,11 +62769,11 @@ func (c *Client) sendReposDelete(ctx context.Context, params ReposDeleteParams) startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposDelete", @@ -62785,7 +62786,7 @@ func (c *Client) sendReposDelete(ctx context.Context, params ReposDeleteParams) if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -62880,11 +62881,11 @@ func (c *Client) sendReposDeleteAccessRestrictions(ctx context.Context, params R startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposDeleteAccessRestrictions", @@ -62897,7 +62898,7 @@ func (c *Client) sendReposDeleteAccessRestrictions(ctx context.Context, params R if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -63013,11 +63014,11 @@ func (c *Client) sendReposDeleteAdminBranchProtection(ctx context.Context, param startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposDeleteAdminBranchProtection", @@ -63030,7 +63031,7 @@ func (c *Client) sendReposDeleteAdminBranchProtection(ctx context.Context, param if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -63140,11 +63141,11 @@ func (c *Client) sendReposDeleteAnEnvironment(ctx context.Context, params ReposD startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposDeleteAnEnvironment", @@ -63157,7 +63158,7 @@ func (c *Client) sendReposDeleteAnEnvironment(ctx context.Context, params ReposD if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -63267,11 +63268,11 @@ func (c *Client) sendReposDeleteAutolink(ctx context.Context, params ReposDelete startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposDeleteAutolink", @@ -63284,7 +63285,7 @@ func (c *Client) sendReposDeleteAutolink(ctx context.Context, params ReposDelete if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -63397,11 +63398,11 @@ func (c *Client) sendReposDeleteBranchProtection(ctx context.Context, params Rep startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposDeleteBranchProtection", @@ -63414,7 +63415,7 @@ func (c *Client) sendReposDeleteBranchProtection(ctx context.Context, params Rep if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -63524,11 +63525,11 @@ func (c *Client) sendReposDeleteCommitComment(ctx context.Context, params ReposD startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposDeleteCommitComment", @@ -63541,7 +63542,7 @@ func (c *Client) sendReposDeleteCommitComment(ctx context.Context, params ReposD if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -63657,11 +63658,11 @@ func (c *Client) sendReposDeleteCommitSignatureProtection(ctx context.Context, p startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposDeleteCommitSignatureProtection", @@ -63674,7 +63675,7 @@ func (c *Client) sendReposDeleteCommitSignatureProtection(ctx context.Context, p if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -63785,11 +63786,11 @@ func (c *Client) sendReposDeleteDeployKey(ctx context.Context, params ReposDelet startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposDeleteDeployKey", @@ -63802,7 +63803,7 @@ func (c *Client) sendReposDeleteDeployKey(ctx context.Context, params ReposDelet if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -63919,11 +63920,11 @@ func (c *Client) sendReposDeleteDeployment(ctx context.Context, params ReposDele startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposDeleteDeployment", @@ -63936,7 +63937,7 @@ func (c *Client) sendReposDeleteDeployment(ctx context.Context, params ReposDele if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -64052,11 +64053,11 @@ func (c *Client) sendReposDeleteFile(ctx context.Context, request *ReposDeleteFi startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposDeleteFile", @@ -64069,7 +64070,7 @@ func (c *Client) sendReposDeleteFile(ctx context.Context, request *ReposDeleteFi if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -64181,11 +64182,11 @@ func (c *Client) sendReposDeleteInvitation(ctx context.Context, params ReposDele startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposDeleteInvitation", @@ -64198,7 +64199,7 @@ func (c *Client) sendReposDeleteInvitation(ctx context.Context, params ReposDele if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -64307,11 +64308,11 @@ func (c *Client) sendReposDeletePagesSite(ctx context.Context, params ReposDelet startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposDeletePagesSite", @@ -64324,7 +64325,7 @@ func (c *Client) sendReposDeletePagesSite(ctx context.Context, params ReposDelet if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -64419,11 +64420,11 @@ func (c *Client) sendReposDeletePullRequestReviewProtection(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposDeletePullRequestReviewProtection", @@ -64436,7 +64437,7 @@ func (c *Client) sendReposDeletePullRequestReviewProtection(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -64546,11 +64547,11 @@ func (c *Client) sendReposDeleteRelease(ctx context.Context, params ReposDeleteR startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposDeleteRelease", @@ -64563,7 +64564,7 @@ func (c *Client) sendReposDeleteRelease(ctx context.Context, params ReposDeleteR if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -64672,11 +64673,11 @@ func (c *Client) sendReposDeleteReleaseAsset(ctx context.Context, params ReposDe startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposDeleteReleaseAsset", @@ -64689,7 +64690,7 @@ func (c *Client) sendReposDeleteReleaseAsset(ctx context.Context, params ReposDe if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -64798,11 +64799,11 @@ func (c *Client) sendReposDeleteWebhook(ctx context.Context, params ReposDeleteW startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposDeleteWebhook", @@ -64815,7 +64816,7 @@ func (c *Client) sendReposDeleteWebhook(ctx context.Context, params ReposDeleteW if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -64926,11 +64927,11 @@ func (c *Client) sendReposDisableAutomatedSecurityFixes(ctx context.Context, par startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposDisableAutomatedSecurityFixes", @@ -64943,7 +64944,7 @@ func (c *Client) sendReposDisableAutomatedSecurityFixes(ctx context.Context, par if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -65034,11 +65035,11 @@ func (c *Client) sendReposDisableLfsForRepo(ctx context.Context, params ReposDis startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposDisableLfsForRepo", @@ -65051,7 +65052,7 @@ func (c *Client) sendReposDisableLfsForRepo(ctx context.Context, params ReposDis if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -65145,11 +65146,11 @@ func (c *Client) sendReposDisableVulnerabilityAlerts(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposDisableVulnerabilityAlerts", @@ -65162,7 +65163,7 @@ func (c *Client) sendReposDisableVulnerabilityAlerts(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -65258,11 +65259,11 @@ func (c *Client) sendReposDownloadTarballArchive(ctx context.Context, params Rep startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposDownloadTarballArchive", @@ -65275,7 +65276,7 @@ func (c *Client) sendReposDownloadTarballArchive(ctx context.Context, params Rep if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -65389,11 +65390,11 @@ func (c *Client) sendReposDownloadZipballArchive(ctx context.Context, params Rep startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposDownloadZipballArchive", @@ -65406,7 +65407,7 @@ func (c *Client) sendReposDownloadZipballArchive(ctx context.Context, params Rep if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -65517,11 +65518,11 @@ func (c *Client) sendReposEnableAutomatedSecurityFixes(ctx context.Context, para startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposEnableAutomatedSecurityFixes", @@ -65534,7 +65535,7 @@ func (c *Client) sendReposEnableAutomatedSecurityFixes(ctx context.Context, para if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -65625,11 +65626,11 @@ func (c *Client) sendReposEnableLfsForRepo(ctx context.Context, params ReposEnab startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposEnableLfsForRepo", @@ -65642,7 +65643,7 @@ func (c *Client) sendReposEnableLfsForRepo(ctx context.Context, params ReposEnab if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -65736,11 +65737,11 @@ func (c *Client) sendReposEnableVulnerabilityAlerts(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposEnableVulnerabilityAlerts", @@ -65753,7 +65754,7 @@ func (c *Client) sendReposEnableVulnerabilityAlerts(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -65845,11 +65846,11 @@ func (c *Client) sendReposGet(ctx context.Context, params ReposGetParams) (res R startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposGet", @@ -65862,7 +65863,7 @@ func (c *Client) sendReposGet(ctx context.Context, params ReposGetParams) (res R if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -65959,11 +65960,11 @@ func (c *Client) sendReposGetAccessRestrictions(ctx context.Context, params Repo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposGetAccessRestrictions", @@ -65976,7 +65977,7 @@ func (c *Client) sendReposGetAccessRestrictions(ctx context.Context, params Repo if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -66090,11 +66091,11 @@ func (c *Client) sendReposGetAdminBranchProtection(ctx context.Context, params R startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposGetAdminBranchProtection", @@ -66107,7 +66108,7 @@ func (c *Client) sendReposGetAdminBranchProtection(ctx context.Context, params R if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -66221,11 +66222,11 @@ func (c *Client) sendReposGetAllStatusCheckContexts(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposGetAllStatusCheckContexts", @@ -66238,7 +66239,7 @@ func (c *Client) sendReposGetAllStatusCheckContexts(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -66348,11 +66349,11 @@ func (c *Client) sendReposGetAllTopics(ctx context.Context, params ReposGetAllTo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposGetAllTopics", @@ -66365,7 +66366,7 @@ func (c *Client) sendReposGetAllTopics(ctx context.Context, params ReposGetAllTo if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -66501,11 +66502,11 @@ func (c *Client) sendReposGetAppsWithAccessToProtectedBranch(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposGetAppsWithAccessToProtectedBranch", @@ -66518,7 +66519,7 @@ func (c *Client) sendReposGetAppsWithAccessToProtectedBranch(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -66629,11 +66630,11 @@ func (c *Client) sendReposGetAutolink(ctx context.Context, params ReposGetAutoli startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposGetAutolink", @@ -66646,7 +66647,7 @@ func (c *Client) sendReposGetAutolink(ctx context.Context, params ReposGetAutoli if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -66755,11 +66756,11 @@ func (c *Client) sendReposGetBranch(ctx context.Context, params ReposGetBranchPa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposGetBranch", @@ -66772,7 +66773,7 @@ func (c *Client) sendReposGetBranch(ctx context.Context, params ReposGetBranchPa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -66885,11 +66886,11 @@ func (c *Client) sendReposGetBranchProtection(ctx context.Context, params ReposG startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposGetBranchProtection", @@ -66902,7 +66903,7 @@ func (c *Client) sendReposGetBranchProtection(ctx context.Context, params ReposG if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -67013,11 +67014,11 @@ func (c *Client) sendReposGetClones(ctx context.Context, params ReposGetClonesPa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposGetClones", @@ -67030,7 +67031,7 @@ func (c *Client) sendReposGetClones(ctx context.Context, params ReposGetClonesPa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -67142,11 +67143,11 @@ func (c *Client) sendReposGetCodeFrequencyStats(ctx context.Context, params Repo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposGetCodeFrequencyStats", @@ -67159,7 +67160,7 @@ func (c *Client) sendReposGetCodeFrequencyStats(ctx context.Context, params Repo if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -67251,11 +67252,11 @@ func (c *Client) sendReposGetCollaboratorPermissionLevel(ctx context.Context, pa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposGetCollaboratorPermissionLevel", @@ -67268,7 +67269,7 @@ func (c *Client) sendReposGetCollaboratorPermissionLevel(ctx context.Context, pa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -67386,11 +67387,11 @@ func (c *Client) sendReposGetCombinedStatusForRef(ctx context.Context, params Re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposGetCombinedStatusForRef", @@ -67403,7 +67404,7 @@ func (c *Client) sendReposGetCombinedStatusForRef(ctx context.Context, params Re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -67597,11 +67598,11 @@ func (c *Client) sendReposGetCommit(ctx context.Context, params ReposGetCommitPa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposGetCommit", @@ -67614,7 +67615,7 @@ func (c *Client) sendReposGetCommit(ctx context.Context, params ReposGetCommitPa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -67762,11 +67763,11 @@ func (c *Client) sendReposGetCommitActivityStats(ctx context.Context, params Rep startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposGetCommitActivityStats", @@ -67779,7 +67780,7 @@ func (c *Client) sendReposGetCommitActivityStats(ctx context.Context, params Rep if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -67870,11 +67871,11 @@ func (c *Client) sendReposGetCommitComment(ctx context.Context, params ReposGetC startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposGetCommitComment", @@ -67887,7 +67888,7 @@ func (c *Client) sendReposGetCommitComment(ctx context.Context, params ReposGetC if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -68005,11 +68006,11 @@ func (c *Client) sendReposGetCommitSignatureProtection(ctx context.Context, para startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposGetCommitSignatureProtection", @@ -68022,7 +68023,7 @@ func (c *Client) sendReposGetCommitSignatureProtection(ctx context.Context, para if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -68141,11 +68142,11 @@ func (c *Client) sendReposGetCommunityProfileMetrics(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposGetCommunityProfileMetrics", @@ -68158,7 +68159,7 @@ func (c *Client) sendReposGetCommunityProfileMetrics(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -68254,11 +68255,11 @@ func (c *Client) sendReposGetContributorsStats(ctx context.Context, params Repos startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposGetContributorsStats", @@ -68271,7 +68272,7 @@ func (c *Client) sendReposGetContributorsStats(ctx context.Context, params Repos if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -68362,11 +68363,11 @@ func (c *Client) sendReposGetDeployKey(ctx context.Context, params ReposGetDeplo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposGetDeployKey", @@ -68379,7 +68380,7 @@ func (c *Client) sendReposGetDeployKey(ctx context.Context, params ReposGetDeplo if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -68488,11 +68489,11 @@ func (c *Client) sendReposGetDeployment(ctx context.Context, params ReposGetDepl startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposGetDeployment", @@ -68505,7 +68506,7 @@ func (c *Client) sendReposGetDeployment(ctx context.Context, params ReposGetDepl if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -68614,11 +68615,11 @@ func (c *Client) sendReposGetDeploymentStatus(ctx context.Context, params ReposG startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposGetDeploymentStatus", @@ -68631,7 +68632,7 @@ func (c *Client) sendReposGetDeploymentStatus(ctx context.Context, params ReposG if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -68759,11 +68760,11 @@ func (c *Client) sendReposGetLatestPagesBuild(ctx context.Context, params ReposG startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposGetLatestPagesBuild", @@ -68776,7 +68777,7 @@ func (c *Client) sendReposGetLatestPagesBuild(ctx context.Context, params ReposG if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -68870,11 +68871,11 @@ func (c *Client) sendReposGetLatestRelease(ctx context.Context, params ReposGetL startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposGetLatestRelease", @@ -68887,7 +68888,7 @@ func (c *Client) sendReposGetLatestRelease(ctx context.Context, params ReposGetL if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -68978,11 +68979,11 @@ func (c *Client) sendReposGetPages(ctx context.Context, params ReposGetPagesPara startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposGetPages", @@ -68995,7 +68996,7 @@ func (c *Client) sendReposGetPages(ctx context.Context, params ReposGetPagesPara if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -69086,11 +69087,11 @@ func (c *Client) sendReposGetPagesBuild(ctx context.Context, params ReposGetPage startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposGetPagesBuild", @@ -69103,7 +69104,7 @@ func (c *Client) sendReposGetPagesBuild(ctx context.Context, params ReposGetPage if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -69218,11 +69219,11 @@ func (c *Client) sendReposGetPagesHealthCheck(ctx context.Context, params ReposG startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposGetPagesHealthCheck", @@ -69235,7 +69236,7 @@ func (c *Client) sendReposGetPagesHealthCheck(ctx context.Context, params ReposG if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -69329,11 +69330,11 @@ func (c *Client) sendReposGetParticipationStats(ctx context.Context, params Repo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposGetParticipationStats", @@ -69346,7 +69347,7 @@ func (c *Client) sendReposGetParticipationStats(ctx context.Context, params Repo if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -69441,11 +69442,11 @@ func (c *Client) sendReposGetPullRequestReviewProtection(ctx context.Context, pa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposGetPullRequestReviewProtection", @@ -69458,7 +69459,7 @@ func (c *Client) sendReposGetPullRequestReviewProtection(ctx context.Context, pa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -69573,11 +69574,11 @@ func (c *Client) sendReposGetPunchCardStats(ctx context.Context, params ReposGet startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposGetPunchCardStats", @@ -69590,7 +69591,7 @@ func (c *Client) sendReposGetPunchCardStats(ctx context.Context, params ReposGet if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -69683,11 +69684,11 @@ func (c *Client) sendReposGetReadme(ctx context.Context, params ReposGetReadmePa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposGetReadme", @@ -69700,7 +69701,7 @@ func (c *Client) sendReposGetReadme(ctx context.Context, params ReposGetReadmePa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -69814,11 +69815,11 @@ func (c *Client) sendReposGetReadmeInDirectory(ctx context.Context, params Repos startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposGetReadmeInDirectory", @@ -69831,7 +69832,7 @@ func (c *Client) sendReposGetReadmeInDirectory(ctx context.Context, params Repos if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -69963,11 +69964,11 @@ func (c *Client) sendReposGetRelease(ctx context.Context, params ReposGetRelease startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposGetRelease", @@ -69980,7 +69981,7 @@ func (c *Client) sendReposGetRelease(ctx context.Context, params ReposGetRelease if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -70092,11 +70093,11 @@ func (c *Client) sendReposGetReleaseAsset(ctx context.Context, params ReposGetRe startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposGetReleaseAsset", @@ -70109,7 +70110,7 @@ func (c *Client) sendReposGetReleaseAsset(ctx context.Context, params ReposGetRe if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -70218,11 +70219,11 @@ func (c *Client) sendReposGetReleaseByTag(ctx context.Context, params ReposGetRe startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposGetReleaseByTag", @@ -70235,7 +70236,7 @@ func (c *Client) sendReposGetReleaseByTag(ctx context.Context, params ReposGetRe if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -70348,11 +70349,11 @@ func (c *Client) sendReposGetStatusChecksProtection(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposGetStatusChecksProtection", @@ -70365,7 +70366,7 @@ func (c *Client) sendReposGetStatusChecksProtection(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -70480,11 +70481,11 @@ func (c *Client) sendReposGetTeamsWithAccessToProtectedBranch(ctx context.Contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposGetTeamsWithAccessToProtectedBranch", @@ -70497,7 +70498,7 @@ func (c *Client) sendReposGetTeamsWithAccessToProtectedBranch(ctx context.Contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -70607,11 +70608,11 @@ func (c *Client) sendReposGetTopPaths(ctx context.Context, params ReposGetTopPat startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposGetTopPaths", @@ -70624,7 +70625,7 @@ func (c *Client) sendReposGetTopPaths(ctx context.Context, params ReposGetTopPat if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -70715,11 +70716,11 @@ func (c *Client) sendReposGetTopReferrers(ctx context.Context, params ReposGetTo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposGetTopReferrers", @@ -70732,7 +70733,7 @@ func (c *Client) sendReposGetTopReferrers(ctx context.Context, params ReposGetTo if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -70828,11 +70829,11 @@ func (c *Client) sendReposGetUsersWithAccessToProtectedBranch(ctx context.Contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposGetUsersWithAccessToProtectedBranch", @@ -70845,7 +70846,7 @@ func (c *Client) sendReposGetUsersWithAccessToProtectedBranch(ctx context.Contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -70956,11 +70957,11 @@ func (c *Client) sendReposGetViews(ctx context.Context, params ReposGetViewsPara startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposGetViews", @@ -70973,7 +70974,7 @@ func (c *Client) sendReposGetViews(ctx context.Context, params ReposGetViewsPara if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -71087,11 +71088,11 @@ func (c *Client) sendReposGetWebhook(ctx context.Context, params ReposGetWebhook startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposGetWebhook", @@ -71104,7 +71105,7 @@ func (c *Client) sendReposGetWebhook(ctx context.Context, params ReposGetWebhook if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -71217,11 +71218,11 @@ func (c *Client) sendReposGetWebhookConfigForRepo(ctx context.Context, params Re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposGetWebhookConfigForRepo", @@ -71234,7 +71235,7 @@ func (c *Client) sendReposGetWebhookConfigForRepo(ctx context.Context, params Re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -71344,11 +71345,11 @@ func (c *Client) sendReposGetWebhookDelivery(ctx context.Context, params ReposGe startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposGetWebhookDelivery", @@ -71361,7 +71362,7 @@ func (c *Client) sendReposGetWebhookDelivery(ctx context.Context, params ReposGe if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -71490,11 +71491,11 @@ func (c *Client) sendReposListAutolinks(ctx context.Context, params ReposListAut startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposListAutolinks", @@ -71507,7 +71508,7 @@ func (c *Client) sendReposListAutolinks(ctx context.Context, params ReposListAut if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -71619,11 +71620,11 @@ func (c *Client) sendReposListBranches(ctx context.Context, params ReposListBran startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposListBranches", @@ -71636,7 +71637,7 @@ func (c *Client) sendReposListBranches(ctx context.Context, params ReposListBran if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -71787,11 +71788,11 @@ func (c *Client) sendReposListBranchesForHeadCommit(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposListBranchesForHeadCommit", @@ -71804,7 +71805,7 @@ func (c *Client) sendReposListBranchesForHeadCommit(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -71918,11 +71919,11 @@ func (c *Client) sendReposListCollaborators(ctx context.Context, params ReposLis startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposListCollaborators", @@ -71935,7 +71936,7 @@ func (c *Client) sendReposListCollaborators(ctx context.Context, params ReposLis if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -72081,11 +72082,11 @@ func (c *Client) sendReposListCommentsForCommit(ctx context.Context, params Repo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposListCommentsForCommit", @@ -72098,7 +72099,7 @@ func (c *Client) sendReposListCommentsForCommit(ctx context.Context, params Repo if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -72249,11 +72250,11 @@ func (c *Client) sendReposListCommitCommentsForRepo(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposListCommitCommentsForRepo", @@ -72266,7 +72267,7 @@ func (c *Client) sendReposListCommitCommentsForRepo(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -72398,11 +72399,11 @@ func (c *Client) sendReposListCommitStatusesForRef(ctx context.Context, params R startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposListCommitStatusesForRef", @@ -72415,7 +72416,7 @@ func (c *Client) sendReposListCommitStatusesForRef(ctx context.Context, params R if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -72594,11 +72595,11 @@ func (c *Client) sendReposListCommits(ctx context.Context, params ReposListCommi startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposListCommits", @@ -72611,7 +72612,7 @@ func (c *Client) sendReposListCommits(ctx context.Context, params ReposListCommi if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -72831,11 +72832,11 @@ func (c *Client) sendReposListContributors(ctx context.Context, params ReposList startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposListContributors", @@ -72848,7 +72849,7 @@ func (c *Client) sendReposListContributors(ctx context.Context, params ReposList if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -72994,11 +72995,11 @@ func (c *Client) sendReposListDeployKeys(ctx context.Context, params ReposListDe startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposListDeployKeys", @@ -73011,7 +73012,7 @@ func (c *Client) sendReposListDeployKeys(ctx context.Context, params ReposListDe if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -73140,11 +73141,11 @@ func (c *Client) sendReposListDeploymentStatuses(ctx context.Context, params Rep startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposListDeploymentStatuses", @@ -73157,7 +73158,7 @@ func (c *Client) sendReposListDeploymentStatuses(ctx context.Context, params Rep if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -73305,11 +73306,11 @@ func (c *Client) sendReposListDeployments(ctx context.Context, params ReposListD startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposListDeployments", @@ -73322,7 +73323,7 @@ func (c *Client) sendReposListDeployments(ctx context.Context, params ReposListD if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -73522,11 +73523,11 @@ func (c *Client) sendReposListForAuthenticatedUser(ctx context.Context, params R startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposListForAuthenticatedUser", @@ -73539,7 +73540,7 @@ func (c *Client) sendReposListForAuthenticatedUser(ctx context.Context, params R if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -73749,11 +73750,11 @@ func (c *Client) sendReposListForOrg(ctx context.Context, params ReposListForOrg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposListForOrg", @@ -73766,7 +73767,7 @@ func (c *Client) sendReposListForOrg(ctx context.Context, params ReposListForOrg if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -73928,11 +73929,11 @@ func (c *Client) sendReposListForUser(ctx context.Context, params ReposListForUs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposListForUser", @@ -73945,7 +73946,7 @@ func (c *Client) sendReposListForUser(ctx context.Context, params ReposListForUs if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -74106,11 +74107,11 @@ func (c *Client) sendReposListForks(ctx context.Context, params ReposListForksPa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposListForks", @@ -74123,7 +74124,7 @@ func (c *Client) sendReposListForks(ctx context.Context, params ReposListForksPa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -74270,11 +74271,11 @@ func (c *Client) sendReposListInvitations(ctx context.Context, params ReposListI startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposListInvitations", @@ -74287,7 +74288,7 @@ func (c *Client) sendReposListInvitations(ctx context.Context, params ReposListI if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -74417,11 +74418,11 @@ func (c *Client) sendReposListInvitationsForAuthenticatedUser(ctx context.Contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposListInvitationsForAuthenticatedUser", @@ -74434,7 +74435,7 @@ func (c *Client) sendReposListInvitationsForAuthenticatedUser(ctx context.Contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -74526,11 +74527,11 @@ func (c *Client) sendReposListLanguages(ctx context.Context, params ReposListLan startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposListLanguages", @@ -74543,7 +74544,7 @@ func (c *Client) sendReposListLanguages(ctx context.Context, params ReposListLan if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -74634,11 +74635,11 @@ func (c *Client) sendReposListPagesBuilds(ctx context.Context, params ReposListP startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposListPagesBuilds", @@ -74651,7 +74652,7 @@ func (c *Client) sendReposListPagesBuilds(ctx context.Context, params ReposListP if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -74786,11 +74787,11 @@ func (c *Client) sendReposListPublic(ctx context.Context, params ReposListPublic startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposListPublic", @@ -74803,7 +74804,7 @@ func (c *Client) sendReposListPublic(ctx context.Context, params ReposListPublic if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -74882,11 +74883,11 @@ func (c *Client) sendReposListPullRequestsAssociatedWithCommit(ctx context.Conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposListPullRequestsAssociatedWithCommit", @@ -74899,7 +74900,7 @@ func (c *Client) sendReposListPullRequestsAssociatedWithCommit(ctx context.Conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -75047,11 +75048,11 @@ func (c *Client) sendReposListReleaseAssets(ctx context.Context, params ReposLis startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposListReleaseAssets", @@ -75064,7 +75065,7 @@ func (c *Client) sendReposListReleaseAssets(ctx context.Context, params ReposLis if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -75216,11 +75217,11 @@ func (c *Client) sendReposListReleases(ctx context.Context, params ReposListRele startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposListReleases", @@ -75233,7 +75234,7 @@ func (c *Client) sendReposListReleases(ctx context.Context, params ReposListRele if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -75362,11 +75363,11 @@ func (c *Client) sendReposListTags(ctx context.Context, params ReposListTagsPara startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposListTags", @@ -75379,7 +75380,7 @@ func (c *Client) sendReposListTags(ctx context.Context, params ReposListTagsPara if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -75508,11 +75509,11 @@ func (c *Client) sendReposListTeams(ctx context.Context, params ReposListTeamsPa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposListTeams", @@ -75525,7 +75526,7 @@ func (c *Client) sendReposListTeams(ctx context.Context, params ReposListTeamsPa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -75654,11 +75655,11 @@ func (c *Client) sendReposListWebhookDeliveries(ctx context.Context, params Repo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposListWebhookDeliveries", @@ -75671,7 +75672,7 @@ func (c *Client) sendReposListWebhookDeliveries(ctx context.Context, params Repo if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -75819,11 +75820,11 @@ func (c *Client) sendReposListWebhooks(ctx context.Context, params ReposListWebh startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposListWebhooks", @@ -75836,7 +75837,7 @@ func (c *Client) sendReposListWebhooks(ctx context.Context, params ReposListWebh if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -75965,11 +75966,11 @@ func (c *Client) sendReposMerge(ctx context.Context, request *ReposMergeReq, par startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposMerge", @@ -75982,7 +75983,7 @@ func (c *Client) sendReposMerge(ctx context.Context, request *ReposMergeReq, par if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -76077,11 +76078,11 @@ func (c *Client) sendReposMergeUpstream(ctx context.Context, request *ReposMerge startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposMergeUpstream", @@ -76094,7 +76095,7 @@ func (c *Client) sendReposMergeUpstream(ctx context.Context, request *ReposMerge if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -76189,11 +76190,11 @@ func (c *Client) sendReposPingWebhook(ctx context.Context, params ReposPingWebho startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposPingWebhook", @@ -76206,7 +76207,7 @@ func (c *Client) sendReposPingWebhook(ctx context.Context, params ReposPingWebho if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -76316,11 +76317,11 @@ func (c *Client) sendReposRedeliverWebhookDelivery(ctx context.Context, params R startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposRedeliverWebhookDelivery", @@ -76333,7 +76334,7 @@ func (c *Client) sendReposRedeliverWebhookDelivery(ctx context.Context, params R if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -76492,11 +76493,11 @@ func (c *Client) sendReposRemoveAppAccessRestrictions(ctx context.Context, reque startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposRemoveAppAccessRestrictions", @@ -76509,7 +76510,7 @@ func (c *Client) sendReposRemoveAppAccessRestrictions(ctx context.Context, reque if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -76622,11 +76623,11 @@ func (c *Client) sendReposRemoveCollaborator(ctx context.Context, params ReposRe startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposRemoveCollaborator", @@ -76639,7 +76640,7 @@ func (c *Client) sendReposRemoveCollaborator(ctx context.Context, params ReposRe if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -76768,11 +76769,11 @@ func (c *Client) sendReposRemoveStatusCheckContexts(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposRemoveStatusCheckContexts", @@ -76785,7 +76786,7 @@ func (c *Client) sendReposRemoveStatusCheckContexts(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -76902,11 +76903,11 @@ func (c *Client) sendReposRemoveStatusCheckProtection(ctx context.Context, param startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposRemoveStatusCheckProtection", @@ -76919,7 +76920,7 @@ func (c *Client) sendReposRemoveStatusCheckProtection(ctx context.Context, param if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -77059,11 +77060,11 @@ func (c *Client) sendReposRemoveTeamAccessRestrictions(ctx context.Context, requ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposRemoveTeamAccessRestrictions", @@ -77076,7 +77077,7 @@ func (c *Client) sendReposRemoveTeamAccessRestrictions(ctx context.Context, requ if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -77218,11 +77219,11 @@ func (c *Client) sendReposRemoveUserAccessRestrictions(ctx context.Context, requ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposRemoveUserAccessRestrictions", @@ -77235,7 +77236,7 @@ func (c *Client) sendReposRemoveUserAccessRestrictions(ctx context.Context, requ if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -77360,11 +77361,11 @@ func (c *Client) sendReposRenameBranch(ctx context.Context, request OptReposRena startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposRenameBranch", @@ -77377,7 +77378,7 @@ func (c *Client) sendReposRenameBranch(ctx context.Context, request OptReposRena if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -77499,11 +77500,11 @@ func (c *Client) sendReposReplaceAllTopics(ctx context.Context, request *ReposRe startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposReplaceAllTopics", @@ -77516,7 +77517,7 @@ func (c *Client) sendReposReplaceAllTopics(ctx context.Context, request *ReposRe if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -77615,11 +77616,11 @@ func (c *Client) sendReposRequestPagesBuild(ctx context.Context, params ReposReq startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposRequestPagesBuild", @@ -77632,7 +77633,7 @@ func (c *Client) sendReposRequestPagesBuild(ctx context.Context, params ReposReq if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -77729,11 +77730,11 @@ func (c *Client) sendReposSetAdminBranchProtection(ctx context.Context, params R startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposSetAdminBranchProtection", @@ -77746,7 +77747,7 @@ func (c *Client) sendReposSetAdminBranchProtection(ctx context.Context, params R if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -77888,11 +77889,11 @@ func (c *Client) sendReposSetAppAccessRestrictions(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposSetAppAccessRestrictions", @@ -77905,7 +77906,7 @@ func (c *Client) sendReposSetAppAccessRestrictions(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -78038,11 +78039,11 @@ func (c *Client) sendReposSetStatusCheckContexts(ctx context.Context, request Op startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposSetStatusCheckContexts", @@ -78055,7 +78056,7 @@ func (c *Client) sendReposSetStatusCheckContexts(ctx context.Context, request Op if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -78199,11 +78200,11 @@ func (c *Client) sendReposSetTeamAccessRestrictions(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposSetTeamAccessRestrictions", @@ -78216,7 +78217,7 @@ func (c *Client) sendReposSetTeamAccessRestrictions(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -78359,11 +78360,11 @@ func (c *Client) sendReposSetUserAccessRestrictions(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposSetUserAccessRestrictions", @@ -78376,7 +78377,7 @@ func (c *Client) sendReposSetUserAccessRestrictions(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -78492,11 +78493,11 @@ func (c *Client) sendReposTestPushWebhook(ctx context.Context, params ReposTestP startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposTestPushWebhook", @@ -78509,7 +78510,7 @@ func (c *Client) sendReposTestPushWebhook(ctx context.Context, params ReposTestP if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -78623,11 +78624,11 @@ func (c *Client) sendReposTransfer(ctx context.Context, request *ReposTransferRe startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposTransfer", @@ -78640,7 +78641,7 @@ func (c *Client) sendReposTransfer(ctx context.Context, request *ReposTransferRe if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -78751,11 +78752,11 @@ func (c *Client) sendReposUpdate(ctx context.Context, request OptReposUpdateReq, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposUpdate", @@ -78768,7 +78769,7 @@ func (c *Client) sendReposUpdate(ctx context.Context, request OptReposUpdateReq, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -78877,11 +78878,11 @@ func (c *Client) sendReposUpdateBranchProtection(ctx context.Context, request *R startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposUpdateBranchProtection", @@ -78894,7 +78895,7 @@ func (c *Client) sendReposUpdateBranchProtection(ctx context.Context, request *R if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -79007,11 +79008,11 @@ func (c *Client) sendReposUpdateCommitComment(ctx context.Context, request *Repo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposUpdateCommitComment", @@ -79024,7 +79025,7 @@ func (c *Client) sendReposUpdateCommitComment(ctx context.Context, request *Repo if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -79152,11 +79153,11 @@ func (c *Client) sendReposUpdateInvitation(ctx context.Context, request OptRepos startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposUpdateInvitation", @@ -79169,7 +79170,7 @@ func (c *Client) sendReposUpdateInvitation(ctx context.Context, request OptRepos if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -79288,11 +79289,11 @@ func (c *Client) sendReposUpdatePullRequestReviewProtection(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposUpdatePullRequestReviewProtection", @@ -79305,7 +79306,7 @@ func (c *Client) sendReposUpdatePullRequestReviewProtection(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -79418,11 +79419,11 @@ func (c *Client) sendReposUpdateRelease(ctx context.Context, request OptReposUpd startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposUpdateRelease", @@ -79435,7 +79436,7 @@ func (c *Client) sendReposUpdateRelease(ctx context.Context, request OptReposUpd if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -79547,11 +79548,11 @@ func (c *Client) sendReposUpdateReleaseAsset(ctx context.Context, request OptRep startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposUpdateReleaseAsset", @@ -79564,7 +79565,7 @@ func (c *Client) sendReposUpdateReleaseAsset(ctx context.Context, request OptRep if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -79682,11 +79683,11 @@ func (c *Client) sendReposUpdateStatusCheckProtection(ctx context.Context, reque startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposUpdateStatusCheckProtection", @@ -79699,7 +79700,7 @@ func (c *Client) sendReposUpdateStatusCheckProtection(ctx context.Context, reque if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -79831,11 +79832,11 @@ func (c *Client) sendReposUpdateWebhook(ctx context.Context, request OptReposUpd startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposUpdateWebhook", @@ -79848,7 +79849,7 @@ func (c *Client) sendReposUpdateWebhook(ctx context.Context, request OptReposUpd if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -79980,11 +79981,11 @@ func (c *Client) sendReposUpdateWebhookConfigForRepo(ctx context.Context, reques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposUpdateWebhookConfigForRepo", @@ -79997,7 +79998,7 @@ func (c *Client) sendReposUpdateWebhookConfigForRepo(ctx context.Context, reques if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -80135,11 +80136,11 @@ func (c *Client) sendReposUploadReleaseAsset(ctx context.Context, request *Repos startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReposUploadReleaseAsset", @@ -80152,7 +80153,7 @@ func (c *Client) sendReposUploadReleaseAsset(ctx context.Context, request *Repos if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -80300,11 +80301,11 @@ func (c *Client) sendScimDeleteUserFromOrg(ctx context.Context, params ScimDelet startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ScimDeleteUserFromOrg", @@ -80317,7 +80318,7 @@ func (c *Client) sendScimDeleteUserFromOrg(ctx context.Context, params ScimDelet if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -80426,11 +80427,11 @@ func (c *Client) sendSearchCode(ctx context.Context, params SearchCodeParams) (r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SearchCode", @@ -80443,7 +80444,7 @@ func (c *Client) sendSearchCode(ctx context.Context, params SearchCodeParams) (r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -80592,11 +80593,11 @@ func (c *Client) sendSearchCommits(ctx context.Context, params SearchCommitsPara startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SearchCommits", @@ -80609,7 +80610,7 @@ func (c *Client) sendSearchCommits(ctx context.Context, params SearchCommitsPara if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -80770,11 +80771,11 @@ func (c *Client) sendSearchIssuesAndPullRequests(ctx context.Context, params Sea startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SearchIssuesAndPullRequests", @@ -80787,7 +80788,7 @@ func (c *Client) sendSearchIssuesAndPullRequests(ctx context.Context, params Sea if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -80935,11 +80936,11 @@ func (c *Client) sendSearchLabels(ctx context.Context, params SearchLabelsParams startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SearchLabels", @@ -80952,7 +80953,7 @@ func (c *Client) sendSearchLabels(ctx context.Context, params SearchLabelsParams if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -81120,11 +81121,11 @@ func (c *Client) sendSearchRepos(ctx context.Context, params SearchReposParams) startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SearchRepos", @@ -81137,7 +81138,7 @@ func (c *Client) sendSearchRepos(ctx context.Context, params SearchReposParams) if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -81289,11 +81290,11 @@ func (c *Client) sendSearchTopics(ctx context.Context, params SearchTopicsParams startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SearchTopics", @@ -81306,7 +81307,7 @@ func (c *Client) sendSearchTopics(ctx context.Context, params SearchTopicsParams if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -81422,11 +81423,11 @@ func (c *Client) sendSearchUsers(ctx context.Context, params SearchUsersParams) startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SearchUsers", @@ -81439,7 +81440,7 @@ func (c *Client) sendSearchUsers(ctx context.Context, params SearchUsersParams) if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -81581,11 +81582,11 @@ func (c *Client) sendSecretScanningGetAlert(ctx context.Context, params SecretSc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SecretScanningGetAlert", @@ -81598,7 +81599,7 @@ func (c *Client) sendSecretScanningGetAlert(ctx context.Context, params SecretSc if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -81714,11 +81715,11 @@ func (c *Client) sendSecretScanningListAlertsForOrg(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SecretScanningListAlertsForOrg", @@ -81731,7 +81732,7 @@ func (c *Client) sendSecretScanningListAlertsForOrg(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -81878,11 +81879,11 @@ func (c *Client) sendSecretScanningListAlertsForRepo(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SecretScanningListAlertsForRepo", @@ -81895,7 +81896,7 @@ func (c *Client) sendSecretScanningListAlertsForRepo(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -82070,11 +82071,11 @@ func (c *Client) sendSecretScanningUpdateAlert(ctx context.Context, request *Sec startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SecretScanningUpdateAlert", @@ -82087,7 +82088,7 @@ func (c *Client) sendSecretScanningUpdateAlert(ctx context.Context, request *Sec if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -82223,11 +82224,11 @@ func (c *Client) sendTeamsAddMemberLegacy(ctx context.Context, params TeamsAddMe startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsAddMemberLegacy", @@ -82240,7 +82241,7 @@ func (c *Client) sendTeamsAddMemberLegacy(ctx context.Context, params TeamsAddMe if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -82367,11 +82368,11 @@ func (c *Client) sendTeamsAddOrUpdateMembershipForUserInOrg(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsAddOrUpdateMembershipForUserInOrg", @@ -82384,7 +82385,7 @@ func (c *Client) sendTeamsAddOrUpdateMembershipForUserInOrg(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -82538,11 +82539,11 @@ func (c *Client) sendTeamsAddOrUpdateMembershipForUserLegacy(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsAddOrUpdateMembershipForUserLegacy", @@ -82555,7 +82556,7 @@ func (c *Client) sendTeamsAddOrUpdateMembershipForUserLegacy(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -82668,11 +82669,11 @@ func (c *Client) sendTeamsAddOrUpdateProjectPermissionsInOrg(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsAddOrUpdateProjectPermissionsInOrg", @@ -82685,7 +82686,7 @@ func (c *Client) sendTeamsAddOrUpdateProjectPermissionsInOrg(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -82821,11 +82822,11 @@ func (c *Client) sendTeamsAddOrUpdateProjectPermissionsLegacy(ctx context.Contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsAddOrUpdateProjectPermissionsLegacy", @@ -82838,7 +82839,7 @@ func (c *Client) sendTeamsAddOrUpdateProjectPermissionsLegacy(ctx context.Contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -82958,11 +82959,11 @@ func (c *Client) sendTeamsAddOrUpdateRepoPermissionsInOrg(ctx context.Context, r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsAddOrUpdateRepoPermissionsInOrg", @@ -82975,7 +82976,7 @@ func (c *Client) sendTeamsAddOrUpdateRepoPermissionsInOrg(ctx context.Context, r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -83135,11 +83136,11 @@ func (c *Client) sendTeamsAddOrUpdateRepoPermissionsLegacy(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsAddOrUpdateRepoPermissionsLegacy", @@ -83152,7 +83153,7 @@ func (c *Client) sendTeamsAddOrUpdateRepoPermissionsLegacy(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -83267,11 +83268,11 @@ func (c *Client) sendTeamsCheckPermissionsForProjectInOrg(ctx context.Context, p startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsCheckPermissionsForProjectInOrg", @@ -83284,7 +83285,7 @@ func (c *Client) sendTeamsCheckPermissionsForProjectInOrg(ctx context.Context, p if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -83400,11 +83401,11 @@ func (c *Client) sendTeamsCheckPermissionsForProjectLegacy(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsCheckPermissionsForProjectLegacy", @@ -83417,7 +83418,7 @@ func (c *Client) sendTeamsCheckPermissionsForProjectLegacy(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -83515,11 +83516,11 @@ func (c *Client) sendTeamsCheckPermissionsForRepoInOrg(ctx context.Context, para startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsCheckPermissionsForRepoInOrg", @@ -83532,7 +83533,7 @@ func (c *Client) sendTeamsCheckPermissionsForRepoInOrg(ctx context.Context, para if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -83669,11 +83670,11 @@ func (c *Client) sendTeamsCheckPermissionsForRepoLegacy(ctx context.Context, par startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsCheckPermissionsForRepoLegacy", @@ -83686,7 +83687,7 @@ func (c *Client) sendTeamsCheckPermissionsForRepoLegacy(ctx context.Context, par if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -83811,11 +83812,11 @@ func (c *Client) sendTeamsCreate(ctx context.Context, request *TeamsCreateReq, p startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsCreate", @@ -83828,7 +83829,7 @@ func (c *Client) sendTeamsCreate(ctx context.Context, request *TeamsCreateReq, p if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -83913,11 +83914,11 @@ func (c *Client) sendTeamsCreateDiscussionCommentInOrg(ctx context.Context, requ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsCreateDiscussionCommentInOrg", @@ -83930,7 +83931,7 @@ func (c *Client) sendTeamsCreateDiscussionCommentInOrg(ctx context.Context, requ if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -84056,11 +84057,11 @@ func (c *Client) sendTeamsCreateDiscussionCommentLegacy(ctx context.Context, req startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsCreateDiscussionCommentLegacy", @@ -84073,7 +84074,7 @@ func (c *Client) sendTeamsCreateDiscussionCommentLegacy(ctx context.Context, req if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -84177,11 +84178,11 @@ func (c *Client) sendTeamsCreateDiscussionInOrg(ctx context.Context, request *Te startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsCreateDiscussionInOrg", @@ -84194,7 +84195,7 @@ func (c *Client) sendTeamsCreateDiscussionInOrg(ctx context.Context, request *Te if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -84301,11 +84302,11 @@ func (c *Client) sendTeamsCreateDiscussionLegacy(ctx context.Context, request *T startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsCreateDiscussionLegacy", @@ -84318,7 +84319,7 @@ func (c *Client) sendTeamsCreateDiscussionLegacy(ctx context.Context, request *T if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -84400,11 +84401,11 @@ func (c *Client) sendTeamsCreateOrUpdateIdpGroupConnectionsInOrg(ctx context.Con startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsCreateOrUpdateIdpGroupConnectionsInOrg", @@ -84417,7 +84418,7 @@ func (c *Client) sendTeamsCreateOrUpdateIdpGroupConnectionsInOrg(ctx context.Con if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -84531,11 +84532,11 @@ func (c *Client) sendTeamsCreateOrUpdateIdpGroupConnectionsLegacy(ctx context.Co startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsCreateOrUpdateIdpGroupConnectionsLegacy", @@ -84548,7 +84549,7 @@ func (c *Client) sendTeamsCreateOrUpdateIdpGroupConnectionsLegacy(ctx context.Co if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -84626,11 +84627,11 @@ func (c *Client) sendTeamsDeleteDiscussionCommentInOrg(ctx context.Context, para startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsDeleteDiscussionCommentInOrg", @@ -84643,7 +84644,7 @@ func (c *Client) sendTeamsDeleteDiscussionCommentInOrg(ctx context.Context, para if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -84777,11 +84778,11 @@ func (c *Client) sendTeamsDeleteDiscussionCommentLegacy(ctx context.Context, par startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsDeleteDiscussionCommentLegacy", @@ -84794,7 +84795,7 @@ func (c *Client) sendTeamsDeleteDiscussionCommentLegacy(ctx context.Context, par if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -84906,11 +84907,11 @@ func (c *Client) sendTeamsDeleteDiscussionInOrg(ctx context.Context, params Team startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsDeleteDiscussionInOrg", @@ -84923,7 +84924,7 @@ func (c *Client) sendTeamsDeleteDiscussionInOrg(ctx context.Context, params Team if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -85038,11 +85039,11 @@ func (c *Client) sendTeamsDeleteDiscussionLegacy(ctx context.Context, params Tea startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsDeleteDiscussionLegacy", @@ -85055,7 +85056,7 @@ func (c *Client) sendTeamsDeleteDiscussionLegacy(ctx context.Context, params Tea if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -85149,11 +85150,11 @@ func (c *Client) sendTeamsDeleteInOrg(ctx context.Context, params TeamsDeleteInO startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsDeleteInOrg", @@ -85166,7 +85167,7 @@ func (c *Client) sendTeamsDeleteInOrg(ctx context.Context, params TeamsDeleteInO if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -85263,11 +85264,11 @@ func (c *Client) sendTeamsDeleteLegacy(ctx context.Context, params TeamsDeleteLe startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsDeleteLegacy", @@ -85280,7 +85281,7 @@ func (c *Client) sendTeamsDeleteLegacy(ctx context.Context, params TeamsDeleteLe if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -85353,11 +85354,11 @@ func (c *Client) sendTeamsGetByName(ctx context.Context, params TeamsGetByNamePa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsGetByName", @@ -85370,7 +85371,7 @@ func (c *Client) sendTeamsGetByName(ctx context.Context, params TeamsGetByNamePa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -85463,11 +85464,11 @@ func (c *Client) sendTeamsGetDiscussionCommentInOrg(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsGetDiscussionCommentInOrg", @@ -85480,7 +85481,7 @@ func (c *Client) sendTeamsGetDiscussionCommentInOrg(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -85614,11 +85615,11 @@ func (c *Client) sendTeamsGetDiscussionCommentLegacy(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsGetDiscussionCommentLegacy", @@ -85631,7 +85632,7 @@ func (c *Client) sendTeamsGetDiscussionCommentLegacy(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -85743,11 +85744,11 @@ func (c *Client) sendTeamsGetDiscussionInOrg(ctx context.Context, params TeamsGe startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsGetDiscussionInOrg", @@ -85760,7 +85761,7 @@ func (c *Client) sendTeamsGetDiscussionInOrg(ctx context.Context, params TeamsGe if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -85875,11 +85876,11 @@ func (c *Client) sendTeamsGetDiscussionLegacy(ctx context.Context, params TeamsG startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsGetDiscussionLegacy", @@ -85892,7 +85893,7 @@ func (c *Client) sendTeamsGetDiscussionLegacy(ctx context.Context, params TeamsG if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -85986,11 +85987,11 @@ func (c *Client) sendTeamsGetLegacy(ctx context.Context, params TeamsGetLegacyPa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsGetLegacy", @@ -86003,7 +86004,7 @@ func (c *Client) sendTeamsGetLegacy(ctx context.Context, params TeamsGetLegacyPa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -86080,11 +86081,11 @@ func (c *Client) sendTeamsGetMemberLegacy(ctx context.Context, params TeamsGetMe startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsGetMemberLegacy", @@ -86097,7 +86098,7 @@ func (c *Client) sendTeamsGetMemberLegacy(ctx context.Context, params TeamsGetMe if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -86194,11 +86195,11 @@ func (c *Client) sendTeamsGetMembershipForUserInOrg(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsGetMembershipForUserInOrg", @@ -86211,7 +86212,7 @@ func (c *Client) sendTeamsGetMembershipForUserInOrg(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -86330,11 +86331,11 @@ func (c *Client) sendTeamsGetMembershipForUserLegacy(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsGetMembershipForUserLegacy", @@ -86347,7 +86348,7 @@ func (c *Client) sendTeamsGetMembershipForUserLegacy(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -86437,11 +86438,11 @@ func (c *Client) sendTeamsList(ctx context.Context, params TeamsListParams) (res startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsList", @@ -86454,7 +86455,7 @@ func (c *Client) sendTeamsList(ctx context.Context, params TeamsListParams) (res if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -86566,11 +86567,11 @@ func (c *Client) sendTeamsListChildInOrg(ctx context.Context, params TeamsListCh startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsListChildInOrg", @@ -86583,7 +86584,7 @@ func (c *Client) sendTeamsListChildInOrg(ctx context.Context, params TeamsListCh if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -86716,11 +86717,11 @@ func (c *Client) sendTeamsListChildLegacy(ctx context.Context, params TeamsListC startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsListChildLegacy", @@ -86733,7 +86734,7 @@ func (c *Client) sendTeamsListChildLegacy(ctx context.Context, params TeamsListC if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -86846,11 +86847,11 @@ func (c *Client) sendTeamsListDiscussionCommentsInOrg(ctx context.Context, param startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsListDiscussionCommentsInOrg", @@ -86863,7 +86864,7 @@ func (c *Client) sendTeamsListDiscussionCommentsInOrg(ctx context.Context, param if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -87034,11 +87035,11 @@ func (c *Client) sendTeamsListDiscussionCommentsLegacy(ctx context.Context, para startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsListDiscussionCommentsLegacy", @@ -87051,7 +87052,7 @@ func (c *Client) sendTeamsListDiscussionCommentsLegacy(ctx context.Context, para if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -87200,11 +87201,11 @@ func (c *Client) sendTeamsListDiscussionsInOrg(ctx context.Context, params Teams startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsListDiscussionsInOrg", @@ -87217,7 +87218,7 @@ func (c *Client) sendTeamsListDiscussionsInOrg(ctx context.Context, params Teams if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -87386,11 +87387,11 @@ func (c *Client) sendTeamsListDiscussionsLegacy(ctx context.Context, params Team startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsListDiscussionsLegacy", @@ -87403,7 +87404,7 @@ func (c *Client) sendTeamsListDiscussionsLegacy(ctx context.Context, params Team if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -87533,11 +87534,11 @@ func (c *Client) sendTeamsListForAuthenticatedUser(ctx context.Context, params T startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsListForAuthenticatedUser", @@ -87550,7 +87551,7 @@ func (c *Client) sendTeamsListForAuthenticatedUser(ctx context.Context, params T if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -87649,11 +87650,11 @@ func (c *Client) sendTeamsListIdpGroupsForLegacy(ctx context.Context, params Tea startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsListIdpGroupsForLegacy", @@ -87666,7 +87667,7 @@ func (c *Client) sendTeamsListIdpGroupsForLegacy(ctx context.Context, params Tea if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -87744,11 +87745,11 @@ func (c *Client) sendTeamsListIdpGroupsForOrg(ctx context.Context, params TeamsL startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsListIdpGroupsForOrg", @@ -87761,7 +87762,7 @@ func (c *Client) sendTeamsListIdpGroupsForOrg(ctx context.Context, params TeamsL if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -87876,11 +87877,11 @@ func (c *Client) sendTeamsListIdpGroupsInOrg(ctx context.Context, params TeamsLi startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsListIdpGroupsInOrg", @@ -87893,7 +87894,7 @@ func (c *Client) sendTeamsListIdpGroupsInOrg(ctx context.Context, params TeamsLi if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -87985,11 +87986,11 @@ func (c *Client) sendTeamsListMembersInOrg(ctx context.Context, params TeamsList startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsListMembersInOrg", @@ -88002,7 +88003,7 @@ func (c *Client) sendTeamsListMembersInOrg(ctx context.Context, params TeamsList if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -88153,11 +88154,11 @@ func (c *Client) sendTeamsListMembersLegacy(ctx context.Context, params TeamsLis startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsListMembersLegacy", @@ -88170,7 +88171,7 @@ func (c *Client) sendTeamsListMembersLegacy(ctx context.Context, params TeamsLis if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -88302,11 +88303,11 @@ func (c *Client) sendTeamsListPendingInvitationsInOrg(ctx context.Context, param startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsListPendingInvitationsInOrg", @@ -88319,7 +88320,7 @@ func (c *Client) sendTeamsListPendingInvitationsInOrg(ctx context.Context, param if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -88456,11 +88457,11 @@ func (c *Client) sendTeamsListPendingInvitationsLegacy(ctx context.Context, para startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsListPendingInvitationsLegacy", @@ -88473,7 +88474,7 @@ func (c *Client) sendTeamsListPendingInvitationsLegacy(ctx context.Context, para if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -88585,11 +88586,11 @@ func (c *Client) sendTeamsListProjectsInOrg(ctx context.Context, params TeamsLis startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsListProjectsInOrg", @@ -88602,7 +88603,7 @@ func (c *Client) sendTeamsListProjectsInOrg(ctx context.Context, params TeamsLis if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -88736,11 +88737,11 @@ func (c *Client) sendTeamsListProjectsLegacy(ctx context.Context, params TeamsLi startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsListProjectsLegacy", @@ -88753,7 +88754,7 @@ func (c *Client) sendTeamsListProjectsLegacy(ctx context.Context, params TeamsLi if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -88865,11 +88866,11 @@ func (c *Client) sendTeamsListReposInOrg(ctx context.Context, params TeamsListRe startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsListReposInOrg", @@ -88882,7 +88883,7 @@ func (c *Client) sendTeamsListReposInOrg(ctx context.Context, params TeamsListRe if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -89015,11 +89016,11 @@ func (c *Client) sendTeamsListReposLegacy(ctx context.Context, params TeamsListR startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsListReposLegacy", @@ -89032,7 +89033,7 @@ func (c *Client) sendTeamsListReposLegacy(ctx context.Context, params TeamsListR if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -89162,11 +89163,11 @@ func (c *Client) sendTeamsRemoveMemberLegacy(ctx context.Context, params TeamsRe startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsRemoveMemberLegacy", @@ -89179,7 +89180,7 @@ func (c *Client) sendTeamsRemoveMemberLegacy(ctx context.Context, params TeamsRe if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -89283,11 +89284,11 @@ func (c *Client) sendTeamsRemoveMembershipForUserInOrg(ctx context.Context, para startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsRemoveMembershipForUserInOrg", @@ -89300,7 +89301,7 @@ func (c *Client) sendTeamsRemoveMembershipForUserInOrg(ctx context.Context, para if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -89426,11 +89427,11 @@ func (c *Client) sendTeamsRemoveMembershipForUserLegacy(ctx context.Context, par startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsRemoveMembershipForUserLegacy", @@ -89443,7 +89444,7 @@ func (c *Client) sendTeamsRemoveMembershipForUserLegacy(ctx context.Context, par if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -89538,11 +89539,11 @@ func (c *Client) sendTeamsRemoveProjectInOrg(ctx context.Context, params TeamsRe startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsRemoveProjectInOrg", @@ -89555,7 +89556,7 @@ func (c *Client) sendTeamsRemoveProjectInOrg(ctx context.Context, params TeamsRe if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -89672,11 +89673,11 @@ func (c *Client) sendTeamsRemoveProjectLegacy(ctx context.Context, params TeamsR startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsRemoveProjectLegacy", @@ -89689,7 +89690,7 @@ func (c *Client) sendTeamsRemoveProjectLegacy(ctx context.Context, params TeamsR if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -89784,11 +89785,11 @@ func (c *Client) sendTeamsRemoveRepoInOrg(ctx context.Context, params TeamsRemov startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsRemoveRepoInOrg", @@ -89801,7 +89802,7 @@ func (c *Client) sendTeamsRemoveRepoInOrg(ctx context.Context, params TeamsRemov if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -89937,11 +89938,11 @@ func (c *Client) sendTeamsRemoveRepoLegacy(ctx context.Context, params TeamsRemo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsRemoveRepoLegacy", @@ -89954,7 +89955,7 @@ func (c *Client) sendTeamsRemoveRepoLegacy(ctx context.Context, params TeamsRemo if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -90066,11 +90067,11 @@ func (c *Client) sendTeamsUpdateDiscussionCommentInOrg(ctx context.Context, requ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsUpdateDiscussionCommentInOrg", @@ -90083,7 +90084,7 @@ func (c *Client) sendTeamsUpdateDiscussionCommentInOrg(ctx context.Context, requ if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -90220,11 +90221,11 @@ func (c *Client) sendTeamsUpdateDiscussionCommentLegacy(ctx context.Context, req startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsUpdateDiscussionCommentLegacy", @@ -90237,7 +90238,7 @@ func (c *Client) sendTeamsUpdateDiscussionCommentLegacy(ctx context.Context, req if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -90353,11 +90354,11 @@ func (c *Client) sendTeamsUpdateDiscussionInOrg(ctx context.Context, request Opt startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsUpdateDiscussionInOrg", @@ -90370,7 +90371,7 @@ func (c *Client) sendTeamsUpdateDiscussionInOrg(ctx context.Context, request Opt if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -90489,11 +90490,11 @@ func (c *Client) sendTeamsUpdateDiscussionLegacy(ctx context.Context, request Op startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsUpdateDiscussionLegacy", @@ -90506,7 +90507,7 @@ func (c *Client) sendTeamsUpdateDiscussionLegacy(ctx context.Context, request Op if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -90617,11 +90618,11 @@ func (c *Client) sendTeamsUpdateInOrg(ctx context.Context, request OptTeamsUpdat startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsUpdateInOrg", @@ -90634,7 +90635,7 @@ func (c *Client) sendTeamsUpdateInOrg(ctx context.Context, request OptTeamsUpdat if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -90742,11 +90743,11 @@ func (c *Client) sendTeamsUpdateLegacy(ctx context.Context, request *TeamsUpdate startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TeamsUpdateLegacy", @@ -90759,7 +90760,7 @@ func (c *Client) sendTeamsUpdateLegacy(ctx context.Context, request *TeamsUpdate if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -90849,11 +90850,11 @@ func (c *Client) sendUsersAddEmailForAuthenticated(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "UsersAddEmailForAuthenticated", @@ -90866,7 +90867,7 @@ func (c *Client) sendUsersAddEmailForAuthenticated(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -90922,11 +90923,11 @@ func (c *Client) sendUsersBlock(ctx context.Context, params UsersBlockParams) (r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "UsersBlock", @@ -90939,7 +90940,7 @@ func (c *Client) sendUsersBlock(ctx context.Context, params UsersBlockParams) (r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -91010,11 +91011,11 @@ func (c *Client) sendUsersCheckBlocked(ctx context.Context, params UsersCheckBlo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "UsersCheckBlocked", @@ -91027,7 +91028,7 @@ func (c *Client) sendUsersCheckBlocked(ctx context.Context, params UsersCheckBlo if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -91098,11 +91099,11 @@ func (c *Client) sendUsersCheckFollowingForUser(ctx context.Context, params User startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "UsersCheckFollowingForUser", @@ -91115,7 +91116,7 @@ func (c *Client) sendUsersCheckFollowingForUser(ctx context.Context, params User if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -91205,11 +91206,11 @@ func (c *Client) sendUsersCheckPersonIsFollowedByAuthenticated(ctx context.Conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "UsersCheckPersonIsFollowedByAuthenticated", @@ -91222,7 +91223,7 @@ func (c *Client) sendUsersCheckPersonIsFollowedByAuthenticated(ctx context.Conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -91295,11 +91296,11 @@ func (c *Client) sendUsersCreateGpgKeyForAuthenticated(ctx context.Context, requ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "UsersCreateGpgKeyForAuthenticated", @@ -91312,7 +91313,7 @@ func (c *Client) sendUsersCreateGpgKeyForAuthenticated(ctx context.Context, requ if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -91379,11 +91380,11 @@ func (c *Client) sendUsersCreatePublicSSHKeyForAuthenticated(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "UsersCreatePublicSSHKeyForAuthenticated", @@ -91396,7 +91397,7 @@ func (c *Client) sendUsersCreatePublicSSHKeyForAuthenticated(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -91468,11 +91469,11 @@ func (c *Client) sendUsersDeleteEmailForAuthenticated(ctx context.Context, reque startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "UsersDeleteEmailForAuthenticated", @@ -91485,7 +91486,7 @@ func (c *Client) sendUsersDeleteEmailForAuthenticated(ctx context.Context, reque if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -91543,11 +91544,11 @@ func (c *Client) sendUsersDeleteGpgKeyForAuthenticated(ctx context.Context, para startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "UsersDeleteGpgKeyForAuthenticated", @@ -91560,7 +91561,7 @@ func (c *Client) sendUsersDeleteGpgKeyForAuthenticated(ctx context.Context, para if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -91633,11 +91634,11 @@ func (c *Client) sendUsersDeletePublicSSHKeyForAuthenticated(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "UsersDeletePublicSSHKeyForAuthenticated", @@ -91650,7 +91651,7 @@ func (c *Client) sendUsersDeletePublicSSHKeyForAuthenticated(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -91725,11 +91726,11 @@ func (c *Client) sendUsersFollow(ctx context.Context, params UsersFollowParams) startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "UsersFollow", @@ -91742,7 +91743,7 @@ func (c *Client) sendUsersFollow(ctx context.Context, params UsersFollowParams) if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -91816,11 +91817,11 @@ func (c *Client) sendUsersGetAuthenticated(ctx context.Context) (res UsersGetAut startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "UsersGetAuthenticated", @@ -91833,7 +91834,7 @@ func (c *Client) sendUsersGetAuthenticated(ctx context.Context) (res UsersGetAut if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -91900,11 +91901,11 @@ func (c *Client) sendUsersGetByUsername(ctx context.Context, params UsersGetByUs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "UsersGetByUsername", @@ -91917,7 +91918,7 @@ func (c *Client) sendUsersGetByUsername(ctx context.Context, params UsersGetByUs if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -91997,11 +91998,11 @@ func (c *Client) sendUsersGetContextForUser(ctx context.Context, params UsersGet startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "UsersGetContextForUser", @@ -92014,7 +92015,7 @@ func (c *Client) sendUsersGetContextForUser(ctx context.Context, params UsersGet if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -92126,11 +92127,11 @@ func (c *Client) sendUsersGetGpgKeyForAuthenticated(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "UsersGetGpgKeyForAuthenticated", @@ -92143,7 +92144,7 @@ func (c *Client) sendUsersGetGpgKeyForAuthenticated(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -92216,11 +92217,11 @@ func (c *Client) sendUsersGetPublicSSHKeyForAuthenticated(ctx context.Context, p startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "UsersGetPublicSSHKeyForAuthenticated", @@ -92233,7 +92234,7 @@ func (c *Client) sendUsersGetPublicSSHKeyForAuthenticated(ctx context.Context, p if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -92308,11 +92309,11 @@ func (c *Client) sendUsersList(ctx context.Context, params UsersListParams) (res startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "UsersList", @@ -92325,7 +92326,7 @@ func (c *Client) sendUsersList(ctx context.Context, params UsersListParams) (res if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -92416,11 +92417,11 @@ func (c *Client) sendUsersListBlockedByAuthenticated(ctx context.Context) (res U startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "UsersListBlockedByAuthenticated", @@ -92433,7 +92434,7 @@ func (c *Client) sendUsersListBlockedByAuthenticated(ctx context.Context) (res U if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -92487,11 +92488,11 @@ func (c *Client) sendUsersListEmailsForAuthenticated(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "UsersListEmailsForAuthenticated", @@ -92504,7 +92505,7 @@ func (c *Client) sendUsersListEmailsForAuthenticated(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -92595,11 +92596,11 @@ func (c *Client) sendUsersListFollowedByAuthenticated(ctx context.Context, param startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "UsersListFollowedByAuthenticated", @@ -92612,7 +92613,7 @@ func (c *Client) sendUsersListFollowedByAuthenticated(ctx context.Context, param if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -92703,11 +92704,11 @@ func (c *Client) sendUsersListFollowersForAuthenticatedUser(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "UsersListFollowersForAuthenticatedUser", @@ -92720,7 +92721,7 @@ func (c *Client) sendUsersListFollowersForAuthenticatedUser(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -92811,11 +92812,11 @@ func (c *Client) sendUsersListFollowersForUser(ctx context.Context, params Users startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "UsersListFollowersForUser", @@ -92828,7 +92829,7 @@ func (c *Client) sendUsersListFollowersForUser(ctx context.Context, params Users if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -92938,11 +92939,11 @@ func (c *Client) sendUsersListFollowingForUser(ctx context.Context, params Users startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "UsersListFollowingForUser", @@ -92955,7 +92956,7 @@ func (c *Client) sendUsersListFollowingForUser(ctx context.Context, params Users if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -93067,11 +93068,11 @@ func (c *Client) sendUsersListGpgKeysForAuthenticated(ctx context.Context, param startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "UsersListGpgKeysForAuthenticated", @@ -93084,7 +93085,7 @@ func (c *Client) sendUsersListGpgKeysForAuthenticated(ctx context.Context, param if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -93175,11 +93176,11 @@ func (c *Client) sendUsersListGpgKeysForUser(ctx context.Context, params UsersLi startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "UsersListGpgKeysForUser", @@ -93192,7 +93193,7 @@ func (c *Client) sendUsersListGpgKeysForUser(ctx context.Context, params UsersLi if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -93305,11 +93306,11 @@ func (c *Client) sendUsersListPublicEmailsForAuthenticated(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "UsersListPublicEmailsForAuthenticated", @@ -93322,7 +93323,7 @@ func (c *Client) sendUsersListPublicEmailsForAuthenticated(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -93413,11 +93414,11 @@ func (c *Client) sendUsersListPublicKeysForUser(ctx context.Context, params User startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "UsersListPublicKeysForUser", @@ -93430,7 +93431,7 @@ func (c *Client) sendUsersListPublicKeysForUser(ctx context.Context, params User if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -93542,11 +93543,11 @@ func (c *Client) sendUsersListPublicSSHKeysForAuthenticated(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "UsersListPublicSSHKeysForAuthenticated", @@ -93559,7 +93560,7 @@ func (c *Client) sendUsersListPublicSSHKeysForAuthenticated(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -93659,11 +93660,11 @@ func (c *Client) sendUsersSetPrimaryEmailVisibilityForAuthenticated(ctx context. startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "UsersSetPrimaryEmailVisibilityForAuthenticated", @@ -93676,7 +93677,7 @@ func (c *Client) sendUsersSetPrimaryEmailVisibilityForAuthenticated(ctx context. if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -93732,11 +93733,11 @@ func (c *Client) sendUsersUnblock(ctx context.Context, params UsersUnblockParams startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "UsersUnblock", @@ -93749,7 +93750,7 @@ func (c *Client) sendUsersUnblock(ctx context.Context, params UsersUnblockParams if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -93821,11 +93822,11 @@ func (c *Client) sendUsersUnfollow(ctx context.Context, params UsersUnfollowPara startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "UsersUnfollow", @@ -93838,7 +93839,7 @@ func (c *Client) sendUsersUnfollow(ctx context.Context, params UsersUnfollowPara if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -93911,11 +93912,11 @@ func (c *Client) sendUsersUpdateAuthenticated(ctx context.Context, request OptUs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "UsersUpdateAuthenticated", @@ -93928,7 +93929,7 @@ func (c *Client) sendUsersUpdateAuthenticated(ctx context.Context, request OptUs if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() diff --git a/examples/ex_github/oas_handlers_gen.go b/examples/ex_github/oas_handlers_gen.go index e88e1e890..4412acf90 100644 --- a/examples/ex_github/oas_handlers_gen.go +++ b/examples/ex_github/oas_handlers_gen.go @@ -9,6 +9,7 @@ import ( "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" semconv "go.opentelemetry.io/otel/semconv/v1.17.0" "go.opentelemetry.io/otel/trace" @@ -48,17 +49,17 @@ func (s *Server) handleActionsAddRepoAccessToSelfHostedRunnerGroupInOrgRequest(a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -162,17 +163,17 @@ func (s *Server) handleActionsAddSelectedRepoToOrgSecretRequest(args [3]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -277,17 +278,17 @@ func (s *Server) handleActionsAddSelfHostedRunnerToGroupForOrgRequest(args [3]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -391,17 +392,17 @@ func (s *Server) handleActionsApproveWorkflowRunRequest(args [3]string, argsEsca startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -503,17 +504,17 @@ func (s *Server) handleActionsCancelWorkflowRunRequest(args [3]string, argsEscap startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -666,17 +667,17 @@ func (s *Server) handleActionsCreateOrUpdateEnvironmentSecretRequest(args [3]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -844,17 +845,17 @@ func (s *Server) handleActionsCreateOrUpdateOrgSecretRequest(args [2]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1018,17 +1019,17 @@ func (s *Server) handleActionsCreateOrUpdateRepoSecretRequest(args [3]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1150,17 +1151,17 @@ func (s *Server) handleActionsCreateRegistrationTokenForOrgRequest(args [1]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1260,17 +1261,17 @@ func (s *Server) handleActionsCreateRegistrationTokenForRepoRequest(args [2]stri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1375,17 +1376,17 @@ func (s *Server) handleActionsCreateRemoveTokenForOrgRequest(args [1]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1485,17 +1486,17 @@ func (s *Server) handleActionsCreateRemoveTokenForRepoRequest(args [2]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1595,17 +1596,17 @@ func (s *Server) handleActionsCreateSelfHostedRunnerGroupForOrgRequest(args [1]s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1714,17 +1715,17 @@ func (s *Server) handleActionsDeleteArtifactRequest(args [3]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1826,17 +1827,17 @@ func (s *Server) handleActionsDeleteEnvironmentSecretRequest(args [3]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1938,17 +1939,17 @@ func (s *Server) handleActionsDeleteOrgSecretRequest(args [2]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2046,17 +2047,17 @@ func (s *Server) handleActionsDeleteRepoSecretRequest(args [3]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2158,17 +2159,17 @@ func (s *Server) handleActionsDeleteSelfHostedRunnerFromOrgRequest(args [2]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2267,17 +2268,17 @@ func (s *Server) handleActionsDeleteSelfHostedRunnerFromRepoRequest(args [3]stri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2381,17 +2382,17 @@ func (s *Server) handleActionsDeleteSelfHostedRunnerGroupFromOrgRequest(args [2] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2491,17 +2492,17 @@ func (s *Server) handleActionsDeleteWorkflowRunRequest(args [3]string, argsEscap startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2603,17 +2604,17 @@ func (s *Server) handleActionsDeleteWorkflowRunLogsRequest(args [3]string, argsE startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2718,17 +2719,17 @@ func (s *Server) handleActionsDisableSelectedRepositoryGithubActionsOrganization startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2830,17 +2831,17 @@ func (s *Server) handleActionsDownloadArtifactRequest(args [4]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2952,17 +2953,17 @@ func (s *Server) handleActionsDownloadJobLogsForWorkflowRunRequest(args [3]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -3068,17 +3069,17 @@ func (s *Server) handleActionsDownloadWorkflowRunLogsRequest(args [3]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -3183,17 +3184,17 @@ func (s *Server) handleActionsEnableSelectedRepositoryGithubActionsOrganizationR startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -3294,17 +3295,17 @@ func (s *Server) handleActionsGetAllowedActionsOrganizationRequest(args [1]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -3401,17 +3402,17 @@ func (s *Server) handleActionsGetAllowedActionsRepositoryRequest(args [2]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -3509,17 +3510,17 @@ func (s *Server) handleActionsGetArtifactRequest(args [3]string, argsEscaped boo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -3622,17 +3623,17 @@ func (s *Server) handleActionsGetEnvironmentPublicKeyRequest(args [2]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -3730,17 +3731,17 @@ func (s *Server) handleActionsGetEnvironmentSecretRequest(args [3]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -3842,17 +3843,17 @@ func (s *Server) handleActionsGetGithubActionsPermissionsOrganizationRequest(arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -3947,17 +3948,17 @@ func (s *Server) handleActionsGetGithubActionsPermissionsRepositoryRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -4055,17 +4056,17 @@ func (s *Server) handleActionsGetJobForWorkflowRunRequest(args [3]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -4168,17 +4169,17 @@ func (s *Server) handleActionsGetOrgPublicKeyRequest(args [1]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -4272,17 +4273,17 @@ func (s *Server) handleActionsGetOrgSecretRequest(args [2]string, argsEscaped bo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -4381,17 +4382,17 @@ func (s *Server) handleActionsGetRepoPublicKeyRequest(args [2]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -4489,17 +4490,17 @@ func (s *Server) handleActionsGetRepoSecretRequest(args [3]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -4601,17 +4602,17 @@ func (s *Server) handleActionsGetReviewsForRunRequest(args [3]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -4712,17 +4713,17 @@ func (s *Server) handleActionsGetSelfHostedRunnerForOrgRequest(args [2]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -4820,17 +4821,17 @@ func (s *Server) handleActionsGetSelfHostedRunnerForRepoRequest(args [3]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -4934,17 +4935,17 @@ func (s *Server) handleActionsGetSelfHostedRunnerGroupForOrgRequest(args [2]stri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -5042,17 +5043,17 @@ func (s *Server) handleActionsGetWorkflowRunRequest(args [3]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -5161,17 +5162,17 @@ func (s *Server) handleActionsGetWorkflowRunUsageRequest(args [3]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -5273,17 +5274,17 @@ func (s *Server) handleActionsListArtifactsForRepoRequest(args [2]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -5389,17 +5390,17 @@ func (s *Server) handleActionsListEnvironmentSecretsRequest(args [2]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -5507,17 +5508,17 @@ func (s *Server) handleActionsListJobsForWorkflowRunRequest(args [3]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -5631,17 +5632,17 @@ func (s *Server) handleActionsListOrgSecretsRequest(args [1]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -5745,17 +5746,17 @@ func (s *Server) handleActionsListRepoAccessToSelfHostedRunnerGroupInOrgRequest( startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -5861,17 +5862,17 @@ func (s *Server) handleActionsListRepoSecretsRequest(args [2]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -5977,17 +5978,17 @@ func (s *Server) handleActionsListRepoWorkflowsRequest(args [2]string, argsEscap startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -6092,17 +6093,17 @@ func (s *Server) handleActionsListRunnerApplicationsForOrgRequest(args [1]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -6195,17 +6196,17 @@ func (s *Server) handleActionsListRunnerApplicationsForRepoRequest(args [2]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -6304,17 +6305,17 @@ func (s *Server) handleActionsListSelectedReposForOrgSecretRequest(args [2]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -6423,17 +6424,17 @@ func (s *Server) handleActionsListSelectedRepositoriesEnabledGithubActionsOrgani startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -6537,17 +6538,17 @@ func (s *Server) handleActionsListSelfHostedRunnerGroupsForOrgRequest(args [1]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -6648,17 +6649,17 @@ func (s *Server) handleActionsListSelfHostedRunnersForOrgRequest(args [1]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -6759,17 +6760,17 @@ func (s *Server) handleActionsListSelfHostedRunnersForRepoRequest(args [2]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -6877,17 +6878,17 @@ func (s *Server) handleActionsListSelfHostedRunnersInGroupForOrgRequest(args [2] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -6993,17 +6994,17 @@ func (s *Server) handleActionsListWorkflowRunArtifactsRequest(args [3]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -7116,17 +7117,17 @@ func (s *Server) handleActionsListWorkflowRunsForRepoRequest(args [2]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -7257,17 +7258,17 @@ func (s *Server) handleActionsReRunWorkflowRequest(args [3]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -7374,17 +7375,17 @@ func (s *Server) handleActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrgReques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -7488,17 +7489,17 @@ func (s *Server) handleActionsRemoveSelectedRepoFromOrgSecretRequest(args [3]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -7603,17 +7604,17 @@ func (s *Server) handleActionsRemoveSelfHostedRunnerFromGroupForOrgRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -7715,17 +7716,17 @@ func (s *Server) handleActionsRetryWorkflowRequest(args [3]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -7826,17 +7827,17 @@ func (s *Server) handleActionsReviewPendingDeploymentsForRunRequest(args [3]stri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -7961,17 +7962,17 @@ func (s *Server) handleActionsSetAllowedActionsOrganizationRequest(args [1]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -8087,17 +8088,17 @@ func (s *Server) handleActionsSetAllowedActionsRepositoryRequest(args [2]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -8213,17 +8214,17 @@ func (s *Server) handleActionsSetGithubActionsPermissionsOrganizationRequest(arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -8336,17 +8337,17 @@ func (s *Server) handleActionsSetGithubActionsPermissionsRepositoryRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -8462,17 +8463,17 @@ func (s *Server) handleActionsSetRepoAccessToSelfHostedRunnerGroupInOrgRequest(a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -8587,17 +8588,17 @@ func (s *Server) handleActionsSetSelectedReposForOrgSecretRequest(args [2]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -8713,17 +8714,17 @@ func (s *Server) handleActionsSetSelectedRepositoriesEnabledGithubActionsOrganiz startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -8834,17 +8835,17 @@ func (s *Server) handleActionsSetSelfHostedRunnersInGroupForOrgRequest(args [2]s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -8959,17 +8960,17 @@ func (s *Server) handleActionsUpdateSelfHostedRunnerGroupForOrgRequest(args [2]s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -9080,17 +9081,17 @@ func (s *Server) handleActivityCheckRepoIsStarredByAuthenticatedUserRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -9188,17 +9189,17 @@ func (s *Server) handleActivityDeleteRepoSubscriptionRequest(args [2]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -9298,17 +9299,17 @@ func (s *Server) handleActivityDeleteThreadSubscriptionRequest(args [1]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -9414,17 +9415,17 @@ func (s *Server) handleActivityGetFeedsRequest(args [0]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -9497,17 +9498,17 @@ func (s *Server) handleActivityGetRepoSubscriptionRequest(args [2]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -9603,17 +9604,17 @@ func (s *Server) handleActivityGetThreadRequest(args [1]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -9708,17 +9709,17 @@ func (s *Server) handleActivityGetThreadSubscriptionForAuthenticatedUserRequest( startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -9811,17 +9812,17 @@ func (s *Server) handleActivityListEventsForAuthenticatedUserRequest(args [1]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -9921,17 +9922,17 @@ func (s *Server) handleActivityListNotificationsForAuthenticatedUserRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -10043,17 +10044,17 @@ func (s *Server) handleActivityListOrgEventsForAuthenticatedUserRequest(args [2] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -10158,17 +10159,17 @@ func (s *Server) handleActivityListPublicEventsRequest(args [0]string, argsEscap startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -10264,17 +10265,17 @@ func (s *Server) handleActivityListPublicEventsForRepoNetworkRequest(args [2]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -10378,17 +10379,17 @@ func (s *Server) handleActivityListPublicEventsForUserRequest(args [1]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -10488,17 +10489,17 @@ func (s *Server) handleActivityListPublicOrgEventsRequest(args [1]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -10600,17 +10601,17 @@ func (s *Server) handleActivityListReceivedEventsForUserRequest(args [1]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -10710,17 +10711,17 @@ func (s *Server) handleActivityListReceivedPublicEventsForUserRequest(args [1]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -10820,17 +10821,17 @@ func (s *Server) handleActivityListRepoEventsRequest(args [2]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -10934,17 +10935,17 @@ func (s *Server) handleActivityListRepoNotificationsForAuthenticatedUserRequest( startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -11066,17 +11067,17 @@ func (s *Server) handleActivityListReposStarredByAuthenticatedUserRequest(args [ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -11180,17 +11181,17 @@ func (s *Server) handleActivityListReposWatchedByUserRequest(args [1]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -11290,17 +11291,17 @@ func (s *Server) handleActivityListWatchedReposForAuthenticatedUserRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -11396,17 +11397,17 @@ func (s *Server) handleActivityListWatchersForRepoRequest(args [2]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -11516,17 +11517,17 @@ func (s *Server) handleActivityMarkNotificationsAsReadRequest(args [0]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -11624,17 +11625,17 @@ func (s *Server) handleActivityMarkRepoNotificationsAsReadRequest(args [2]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -11745,17 +11746,17 @@ func (s *Server) handleActivityMarkThreadAsReadRequest(args [1]string, argsEscap startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -11850,17 +11851,17 @@ func (s *Server) handleActivitySetRepoSubscriptionRequest(args [2]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -11978,17 +11979,17 @@ func (s *Server) handleActivitySetThreadSubscriptionRequest(args [1]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -12097,17 +12098,17 @@ func (s *Server) handleActivityStarRepoForAuthenticatedUserRequest(args [2]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -12203,17 +12204,17 @@ func (s *Server) handleActivityUnstarRepoForAuthenticatedUserRequest(args [2]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -12314,17 +12315,17 @@ func (s *Server) handleAppsAddRepoToInstallationRequest(args [2]string, argsEsca startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -12425,17 +12426,17 @@ func (s *Server) handleAppsCheckTokenRequest(args [1]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -12551,17 +12552,17 @@ func (s *Server) handleAppsCreateContentAttachmentRequest(args [3]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -12679,17 +12680,17 @@ func (s *Server) handleAppsCreateFromManifestRequest(args [1]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -12805,17 +12806,17 @@ func (s *Server) handleAppsCreateInstallationAccessTokenRequest(args [1]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -12931,17 +12932,17 @@ func (s *Server) handleAppsDeleteAuthorizationRequest(args [1]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -13053,17 +13054,17 @@ func (s *Server) handleAppsDeleteInstallationRequest(args [1]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -13158,17 +13159,17 @@ func (s *Server) handleAppsDeleteTokenRequest(args [1]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -13282,17 +13283,17 @@ func (s *Server) handleAppsGetAuthenticatedRequest(args [0]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -13372,17 +13373,17 @@ func (s *Server) handleAppsGetBySlugRequest(args [1]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -13481,17 +13482,17 @@ func (s *Server) handleAppsGetSubscriptionPlanForAccountRequest(args [1]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -13590,17 +13591,17 @@ func (s *Server) handleAppsGetSubscriptionPlanForAccountStubbedRequest(args [1]s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -13696,17 +13697,17 @@ func (s *Server) handleAppsGetWebhookConfigForAppRequest(args [0]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -13782,17 +13783,17 @@ func (s *Server) handleAppsGetWebhookDeliveryRequest(args [1]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -13892,17 +13893,17 @@ func (s *Server) handleAppsListAccountsForPlanRequest(args [1]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -14018,17 +14019,17 @@ func (s *Server) handleAppsListAccountsForPlanStubbedRequest(args [1]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -14142,17 +14143,17 @@ func (s *Server) handleAppsListInstallationReposForAuthenticatedUserRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -14257,17 +14258,17 @@ func (s *Server) handleAppsListPlansRequest(args [0]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -14368,17 +14369,17 @@ func (s *Server) handleAppsListPlansStubbedRequest(args [0]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -14477,17 +14478,17 @@ func (s *Server) handleAppsListReposAccessibleToInstallationRequest(args [0]stri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -14585,17 +14586,17 @@ func (s *Server) handleAppsListSubscriptionsForAuthenticatedUserRequest(args [0] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -14693,17 +14694,17 @@ func (s *Server) handleAppsListSubscriptionsForAuthenticatedUserStubbedRequest(a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -14802,17 +14803,17 @@ func (s *Server) handleAppsListWebhookDeliveriesRequest(args [0]string, argsEsca startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -14911,17 +14912,17 @@ func (s *Server) handleAppsRedeliverWebhookDeliveryRequest(args [1]string, argsE startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -15018,17 +15019,17 @@ func (s *Server) handleAppsRemoveRepoFromInstallationRequest(args [2]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -15129,17 +15130,17 @@ func (s *Server) handleAppsResetTokenRequest(args [1]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -15255,17 +15256,17 @@ func (s *Server) handleAppsRevokeInstallationAccessTokenRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -15343,17 +15344,17 @@ func (s *Server) handleAppsScopeTokenRequest(args [1]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -15465,17 +15466,17 @@ func (s *Server) handleAppsSuspendInstallationRequest(args [1]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -15570,17 +15571,17 @@ func (s *Server) handleAppsUnsuspendInstallationRequest(args [1]string, argsEsca startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -15676,17 +15677,17 @@ func (s *Server) handleAppsUpdateWebhookConfigForAppRequest(args [0]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -15785,17 +15786,17 @@ func (s *Server) handleBillingGetGithubActionsBillingGheRequest(args [1]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -15894,17 +15895,17 @@ func (s *Server) handleBillingGetGithubActionsBillingOrgRequest(args [1]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -16003,17 +16004,17 @@ func (s *Server) handleBillingGetGithubActionsBillingUserRequest(args [1]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -16109,17 +16110,17 @@ func (s *Server) handleBillingGetGithubPackagesBillingGheRequest(args [1]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -16215,17 +16216,17 @@ func (s *Server) handleBillingGetGithubPackagesBillingOrgRequest(args [1]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -16321,17 +16322,17 @@ func (s *Server) handleBillingGetGithubPackagesBillingUserRequest(args [1]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -16427,17 +16428,17 @@ func (s *Server) handleBillingGetSharedStorageBillingGheRequest(args [1]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -16533,17 +16534,17 @@ func (s *Server) handleBillingGetSharedStorageBillingOrgRequest(args [1]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -16639,17 +16640,17 @@ func (s *Server) handleBillingGetSharedStorageBillingUserRequest(args [1]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -16749,17 +16750,17 @@ func (s *Server) handleChecksCreateSuiteRequest(args [2]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -16875,17 +16876,17 @@ func (s *Server) handleChecksGetRequest(args [3]string, argsEscaped bool, w http startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -16990,17 +16991,17 @@ func (s *Server) handleChecksGetSuiteRequest(args [3]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -17103,17 +17104,17 @@ func (s *Server) handleChecksListAnnotationsRequest(args [3]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -17227,17 +17228,17 @@ func (s *Server) handleChecksListForRefRequest(args [3]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -17366,17 +17367,17 @@ func (s *Server) handleChecksListForSuiteRequest(args [3]string, argsEscaped boo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -17502,17 +17503,17 @@ func (s *Server) handleChecksListSuitesForRefRequest(args [3]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -17633,17 +17634,17 @@ func (s *Server) handleChecksRerequestSuiteRequest(args [3]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -17747,17 +17748,17 @@ func (s *Server) handleChecksSetSuitesPreferencesRequest(args [2]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -17926,17 +17927,17 @@ func (s *Server) handleCodeScanningDeleteAnalysisRequest(args [3]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -18046,17 +18047,17 @@ func (s *Server) handleCodeScanningGetAlertRequest(args [3]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -18174,17 +18175,17 @@ func (s *Server) handleCodeScanningGetAnalysisRequest(args [3]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -18289,17 +18290,17 @@ func (s *Server) handleCodeScanningGetSarifRequest(args [3]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -18401,17 +18402,17 @@ func (s *Server) handleCodeScanningListAlertInstancesRequest(args [3]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -18530,17 +18531,17 @@ func (s *Server) handleCodeScanningListAlertsForRepoRequest(args [2]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -18674,17 +18675,17 @@ func (s *Server) handleCodeScanningListRecentAnalysesRequest(args [2]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -18806,17 +18807,17 @@ func (s *Server) handleCodeScanningUpdateAlertRequest(args [3]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -18957,17 +18958,17 @@ func (s *Server) handleCodeScanningUploadSarifRequest(args [2]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -19078,17 +19079,17 @@ func (s *Server) handleCodesOfConductGetAllCodesOfConductRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -19161,17 +19162,17 @@ func (s *Server) handleCodesOfConductGetConductCodeRequest(args [1]string, argsE startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -19263,17 +19264,17 @@ func (s *Server) handleEmojisGetRequest(args [0]string, argsEscaped bool, w http startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -19350,17 +19351,17 @@ func (s *Server) handleEnterpriseAdminAddOrgAccessToSelfHostedRunnerGroupInEnter startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -19462,17 +19463,17 @@ func (s *Server) handleEnterpriseAdminAddSelfHostedRunnerToGroupForEnterpriseReq startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -19579,17 +19580,17 @@ func (s *Server) handleEnterpriseAdminCreateRegistrationTokenForEnterpriseReques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -19690,17 +19691,17 @@ func (s *Server) handleEnterpriseAdminCreateRemoveTokenForEnterpriseRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -19793,17 +19794,17 @@ func (s *Server) handleEnterpriseAdminCreateSelfHostedRunnerGroupForEnterpriseRe startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -19911,17 +19912,17 @@ func (s *Server) handleEnterpriseAdminDeleteScimGroupFromEnterpriseRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -20019,17 +20020,17 @@ func (s *Server) handleEnterpriseAdminDeleteSelfHostedRunnerFromEnterpriseReques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -20126,17 +20127,17 @@ func (s *Server) handleEnterpriseAdminDeleteSelfHostedRunnerGroupFromEnterpriseR startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -20233,17 +20234,17 @@ func (s *Server) handleEnterpriseAdminDeleteUserFromEnterpriseRequest(args [2]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -20343,17 +20344,17 @@ func (s *Server) handleEnterpriseAdminDisableSelectedOrganizationGithubActionsEn startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -20453,17 +20454,17 @@ func (s *Server) handleEnterpriseAdminEnableSelectedOrganizationGithubActionsEnt startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -20563,17 +20564,17 @@ func (s *Server) handleEnterpriseAdminGetAllowedActionsEnterpriseRequest(args [1 startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -20666,17 +20667,17 @@ func (s *Server) handleEnterpriseAdminGetAuditLogRequest(args [1]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -20797,17 +20798,17 @@ func (s *Server) handleEnterpriseAdminGetGithubActionsPermissionsEnterpriseReque startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -20900,17 +20901,17 @@ func (s *Server) handleEnterpriseAdminGetProvisioningInformationForEnterpriseGro startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -21011,17 +21012,17 @@ func (s *Server) handleEnterpriseAdminGetProvisioningInformationForEnterpriseUse startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -21118,17 +21119,17 @@ func (s *Server) handleEnterpriseAdminGetSelfHostedRunnerForEnterpriseRequest(ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -21225,17 +21226,17 @@ func (s *Server) handleEnterpriseAdminGetSelfHostedRunnerGroupForEnterpriseReque startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -21332,17 +21333,17 @@ func (s *Server) handleEnterpriseAdminListOrgAccessToSelfHostedRunnerGroupInEnte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -21447,17 +21448,17 @@ func (s *Server) handleEnterpriseAdminListProvisionedGroupsEnterpriseRequest(arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -21591,17 +21592,17 @@ func (s *Server) handleEnterpriseAdminListProvisionedIdentitiesEnterpriseRequest startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -21706,17 +21707,17 @@ func (s *Server) handleEnterpriseAdminListRunnerApplicationsForEnterpriseRequest startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -21812,17 +21813,17 @@ func (s *Server) handleEnterpriseAdminListSelectedOrganizationsEnabledGithubActi startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -21923,17 +21924,17 @@ func (s *Server) handleEnterpriseAdminListSelfHostedRunnerGroupsForEnterpriseReq startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -22034,17 +22035,17 @@ func (s *Server) handleEnterpriseAdminListSelfHostedRunnersForEnterpriseRequest( startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -22145,17 +22146,17 @@ func (s *Server) handleEnterpriseAdminListSelfHostedRunnersInGroupForEnterpriseR startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -22263,17 +22264,17 @@ func (s *Server) handleEnterpriseAdminProvisionAndInviteEnterpriseGroupRequest(a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -22386,17 +22387,17 @@ func (s *Server) handleEnterpriseAdminProvisionAndInviteEnterpriseUserRequest(ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -22507,17 +22508,17 @@ func (s *Server) handleEnterpriseAdminRemoveOrgAccessToSelfHostedRunnerGroupInEn startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -22619,17 +22620,17 @@ func (s *Server) handleEnterpriseAdminRemoveSelfHostedRunnerFromGroupForEnterpri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -22733,17 +22734,17 @@ func (s *Server) handleEnterpriseAdminSetAllowedActionsEnterpriseRequest(args [1 startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -22851,17 +22852,17 @@ func (s *Server) handleEnterpriseAdminSetGithubActionsPermissionsEnterpriseReque startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -22974,17 +22975,17 @@ func (s *Server) handleEnterpriseAdminSetInformationForProvisionedEnterpriseGrou startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -23104,17 +23105,17 @@ func (s *Server) handleEnterpriseAdminSetInformationForProvisionedEnterpriseUser startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -23227,17 +23228,17 @@ func (s *Server) handleEnterpriseAdminSetOrgAccessToSelfHostedRunnerGroupInEnter startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -23352,17 +23353,17 @@ func (s *Server) handleEnterpriseAdminSetSelectedOrganizationsEnabledGithubActio startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -23470,17 +23471,17 @@ func (s *Server) handleEnterpriseAdminSetSelfHostedRunnersInGroupForEnterpriseRe startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -23596,17 +23597,17 @@ func (s *Server) handleEnterpriseAdminUpdateAttributeForEnterpriseGroupRequest(a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -23739,17 +23740,17 @@ func (s *Server) handleEnterpriseAdminUpdateAttributeForEnterpriseUserRequest(ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -23861,17 +23862,17 @@ func (s *Server) handleEnterpriseAdminUpdateSelfHostedRunnerGroupForEnterpriseRe startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -23982,17 +23983,17 @@ func (s *Server) handleGistsCheckIsStarredRequest(args [1]string, argsEscaped bo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -24086,17 +24087,17 @@ func (s *Server) handleGistsCreateRequest(args [0]string, argsEscaped bool, w ht startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -24188,17 +24189,17 @@ func (s *Server) handleGistsCreateCommentRequest(args [1]string, argsEscaped boo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -24305,17 +24306,17 @@ func (s *Server) handleGistsDeleteRequest(args [1]string, argsEscaped bool, w ht startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -24407,17 +24408,17 @@ func (s *Server) handleGistsDeleteCommentRequest(args [2]string, argsEscaped boo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -24513,17 +24514,17 @@ func (s *Server) handleGistsForkRequest(args [1]string, argsEscaped bool, w http startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -24615,17 +24616,17 @@ func (s *Server) handleGistsGetRequest(args [1]string, argsEscaped bool, w http. startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -24717,17 +24718,17 @@ func (s *Server) handleGistsGetCommentRequest(args [2]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -24823,17 +24824,17 @@ func (s *Server) handleGistsGetRevisionRequest(args [2]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -24930,17 +24931,17 @@ func (s *Server) handleGistsListRequest(args [0]string, argsEscaped bool, w http startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -25040,17 +25041,17 @@ func (s *Server) handleGistsListCommentsRequest(args [1]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -25150,17 +25151,17 @@ func (s *Server) handleGistsListCommitsRequest(args [1]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -25260,17 +25261,17 @@ func (s *Server) handleGistsListForUserRequest(args [1]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -25374,17 +25375,17 @@ func (s *Server) handleGistsListForksRequest(args [1]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -25487,17 +25488,17 @@ func (s *Server) handleGistsListPublicRequest(args [0]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -25597,17 +25598,17 @@ func (s *Server) handleGistsListStarredRequest(args [0]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -25709,17 +25710,17 @@ func (s *Server) handleGistsStarRequest(args [1]string, argsEscaped bool, w http startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -25811,17 +25812,17 @@ func (s *Server) handleGistsUnstarRequest(args [1]string, argsEscaped bool, w ht startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -25913,17 +25914,17 @@ func (s *Server) handleGistsUpdateCommentRequest(args [2]string, argsEscaped boo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -26034,17 +26035,17 @@ func (s *Server) handleGitCreateBlobRequest(args [2]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -26188,17 +26189,17 @@ func (s *Server) handleGitCreateCommitRequest(args [2]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -26311,17 +26312,17 @@ func (s *Server) handleGitCreateRefRequest(args [2]string, argsEscaped bool, w h startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -26468,17 +26469,17 @@ func (s *Server) handleGitCreateTagRequest(args [2]string, argsEscaped bool, w h startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -26595,17 +26596,17 @@ func (s *Server) handleGitCreateTreeRequest(args [2]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -26716,17 +26717,17 @@ func (s *Server) handleGitDeleteRefRequest(args [3]string, argsEscaped bool, w h startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -26827,17 +26828,17 @@ func (s *Server) handleGitGetBlobRequest(args [3]string, argsEscaped bool, w htt startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -26970,17 +26971,17 @@ func (s *Server) handleGitGetCommitRequest(args [3]string, argsEscaped bool, w h startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -27087,17 +27088,17 @@ func (s *Server) handleGitGetRefRequest(args [3]string, argsEscaped bool, w http startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -27228,17 +27229,17 @@ func (s *Server) handleGitGetTagRequest(args [3]string, argsEscaped bool, w http startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -27341,17 +27342,17 @@ func (s *Server) handleGitGetTreeRequest(args [3]string, argsEscaped bool, w htt startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -27469,17 +27470,17 @@ func (s *Server) handleGitListMatchingRefsRequest(args [3]string, argsEscaped bo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -27587,17 +27588,17 @@ func (s *Server) handleGitUpdateRefRequest(args [3]string, argsEscaped bool, w h startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -27713,17 +27714,17 @@ func (s *Server) handleGitignoreGetAllTemplatesRequest(args [0]string, argsEscap startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -27798,17 +27799,17 @@ func (s *Server) handleGitignoreGetTemplateRequest(args [1]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -27900,17 +27901,17 @@ func (s *Server) handleInteractionsRemoveRestrictionsForAuthenticatedUserRequest startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -27984,17 +27985,17 @@ func (s *Server) handleInteractionsRemoveRestrictionsForOrgRequest(args [1]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -28089,17 +28090,17 @@ func (s *Server) handleInteractionsRemoveRestrictionsForRepoRequest(args [2]stri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -28197,17 +28198,17 @@ func (s *Server) handleInteractionsSetRestrictionsForAuthenticatedUserRequest(ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -28302,17 +28303,17 @@ func (s *Server) handleInteractionsSetRestrictionsForOrgRequest(args [1]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -28422,17 +28423,17 @@ func (s *Server) handleInteractionsSetRestrictionsForRepoRequest(args [2]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -28543,17 +28544,17 @@ func (s *Server) handleIssuesAddAssigneesRequest(args [3]string, argsEscaped boo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -28671,17 +28672,17 @@ func (s *Server) handleIssuesCheckUserCanBeAssignedRequest(args [3]string, argsE startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -28790,17 +28791,17 @@ func (s *Server) handleIssuesCreateRequest(args [2]string, argsEscaped bool, w h startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -28917,17 +28918,17 @@ func (s *Server) handleIssuesCreateCommentRequest(args [3]string, argsEscaped bo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -29042,17 +29043,17 @@ func (s *Server) handleIssuesCreateLabelRequest(args [2]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -29163,17 +29164,17 @@ func (s *Server) handleIssuesCreateMilestoneRequest(args [2]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -29284,17 +29285,17 @@ func (s *Server) handleIssuesDeleteCommentRequest(args [3]string, argsEscaped bo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -29394,17 +29395,17 @@ func (s *Server) handleIssuesDeleteLabelRequest(args [3]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -29504,17 +29505,17 @@ func (s *Server) handleIssuesDeleteMilestoneRequest(args [3]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -29632,17 +29633,17 @@ func (s *Server) handleIssuesGetRequest(args [3]string, argsEscaped bool, w http startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -29742,17 +29743,17 @@ func (s *Server) handleIssuesGetCommentRequest(args [3]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -29852,17 +29853,17 @@ func (s *Server) handleIssuesGetEventRequest(args [3]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -29962,17 +29963,17 @@ func (s *Server) handleIssuesGetLabelRequest(args [3]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -30072,17 +30073,17 @@ func (s *Server) handleIssuesGetMilestoneRequest(args [3]string, argsEscaped boo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -30194,17 +30195,17 @@ func (s *Server) handleIssuesListRequest(args [0]string, argsEscaped bool, w htt startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -30341,17 +30342,17 @@ func (s *Server) handleIssuesListAssigneesRequest(args [2]string, argsEscaped bo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -30455,17 +30456,17 @@ func (s *Server) handleIssuesListCommentsRequest(args [3]string, argsEscaped boo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -30577,17 +30578,17 @@ func (s *Server) handleIssuesListCommentsForRepoRequest(args [2]string, argsEsca startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -30703,17 +30704,17 @@ func (s *Server) handleIssuesListEventsForRepoRequest(args [2]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -30825,17 +30826,17 @@ func (s *Server) handleIssuesListForAuthenticatedUserRequest(args [0]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -30963,17 +30964,17 @@ func (s *Server) handleIssuesListForOrgRequest(args [1]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -31105,17 +31106,17 @@ func (s *Server) handleIssuesListForRepoRequest(args [2]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -31255,17 +31256,17 @@ func (s *Server) handleIssuesListLabelsForMilestoneRequest(args [3]string, argsE startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -31373,17 +31374,17 @@ func (s *Server) handleIssuesListLabelsForRepoRequest(args [2]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -31487,17 +31488,17 @@ func (s *Server) handleIssuesListLabelsOnIssueRequest(args [3]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -31605,17 +31606,17 @@ func (s *Server) handleIssuesListMilestonesRequest(args [2]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -31734,17 +31735,17 @@ func (s *Server) handleIssuesLockRequest(args [3]string, argsEscaped bool, w htt startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -31859,17 +31860,17 @@ func (s *Server) handleIssuesRemoveAllLabelsRequest(args [3]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -31969,17 +31970,17 @@ func (s *Server) handleIssuesRemoveAssigneesRequest(args [3]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -32095,17 +32096,17 @@ func (s *Server) handleIssuesRemoveLabelRequest(args [4]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -32209,17 +32210,17 @@ func (s *Server) handleIssuesUnlockRequest(args [3]string, argsEscaped bool, w h startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -32319,17 +32320,17 @@ func (s *Server) handleIssuesUpdateRequest(args [3]string, argsEscaped bool, w h startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -32444,17 +32445,17 @@ func (s *Server) handleIssuesUpdateCommentRequest(args [3]string, argsEscaped bo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -32569,17 +32570,17 @@ func (s *Server) handleIssuesUpdateLabelRequest(args [3]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -32694,17 +32695,17 @@ func (s *Server) handleIssuesUpdateMilestoneRequest(args [3]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -32819,17 +32820,17 @@ func (s *Server) handleLicensesGetRequest(args [1]string, argsEscaped bool, w ht startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -32921,17 +32922,17 @@ func (s *Server) handleLicensesGetAllCommonlyUsedRequest(args [0]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -33035,17 +33036,17 @@ func (s *Server) handleLicensesGetForRepoRequest(args [2]string, argsEscaped boo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -33141,17 +33142,17 @@ func (s *Server) handleMarkdownRenderRequest(args [0]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -33246,17 +33247,17 @@ func (s *Server) handleMarkdownRenderRawRequest(args [0]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -33352,17 +33353,17 @@ func (s *Server) handleMetaGetRequest(args [0]string, argsEscaped bool, w http.R startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -33435,17 +33436,17 @@ func (s *Server) handleMetaGetOctocatRequest(args [0]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -33537,17 +33538,17 @@ func (s *Server) handleMetaGetZenRequest(args [0]string, argsEscaped bool, w htt startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -33620,17 +33621,17 @@ func (s *Server) handleMetaRootRequest(args [0]string, argsEscaped bool, w http. startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -33703,17 +33704,17 @@ func (s *Server) handleMigrationsCancelImportRequest(args [2]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -33813,17 +33814,17 @@ func (s *Server) handleMigrationsDeleteArchiveForAuthenticatedUserRequest(args [ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -33916,17 +33917,17 @@ func (s *Server) handleMigrationsDeleteArchiveForOrgRequest(args [2]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -34022,17 +34023,17 @@ func (s *Server) handleMigrationsDownloadArchiveForOrgRequest(args [2]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -34148,17 +34149,17 @@ func (s *Server) handleMigrationsGetArchiveForAuthenticatedUserRequest(args [1]s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -34257,17 +34258,17 @@ func (s *Server) handleMigrationsGetCommitAuthorsRequest(args [2]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -34419,17 +34420,17 @@ func (s *Server) handleMigrationsGetImportStatusRequest(args [2]string, argsEsca startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -34525,17 +34526,17 @@ func (s *Server) handleMigrationsGetLargeFilesRequest(args [2]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -34638,17 +34639,17 @@ func (s *Server) handleMigrationsGetStatusForAuthenticatedUserRequest(args [1]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -34749,17 +34750,17 @@ func (s *Server) handleMigrationsGetStatusForOrgRequest(args [2]string, argsEsca startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -34859,17 +34860,17 @@ func (s *Server) handleMigrationsListForAuthenticatedUserRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -34965,17 +34966,17 @@ func (s *Server) handleMigrationsListForOrgRequest(args [1]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -35079,17 +35080,17 @@ func (s *Server) handleMigrationsListReposForOrgRequest(args [2]string, argsEsca startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -35193,17 +35194,17 @@ func (s *Server) handleMigrationsListReposForUserRequest(args [1]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -35304,17 +35305,17 @@ func (s *Server) handleMigrationsMapCommitAuthorRequest(args [3]string, argsEsca startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -35432,17 +35433,17 @@ func (s *Server) handleMigrationsSetLfsPreferenceRequest(args [2]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -35553,17 +35554,17 @@ func (s *Server) handleMigrationsStartForAuthenticatedUserRequest(args [0]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -35655,17 +35656,17 @@ func (s *Server) handleMigrationsStartForOrgRequest(args [1]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -35772,17 +35773,17 @@ func (s *Server) handleMigrationsStartImportRequest(args [2]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -35897,17 +35898,17 @@ func (s *Server) handleMigrationsUnlockRepoForAuthenticatedUserRequest(args [2]s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -36005,17 +36006,17 @@ func (s *Server) handleMigrationsUnlockRepoForOrgRequest(args [3]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -36117,17 +36118,17 @@ func (s *Server) handleMigrationsUpdateImportRequest(args [2]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -36267,17 +36268,17 @@ func (s *Server) handleOAuthAuthorizationsCreateAuthorizationRequest(args [0]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -36378,17 +36379,17 @@ func (s *Server) handleOAuthAuthorizationsDeleteAuthorizationRequest(args [1]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -36492,17 +36493,17 @@ func (s *Server) handleOAuthAuthorizationsDeleteGrantRequest(args [1]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -36603,17 +36604,17 @@ func (s *Server) handleOAuthAuthorizationsGetAuthorizationRequest(args [1]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -36714,17 +36715,17 @@ func (s *Server) handleOAuthAuthorizationsGetGrantRequest(args [1]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -36844,17 +36845,17 @@ func (s *Server) handleOAuthAuthorizationsGetOrCreateAuthorizationForAppRequest( startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -36984,17 +36985,17 @@ func (s *Server) handleOAuthAuthorizationsGetOrCreateAuthorizationForAppAndFinge startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -37114,17 +37115,17 @@ func (s *Server) handleOAuthAuthorizationsListAuthorizationsRequest(args [0]stri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -37244,17 +37245,17 @@ func (s *Server) handleOAuthAuthorizationsListGrantsRequest(args [0]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -37367,17 +37368,17 @@ func (s *Server) handleOAuthAuthorizationsUpdateAuthorizationRequest(args [1]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -37484,17 +37485,17 @@ func (s *Server) handleOrgsBlockUserRequest(args [2]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -37593,17 +37594,17 @@ func (s *Server) handleOrgsCancelInvitationRequest(args [2]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -37699,17 +37700,17 @@ func (s *Server) handleOrgsCheckBlockedUserRequest(args [2]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -37805,17 +37806,17 @@ func (s *Server) handleOrgsCheckMembershipForUserRequest(args [2]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -37911,17 +37912,17 @@ func (s *Server) handleOrgsCheckPublicMembershipForUserRequest(args [2]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -38021,17 +38022,17 @@ func (s *Server) handleOrgsConvertMemberToOutsideCollaboratorRequest(args [2]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -38135,17 +38136,17 @@ func (s *Server) handleOrgsCreateInvitationRequest(args [1]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -38252,17 +38253,17 @@ func (s *Server) handleOrgsCreateWebhookRequest(args [1]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -38369,17 +38370,17 @@ func (s *Server) handleOrgsDeleteWebhookRequest(args [2]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -38483,17 +38484,17 @@ func (s *Server) handleOrgsGetRequest(args [1]string, argsEscaped bool, w http.R startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -38590,17 +38591,17 @@ func (s *Server) handleOrgsGetAuditLogRequest(args [1]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -38720,17 +38721,17 @@ func (s *Server) handleOrgsGetMembershipForAuthenticatedUserRequest(args [1]stri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -38824,17 +38825,17 @@ func (s *Server) handleOrgsGetMembershipForUserRequest(args [2]string, argsEscap startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -38932,17 +38933,17 @@ func (s *Server) handleOrgsGetWebhookRequest(args [2]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -39042,17 +39043,17 @@ func (s *Server) handleOrgsGetWebhookConfigForOrgRequest(args [2]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -39148,17 +39149,17 @@ func (s *Server) handleOrgsGetWebhookDeliveryRequest(args [3]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -39261,17 +39262,17 @@ func (s *Server) handleOrgsListRequest(args [0]string, argsEscaped bool, w http. startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -39367,17 +39368,17 @@ func (s *Server) handleOrgsListBlockedUsersRequest(args [1]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -39470,17 +39471,17 @@ func (s *Server) handleOrgsListFailedInvitationsRequest(args [1]string, argsEsca startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -39585,17 +39586,17 @@ func (s *Server) handleOrgsListForAuthenticatedUserRequest(args [0]string, argsE startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -39696,17 +39697,17 @@ func (s *Server) handleOrgsListForUserRequest(args [1]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -39807,17 +39808,17 @@ func (s *Server) handleOrgsListInvitationTeamsRequest(args [2]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -39922,17 +39923,17 @@ func (s *Server) handleOrgsListMembersRequest(args [1]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -40040,17 +40041,17 @@ func (s *Server) handleOrgsListMembershipsForAuthenticatedUserRequest(args [0]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -40150,17 +40151,17 @@ func (s *Server) handleOrgsListOutsideCollaboratorsRequest(args [1]string, argsE startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -40267,17 +40268,17 @@ func (s *Server) handleOrgsListPendingInvitationsRequest(args [1]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -40377,17 +40378,17 @@ func (s *Server) handleOrgsListPublicMembersRequest(args [1]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -40494,17 +40495,17 @@ func (s *Server) handleOrgsListSamlSSOAuthorizationsRequest(args [1]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -40596,17 +40597,17 @@ func (s *Server) handleOrgsListWebhookDeliveriesRequest(args [2]string, argsEsca startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -40710,17 +40711,17 @@ func (s *Server) handleOrgsListWebhooksRequest(args [1]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -40821,17 +40822,17 @@ func (s *Server) handleOrgsPingWebhookRequest(args [2]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -40927,17 +40928,17 @@ func (s *Server) handleOrgsRedeliverWebhookDeliveryRequest(args [3]string, argsE startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -41038,17 +41039,17 @@ func (s *Server) handleOrgsRemoveMemberRequest(args [2]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -41148,17 +41149,17 @@ func (s *Server) handleOrgsRemoveMembershipForUserRequest(args [2]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -41254,17 +41255,17 @@ func (s *Server) handleOrgsRemoveOutsideCollaboratorRequest(args [2]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -41360,17 +41361,17 @@ func (s *Server) handleOrgsRemovePublicMembershipForAuthenticatedUserRequest(arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -41472,17 +41473,17 @@ func (s *Server) handleOrgsRemoveSamlSSOAuthorizationRequest(args [2]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -41591,17 +41592,17 @@ func (s *Server) handleOrgsSetMembershipForUserRequest(args [2]string, argsEscap startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -41716,17 +41717,17 @@ func (s *Server) handleOrgsSetPublicMembershipForAuthenticatedUserRequest(args [ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -41822,17 +41823,17 @@ func (s *Server) handleOrgsUnblockUserRequest(args [2]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -41928,17 +41929,17 @@ func (s *Server) handleOrgsUpdateMembershipForAuthenticatedUserRequest(args [1]s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -42049,17 +42050,17 @@ func (s *Server) handleOrgsUpdateWebhookRequest(args [2]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -42174,17 +42175,17 @@ func (s *Server) handleOrgsUpdateWebhookConfigForOrgRequest(args [2]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -42300,17 +42301,17 @@ func (s *Server) handlePackagesDeletePackageForAuthenticatedUserRequest(args [2] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -42413,17 +42414,17 @@ func (s *Server) handlePackagesDeletePackageForOrgRequest(args [3]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -42530,17 +42531,17 @@ func (s *Server) handlePackagesDeletePackageForUserRequest(args [3]string, argsE startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -42645,17 +42646,17 @@ func (s *Server) handlePackagesDeletePackageVersionForAuthenticatedUserRequest(a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -42762,17 +42763,17 @@ func (s *Server) handlePackagesDeletePackageVersionForOrgRequest(args [4]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -42883,17 +42884,17 @@ func (s *Server) handlePackagesDeletePackageVersionForUserRequest(args [4]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -42999,17 +43000,17 @@ func (s *Server) handlePackagesGetAllPackageVersionsForPackageOwnedByAuthenticat startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -43119,17 +43120,17 @@ func (s *Server) handlePackagesGetAllPackageVersionsForPackageOwnedByOrgRequest( startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -43243,17 +43244,17 @@ func (s *Server) handlePackagesGetAllPackageVersionsForPackageOwnedByUserRequest startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -43355,17 +43356,17 @@ func (s *Server) handlePackagesGetPackageForAuthenticatedUserRequest(args [2]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -43463,17 +43464,17 @@ func (s *Server) handlePackagesGetPackageForOrganizationRequest(args [3]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -43575,17 +43576,17 @@ func (s *Server) handlePackagesGetPackageForUserRequest(args [3]string, argsEsca startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -43687,17 +43688,17 @@ func (s *Server) handlePackagesGetPackageVersionForAuthenticatedUserRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -43799,17 +43800,17 @@ func (s *Server) handlePackagesGetPackageVersionForOrganizationRequest(args [4]s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -43916,17 +43917,17 @@ func (s *Server) handlePackagesGetPackageVersionForUserRequest(args [4]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -44032,17 +44033,17 @@ func (s *Server) handlePackagesListPackagesForAuthenticatedUserRequest(args [0]s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -44140,17 +44141,17 @@ func (s *Server) handlePackagesListPackagesForOrganizationRequest(args [1]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -44252,17 +44253,17 @@ func (s *Server) handlePackagesListPackagesForUserRequest(args [1]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -44371,17 +44372,17 @@ func (s *Server) handlePackagesRestorePackageForAuthenticatedUserRequest(args [2 startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -44492,17 +44493,17 @@ func (s *Server) handlePackagesRestorePackageForOrgRequest(args [3]string, argsE startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -44617,17 +44618,17 @@ func (s *Server) handlePackagesRestorePackageForUserRequest(args [3]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -44740,17 +44741,17 @@ func (s *Server) handlePackagesRestorePackageVersionForAuthenticatedUserRequest( startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -44861,17 +44862,17 @@ func (s *Server) handlePackagesRestorePackageVersionForOrgRequest(args [4]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -44986,17 +44987,17 @@ func (s *Server) handlePackagesRestorePackageVersionForUserRequest(args [4]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -45101,17 +45102,17 @@ func (s *Server) handleProjectsAddCollaboratorRequest(args [2]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -45222,17 +45223,17 @@ func (s *Server) handleProjectsCreateColumnRequest(args [1]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -45339,17 +45340,17 @@ func (s *Server) handleProjectsCreateForAuthenticatedUserRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -45443,17 +45444,17 @@ func (s *Server) handleProjectsCreateForOrgRequest(args [1]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -45562,17 +45563,17 @@ func (s *Server) handleProjectsCreateForRepoRequest(args [2]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -45683,17 +45684,17 @@ func (s *Server) handleProjectsDeleteRequest(args [1]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -45785,17 +45786,17 @@ func (s *Server) handleProjectsDeleteCardRequest(args [1]string, argsEscaped boo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -45887,17 +45888,17 @@ func (s *Server) handleProjectsDeleteColumnRequest(args [1]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -45991,17 +45992,17 @@ func (s *Server) handleProjectsGetRequest(args [1]string, argsEscaped bool, w ht startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -46093,17 +46094,17 @@ func (s *Server) handleProjectsGetCardRequest(args [1]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -46195,17 +46196,17 @@ func (s *Server) handleProjectsGetColumnRequest(args [1]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -46299,17 +46300,17 @@ func (s *Server) handleProjectsGetPermissionForUserRequest(args [2]string, argsE startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -46405,17 +46406,17 @@ func (s *Server) handleProjectsListCardsRequest(args [1]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -46523,17 +46524,17 @@ func (s *Server) handleProjectsListCollaboratorsRequest(args [1]string, argsEsca startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -46637,17 +46638,17 @@ func (s *Server) handleProjectsListColumnsRequest(args [1]string, argsEscaped bo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -46749,17 +46750,17 @@ func (s *Server) handleProjectsListForOrgRequest(args [1]string, argsEscaped boo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -46865,17 +46866,17 @@ func (s *Server) handleProjectsListForRepoRequest(args [2]string, argsEscaped bo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -46983,17 +46984,17 @@ func (s *Server) handleProjectsListForUserRequest(args [1]string, argsEscaped bo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -47097,17 +47098,17 @@ func (s *Server) handleProjectsMoveCardRequest(args [1]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -47214,17 +47215,17 @@ func (s *Server) handleProjectsMoveColumnRequest(args [1]string, argsEscaped boo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -47332,17 +47333,17 @@ func (s *Server) handleProjectsRemoveCollaboratorRequest(args [2]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -47440,17 +47441,17 @@ func (s *Server) handleProjectsUpdateRequest(args [1]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -47557,17 +47558,17 @@ func (s *Server) handleProjectsUpdateCardRequest(args [1]string, argsEscaped boo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -47674,17 +47675,17 @@ func (s *Server) handleProjectsUpdateColumnRequest(args [1]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -47791,17 +47792,17 @@ func (s *Server) handlePullsCheckIfMergedRequest(args [3]string, argsEscaped boo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -47916,17 +47917,17 @@ func (s *Server) handlePullsCreateRequest(args [2]string, argsEscaped bool, w ht startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -48046,17 +48047,17 @@ func (s *Server) handlePullsCreateReplyForReviewCommentRequest(args [4]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -48193,17 +48194,17 @@ func (s *Server) handlePullsCreateReviewRequest(args [3]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -48337,17 +48338,17 @@ func (s *Server) handlePullsCreateReviewCommentRequest(args [3]string, argsEscap startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -48462,17 +48463,17 @@ func (s *Server) handlePullsDeletePendingReviewRequest(args [4]string, argsEscap startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -48576,17 +48577,17 @@ func (s *Server) handlePullsDeleteReviewCommentRequest(args [3]string, argsEscap startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -48688,17 +48689,17 @@ func (s *Server) handlePullsDismissReviewRequest(args [4]string, argsEscaped boo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -48850,17 +48851,17 @@ func (s *Server) handlePullsGetRequest(args [3]string, argsEscaped bool, w http. startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -48960,17 +48961,17 @@ func (s *Server) handlePullsGetReviewRequest(args [4]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -49074,17 +49075,17 @@ func (s *Server) handlePullsGetReviewCommentRequest(args [3]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -49188,17 +49189,17 @@ func (s *Server) handlePullsListRequest(args [2]string, argsEscaped bool, w http startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -49322,17 +49323,17 @@ func (s *Server) handlePullsListCommentsForReviewRequest(args [4]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -49446,17 +49447,17 @@ func (s *Server) handlePullsListCommitsRequest(args [3]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -49565,17 +49566,17 @@ func (s *Server) handlePullsListFilesRequest(args [3]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -49683,17 +49684,17 @@ func (s *Server) handlePullsListRequestedReviewersRequest(args [3]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -49802,17 +49803,17 @@ func (s *Server) handlePullsListReviewCommentsRequest(args [3]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -49933,17 +49934,17 @@ func (s *Server) handlePullsListReviewCommentsForRepoRequest(args [2]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -50059,17 +50060,17 @@ func (s *Server) handlePullsListReviewsRequest(args [3]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -50183,17 +50184,17 @@ func (s *Server) handlePullsMergeRequest(args [3]string, argsEscaped bool, w htt startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -50308,17 +50309,17 @@ func (s *Server) handlePullsRemoveRequestedReviewersRequest(args [3]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -50433,17 +50434,17 @@ func (s *Server) handlePullsSubmitReviewRequest(args [4]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -50569,17 +50570,17 @@ func (s *Server) handlePullsUpdateRequest(args [3]string, argsEscaped bool, w ht startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -50695,17 +50696,17 @@ func (s *Server) handlePullsUpdateBranchRequest(args [3]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -50820,17 +50821,17 @@ func (s *Server) handlePullsUpdateReviewRequest(args [4]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -50949,17 +50950,17 @@ func (s *Server) handlePullsUpdateReviewCommentRequest(args [3]string, argsEscap startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -51077,17 +51078,17 @@ func (s *Server) handleRateLimitGetRequest(args [0]string, argsEscaped bool, w h startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -51162,17 +51163,17 @@ func (s *Server) handleReactionsCreateForCommitCommentRequest(args [3]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -51288,17 +51289,17 @@ func (s *Server) handleReactionsCreateForIssueRequest(args [3]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -51415,17 +51416,17 @@ func (s *Server) handleReactionsCreateForIssueCommentRequest(args [3]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -51542,17 +51543,17 @@ func (s *Server) handleReactionsCreateForPullRequestReviewCommentRequest(args [3 startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -51668,17 +51669,17 @@ func (s *Server) handleReactionsCreateForReleaseRequest(args [3]string, argsEsca startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -51799,17 +51800,17 @@ func (s *Server) handleReactionsCreateForTeamDiscussionCommentInOrgRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -51938,17 +51939,17 @@ func (s *Server) handleReactionsCreateForTeamDiscussionCommentLegacyRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -52070,17 +52071,17 @@ func (s *Server) handleReactionsCreateForTeamDiscussionInOrgRequest(args [3]stri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -52206,17 +52207,17 @@ func (s *Server) handleReactionsCreateForTeamDiscussionLegacyRequest(args [2]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -52329,17 +52330,17 @@ func (s *Server) handleReactionsDeleteForCommitCommentRequest(args [4]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -52445,17 +52446,17 @@ func (s *Server) handleReactionsDeleteForIssueRequest(args [4]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -52561,17 +52562,17 @@ func (s *Server) handleReactionsDeleteForIssueCommentRequest(args [4]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -52678,17 +52679,17 @@ func (s *Server) handleReactionsDeleteForPullRequestCommentRequest(args [4]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -52799,17 +52800,17 @@ func (s *Server) handleReactionsDeleteForTeamDiscussionRequest(args [4]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -52918,17 +52919,17 @@ func (s *Server) handleReactionsDeleteForTeamDiscussionCommentRequest(args [5]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -53045,17 +53046,17 @@ func (s *Server) handleReactionsDeleteLegacyRequest(args [1]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -53147,17 +53148,17 @@ func (s *Server) handleReactionsListForCommitCommentRequest(args [3]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -53269,17 +53270,17 @@ func (s *Server) handleReactionsListForIssueRequest(args [3]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -53391,17 +53392,17 @@ func (s *Server) handleReactionsListForIssueCommentRequest(args [3]string, argsE startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -53514,17 +53515,17 @@ func (s *Server) handleReactionsListForPullRequestReviewCommentRequest(args [3]s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -53640,17 +53641,17 @@ func (s *Server) handleReactionsListForTeamDiscussionCommentInOrgRequest(args [4 startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -53774,17 +53775,17 @@ func (s *Server) handleReactionsListForTeamDiscussionCommentLegacyRequest(args [ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -53900,17 +53901,17 @@ func (s *Server) handleReactionsListForTeamDiscussionInOrgRequest(args [3]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -54030,17 +54031,17 @@ func (s *Server) handleReactionsListForTeamDiscussionLegacyRequest(args [2]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -54148,17 +54149,17 @@ func (s *Server) handleReposAcceptInvitationRequest(args [1]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -54264,17 +54265,17 @@ func (s *Server) handleReposAddAppAccessRestrictionsRequest(args [3]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -54408,17 +54409,17 @@ func (s *Server) handleReposAddCollaboratorRequest(args [3]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -54537,17 +54538,17 @@ func (s *Server) handleReposAddStatusCheckContextsRequest(args [3]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -54676,17 +54677,17 @@ func (s *Server) handleReposAddTeamAccessRestrictionsRequest(args [3]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -54814,17 +54815,17 @@ func (s *Server) handleReposAddUserAccessRestrictionsRequest(args [3]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -54943,17 +54944,17 @@ func (s *Server) handleReposCheckCollaboratorRequest(args [3]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -55056,17 +55057,17 @@ func (s *Server) handleReposCheckVulnerabilityAlertsRequest(args [2]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -55216,17 +55217,17 @@ func (s *Server) handleReposCompareCommitsRequest(args [3]string, argsEscaped bo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -55334,17 +55335,17 @@ func (s *Server) handleReposCreateAutolinkRequest(args [2]string, argsEscaped bo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -55462,17 +55463,17 @@ func (s *Server) handleReposCreateCommitCommentRequest(args [3]string, argsEscap startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -55593,17 +55594,17 @@ func (s *Server) handleReposCreateCommitSignatureProtectionRequest(args [3]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -55705,17 +55706,17 @@ func (s *Server) handleReposCreateCommitStatusRequest(args [3]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -55830,17 +55831,17 @@ func (s *Server) handleReposCreateDeployKeyRequest(args [2]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -56006,17 +56007,17 @@ func (s *Server) handleReposCreateDeploymentRequest(args [2]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -56129,17 +56130,17 @@ func (s *Server) handleReposCreateDeploymentStatusRequest(args [3]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -56273,17 +56274,17 @@ func (s *Server) handleReposCreateDispatchEventRequest(args [2]string, argsEscap startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -56400,17 +56401,17 @@ func (s *Server) handleReposCreateForAuthenticatedUserRequest(args [0]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -56505,17 +56506,17 @@ func (s *Server) handleReposCreateForkRequest(args [2]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -56633,17 +56634,17 @@ func (s *Server) handleReposCreateInOrgRequest(args [1]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -56750,17 +56751,17 @@ func (s *Server) handleReposCreateOrUpdateFileContentsRequest(args [3]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -56876,17 +56877,17 @@ func (s *Server) handleReposCreatePagesSiteRequest(args [2]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -57004,17 +57005,17 @@ func (s *Server) handleReposCreateReleaseRequest(args [2]string, argsEscaped boo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -57136,17 +57137,17 @@ func (s *Server) handleReposCreateUsingTemplateRequest(args [2]string, argsEscap startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -57259,17 +57260,17 @@ func (s *Server) handleReposCreateWebhookRequest(args [2]string, argsEscaped boo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -57380,17 +57381,17 @@ func (s *Server) handleReposDeclineInvitationRequest(args [1]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -57485,17 +57486,17 @@ func (s *Server) handleReposDeleteRequest(args [2]string, argsEscaped bool, w ht startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -57596,17 +57597,17 @@ func (s *Server) handleReposDeleteAccessRestrictionsRequest(args [3]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -57712,17 +57713,17 @@ func (s *Server) handleReposDeleteAdminBranchProtectionRequest(args [3]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -57822,17 +57823,17 @@ func (s *Server) handleReposDeleteAnEnvironmentRequest(args [3]string, argsEscap startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -57933,17 +57934,17 @@ func (s *Server) handleReposDeleteAutolinkRequest(args [3]string, argsEscaped bo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -58047,17 +58048,17 @@ func (s *Server) handleReposDeleteBranchProtectionRequest(args [3]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -58157,17 +58158,17 @@ func (s *Server) handleReposDeleteCommitCommentRequest(args [3]string, argsEscap startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -58274,17 +58275,17 @@ func (s *Server) handleReposDeleteCommitSignatureProtectionRequest(args [3]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -58385,17 +58386,17 @@ func (s *Server) handleReposDeleteDeployKeyRequest(args [3]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -58503,17 +58504,17 @@ func (s *Server) handleReposDeleteDeploymentRequest(args [3]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -58620,17 +58621,17 @@ func (s *Server) handleReposDeleteFileRequest(args [3]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -58745,17 +58746,17 @@ func (s *Server) handleReposDeleteInvitationRequest(args [3]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -58855,17 +58856,17 @@ func (s *Server) handleReposDeletePagesSiteRequest(args [2]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -58965,17 +58966,17 @@ func (s *Server) handleReposDeletePullRequestReviewProtectionRequest(args [3]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -59075,17 +59076,17 @@ func (s *Server) handleReposDeleteReleaseRequest(args [3]string, argsEscaped boo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -59185,17 +59186,17 @@ func (s *Server) handleReposDeleteReleaseAssetRequest(args [3]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -59295,17 +59296,17 @@ func (s *Server) handleReposDeleteWebhookRequest(args [3]string, argsEscaped boo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -59407,17 +59408,17 @@ func (s *Server) handleReposDisableAutomatedSecurityFixesRequest(args [2]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -59513,17 +59514,17 @@ func (s *Server) handleReposDisableLfsForRepoRequest(args [2]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -59622,17 +59623,17 @@ func (s *Server) handleReposDisableVulnerabilityAlertsRequest(args [2]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -59733,17 +59734,17 @@ func (s *Server) handleReposDownloadTarballArchiveRequest(args [3]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -59848,17 +59849,17 @@ func (s *Server) handleReposDownloadZipballArchiveRequest(args [3]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -59960,17 +59961,17 @@ func (s *Server) handleReposEnableAutomatedSecurityFixesRequest(args [2]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -60066,17 +60067,17 @@ func (s *Server) handleReposEnableLfsForRepoRequest(args [2]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -60175,17 +60176,17 @@ func (s *Server) handleReposEnableVulnerabilityAlertsRequest(args [2]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -60282,17 +60283,17 @@ func (s *Server) handleReposGetRequest(args [2]string, argsEscaped bool, w http. startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -60395,17 +60396,17 @@ func (s *Server) handleReposGetAccessRestrictionsRequest(args [3]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -60509,17 +60510,17 @@ func (s *Server) handleReposGetAdminBranchProtectionRequest(args [3]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -60623,17 +60624,17 @@ func (s *Server) handleReposGetAllStatusCheckContextsRequest(args [3]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -60733,17 +60734,17 @@ func (s *Server) handleReposGetAllTopicsRequest(args [2]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -60854,17 +60855,17 @@ func (s *Server) handleReposGetAppsWithAccessToProtectedBranchRequest(args [3]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -60965,17 +60966,17 @@ func (s *Server) handleReposGetAutolinkRequest(args [3]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -61075,17 +61076,17 @@ func (s *Server) handleReposGetBranchRequest(args [3]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -61189,17 +61190,17 @@ func (s *Server) handleReposGetBranchProtectionRequest(args [3]string, argsEscap startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -61300,17 +61301,17 @@ func (s *Server) handleReposGetClonesRequest(args [2]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -61410,17 +61411,17 @@ func (s *Server) handleReposGetCodeFrequencyStatsRequest(args [2]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -61517,17 +61518,17 @@ func (s *Server) handleReposGetCollaboratorPermissionLevelRequest(args [3]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -61635,17 +61636,17 @@ func (s *Server) handleReposGetCombinedStatusForRefRequest(args [3]string, argsE startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -61799,17 +61800,17 @@ func (s *Server) handleReposGetCommitRequest(args [3]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -61918,17 +61919,17 @@ func (s *Server) handleReposGetCommitActivityStatsRequest(args [2]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -62024,17 +62025,17 @@ func (s *Server) handleReposGetCommitCommentRequest(args [3]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -62143,17 +62144,17 @@ func (s *Server) handleReposGetCommitSignatureProtectionRequest(args [3]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -62262,17 +62263,17 @@ func (s *Server) handleReposGetCommunityProfileMetricsRequest(args [2]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -62373,17 +62374,17 @@ func (s *Server) handleReposGetContributorsStatsRequest(args [2]string, argsEsca startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -62479,17 +62480,17 @@ func (s *Server) handleReposGetDeployKeyRequest(args [3]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -62589,17 +62590,17 @@ func (s *Server) handleReposGetDeploymentRequest(args [3]string, argsEscaped boo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -62699,17 +62700,17 @@ func (s *Server) handleReposGetDeploymentStatusRequest(args [4]string, argsEscap startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -62813,17 +62814,17 @@ func (s *Server) handleReposGetLatestPagesBuildRequest(args [2]string, argsEscap startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -62922,17 +62923,17 @@ func (s *Server) handleReposGetLatestReleaseRequest(args [2]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -63028,17 +63029,17 @@ func (s *Server) handleReposGetPagesRequest(args [2]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -63134,17 +63135,17 @@ func (s *Server) handleReposGetPagesBuildRequest(args [3]string, argsEscaped boo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -63250,17 +63251,17 @@ func (s *Server) handleReposGetPagesHealthCheckRequest(args [2]string, argsEscap startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -63359,17 +63360,17 @@ func (s *Server) handleReposGetParticipationStatsRequest(args [2]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -63469,17 +63470,17 @@ func (s *Server) handleReposGetPullRequestReviewProtectionRequest(args [3]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -63584,17 +63585,17 @@ func (s *Server) handleReposGetPunchCardStatsRequest(args [2]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -63692,17 +63693,17 @@ func (s *Server) handleReposGetReadmeRequest(args [2]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -63804,17 +63805,17 @@ func (s *Server) handleReposGetReadmeInDirectoryRequest(args [3]string, argsEsca startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -63920,17 +63921,17 @@ func (s *Server) handleReposGetReleaseRequest(args [3]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -64033,17 +64034,17 @@ func (s *Server) handleReposGetReleaseAssetRequest(args [3]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -64143,17 +64144,17 @@ func (s *Server) handleReposGetReleaseByTagRequest(args [3]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -64257,17 +64258,17 @@ func (s *Server) handleReposGetStatusChecksProtectionRequest(args [3]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -64372,17 +64373,17 @@ func (s *Server) handleReposGetTeamsWithAccessToProtectedBranchRequest(args [3]s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -64482,17 +64483,17 @@ func (s *Server) handleReposGetTopPathsRequest(args [2]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -64588,17 +64589,17 @@ func (s *Server) handleReposGetTopReferrersRequest(args [2]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -64699,17 +64700,17 @@ func (s *Server) handleReposGetUsersWithAccessToProtectedBranchRequest(args [3]s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -64810,17 +64811,17 @@ func (s *Server) handleReposGetViewsRequest(args [2]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -64922,17 +64923,17 @@ func (s *Server) handleReposGetWebhookRequest(args [3]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -65036,17 +65037,17 @@ func (s *Server) handleReposGetWebhookConfigForRepoRequest(args [3]string, argsE startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -65146,17 +65147,17 @@ func (s *Server) handleReposGetWebhookDeliveryRequest(args [4]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -65261,17 +65262,17 @@ func (s *Server) handleReposListAutolinksRequest(args [2]string, argsEscaped boo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -65371,17 +65372,17 @@ func (s *Server) handleReposListBranchesRequest(args [2]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -65494,17 +65495,17 @@ func (s *Server) handleReposListBranchesForHeadCommitRequest(args [3]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -65608,17 +65609,17 @@ func (s *Server) handleReposListCollaboratorsRequest(args [2]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -65726,17 +65727,17 @@ func (s *Server) handleReposListCommentsForCommitRequest(args [3]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -65847,17 +65848,17 @@ func (s *Server) handleReposListCommitCommentsForRepoRequest(args [2]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -65964,17 +65965,17 @@ func (s *Server) handleReposListCommitStatusesForRefRequest(args [3]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -66113,17 +66114,17 @@ func (s *Server) handleReposListCommitsRequest(args [2]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -66253,17 +66254,17 @@ func (s *Server) handleReposListContributorsRequest(args [2]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -66371,17 +66372,17 @@ func (s *Server) handleReposListDeployKeysRequest(args [2]string, argsEscaped bo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -66485,17 +66486,17 @@ func (s *Server) handleReposListDeploymentStatusesRequest(args [3]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -66603,17 +66604,17 @@ func (s *Server) handleReposListDeploymentsRequest(args [2]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -66736,17 +66737,17 @@ func (s *Server) handleReposListForAuthenticatedUserRequest(args [0]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -66870,17 +66871,17 @@ func (s *Server) handleReposListForOrgRequest(args [1]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -66993,17 +66994,17 @@ func (s *Server) handleReposListForUserRequest(args [1]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -67115,17 +67116,17 @@ func (s *Server) handleReposListForksRequest(args [2]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -67234,17 +67235,17 @@ func (s *Server) handleReposListInvitationsRequest(args [2]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -67349,17 +67350,17 @@ func (s *Server) handleReposListInvitationsForAuthenticatedUserRequest(args [0]s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -67456,17 +67457,17 @@ func (s *Server) handleReposListLanguagesRequest(args [2]string, argsEscaped boo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -67562,17 +67563,17 @@ func (s *Server) handleReposListPagesBuildsRequest(args [2]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -67682,17 +67683,17 @@ func (s *Server) handleReposListPublicRequest(args [0]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -67789,17 +67790,17 @@ func (s *Server) handleReposListPullRequestsAssociatedWithCommitRequest(args [3] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -67907,17 +67908,17 @@ func (s *Server) handleReposListReleaseAssetsRequest(args [3]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -68029,17 +68030,17 @@ func (s *Server) handleReposListReleasesRequest(args [2]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -68143,17 +68144,17 @@ func (s *Server) handleReposListTagsRequest(args [2]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -68257,17 +68258,17 @@ func (s *Server) handleReposListTeamsRequest(args [2]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -68371,17 +68372,17 @@ func (s *Server) handleReposListWebhookDeliveriesRequest(args [3]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -68489,17 +68490,17 @@ func (s *Server) handleReposListWebhooksRequest(args [2]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -68603,17 +68604,17 @@ func (s *Server) handleReposMergeRequest(args [2]string, argsEscaped bool, w htt startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -68725,17 +68726,17 @@ func (s *Server) handleReposMergeUpstreamRequest(args [2]string, argsEscaped boo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -68847,17 +68848,17 @@ func (s *Server) handleReposPingWebhookRequest(args [3]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -68957,17 +68958,17 @@ func (s *Server) handleReposRedeliverWebhookDeliveryRequest(args [4]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -69085,17 +69086,17 @@ func (s *Server) handleReposRemoveAppAccessRestrictionsRequest(args [3]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -69210,17 +69211,17 @@ func (s *Server) handleReposRemoveCollaboratorRequest(args [3]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -69324,17 +69325,17 @@ func (s *Server) handleReposRemoveStatusCheckContextsRequest(args [3]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -69453,17 +69454,17 @@ func (s *Server) handleReposRemoveStatusCheckProtectionRequest(args [3]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -69577,17 +69578,17 @@ func (s *Server) handleReposRemoveTeamAccessRestrictionsRequest(args [3]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -69715,17 +69716,17 @@ func (s *Server) handleReposRemoveUserAccessRestrictionsRequest(args [3]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -69852,17 +69853,17 @@ func (s *Server) handleReposRenameBranchRequest(args [3]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -69977,17 +69978,17 @@ func (s *Server) handleReposReplaceAllTopicsRequest(args [2]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -70103,17 +70104,17 @@ func (s *Server) handleReposRequestPagesBuildRequest(args [2]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -70215,17 +70216,17 @@ func (s *Server) handleReposSetAdminBranchProtectionRequest(args [3]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -70341,17 +70342,17 @@ func (s *Server) handleReposSetAppAccessRestrictionsRequest(args [3]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -70470,17 +70471,17 @@ func (s *Server) handleReposSetStatusCheckContextsRequest(args [3]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -70610,17 +70611,17 @@ func (s *Server) handleReposSetTeamAccessRestrictionsRequest(args [3]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -70749,17 +70750,17 @@ func (s *Server) handleReposSetUserAccessRestrictionsRequest(args [3]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -70877,17 +70878,17 @@ func (s *Server) handleReposTestPushWebhookRequest(args [3]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -70991,17 +70992,17 @@ func (s *Server) handleReposTransferRequest(args [2]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -71113,17 +71114,17 @@ func (s *Server) handleReposUpdateRequest(args [2]string, argsEscaped bool, w ht startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -71241,17 +71242,17 @@ func (s *Server) handleReposUpdateBranchProtectionRequest(args [3]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -71366,17 +71367,17 @@ func (s *Server) handleReposUpdateCommitCommentRequest(args [3]string, argsEscap startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -71491,17 +71492,17 @@ func (s *Server) handleReposUpdateInvitationRequest(args [3]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -71623,17 +71624,17 @@ func (s *Server) handleReposUpdatePullRequestReviewProtectionRequest(args [3]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -71748,17 +71749,17 @@ func (s *Server) handleReposUpdateReleaseRequest(args [3]string, argsEscaped boo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -71873,17 +71874,17 @@ func (s *Server) handleReposUpdateReleaseAssetRequest(args [3]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -72004,17 +72005,17 @@ func (s *Server) handleReposUpdateStatusCheckProtectionRequest(args [3]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -72132,17 +72133,17 @@ func (s *Server) handleReposUpdateWebhookRequest(args [3]string, argsEscaped boo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -72261,17 +72262,17 @@ func (s *Server) handleReposUpdateWebhookConfigForRepoRequest(args [3]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -72411,17 +72412,17 @@ func (s *Server) handleReposUploadReleaseAssetRequest(args [3]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -72544,17 +72545,17 @@ func (s *Server) handleScimDeleteUserFromOrgRequest(args [2]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -72669,17 +72670,17 @@ func (s *Server) handleSearchCodeRequest(args [0]string, argsEscaped bool, w htt startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -72797,17 +72798,17 @@ func (s *Server) handleSearchCommitsRequest(args [0]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -72937,17 +72938,17 @@ func (s *Server) handleSearchIssuesAndPullRequestsRequest(args [0]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -73064,17 +73065,17 @@ func (s *Server) handleSearchLabelsRequest(args [0]string, argsEscaped bool, w h startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -73201,17 +73202,17 @@ func (s *Server) handleSearchReposRequest(args [0]string, argsEscaped bool, w ht startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -73332,17 +73333,17 @@ func (s *Server) handleSearchTopicsRequest(args [0]string, argsEscaped bool, w h startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -73453,17 +73454,17 @@ func (s *Server) handleSearchUsersRequest(args [0]string, argsEscaped bool, w ht startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -73574,17 +73575,17 @@ func (s *Server) handleSecretScanningGetAlertRequest(args [3]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -73688,17 +73689,17 @@ func (s *Server) handleSecretScanningListAlertsForOrgRequest(args [1]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -73809,17 +73810,17 @@ func (s *Server) handleSecretScanningListAlertsForRepoRequest(args [2]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -73934,17 +73935,17 @@ func (s *Server) handleSecretScanningUpdateAlertRequest(args [3]string, argsEsca startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -74080,17 +74081,17 @@ func (s *Server) handleTeamsAddMemberLegacyRequest(args [2]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -74207,17 +74208,17 @@ func (s *Server) handleTeamsAddOrUpdateMembershipForUserInOrgRequest(args [3]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -74358,17 +74359,17 @@ func (s *Server) handleTeamsAddOrUpdateMembershipForUserLegacyRequest(args [2]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -74483,17 +74484,17 @@ func (s *Server) handleTeamsAddOrUpdateProjectPermissionsInOrgRequest(args [3]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -74616,17 +74617,17 @@ func (s *Server) handleTeamsAddOrUpdateProjectPermissionsLegacyRequest(args [2]s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -74748,17 +74749,17 @@ func (s *Server) handleTeamsAddOrUpdateRepoPermissionsInOrgRequest(args [4]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -74890,17 +74891,17 @@ func (s *Server) handleTeamsAddOrUpdateRepoPermissionsLegacyRequest(args [3]stri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -75018,17 +75019,17 @@ func (s *Server) handleTeamsCheckPermissionsForProjectInOrgRequest(args [3]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -75135,17 +75136,17 @@ func (s *Server) handleTeamsCheckPermissionsForProjectLegacyRequest(args [2]stri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -75249,17 +75250,17 @@ func (s *Server) handleTeamsCheckPermissionsForRepoInOrgRequest(args [4]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -75372,17 +75373,17 @@ func (s *Server) handleTeamsCheckPermissionsForRepoLegacyRequest(args [3]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -75489,17 +75490,17 @@ func (s *Server) handleTeamsCreateRequest(args [1]string, argsEscaped bool, w ht startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -75616,17 +75617,17 @@ func (s *Server) handleTeamsCreateDiscussionCommentInOrgRequest(args [3]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -75754,17 +75755,17 @@ func (s *Server) handleTeamsCreateDiscussionCommentLegacyRequest(args [2]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -75885,17 +75886,17 @@ func (s *Server) handleTeamsCreateDiscussionInOrgRequest(args [2]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -76019,17 +76020,17 @@ func (s *Server) handleTeamsCreateDiscussionLegacyRequest(args [1]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -76143,17 +76144,17 @@ func (s *Server) handleTeamsCreateOrUpdateIdpGroupConnectionsInOrgRequest(args [ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -76275,17 +76276,17 @@ func (s *Server) handleTeamsCreateOrUpdateIdpGroupConnectionsLegacyRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -76395,17 +76396,17 @@ func (s *Server) handleTeamsDeleteDiscussionCommentInOrgRequest(args [4]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -76515,17 +76516,17 @@ func (s *Server) handleTeamsDeleteDiscussionCommentLegacyRequest(args [3]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -76628,17 +76629,17 @@ func (s *Server) handleTeamsDeleteDiscussionInOrgRequest(args [3]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -76744,17 +76745,17 @@ func (s *Server) handleTeamsDeleteDiscussionLegacyRequest(args [2]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -76854,17 +76855,17 @@ func (s *Server) handleTeamsDeleteInOrgRequest(args [2]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -76967,17 +76968,17 @@ func (s *Server) handleTeamsDeleteLegacyRequest(args [1]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -77071,17 +77072,17 @@ func (s *Server) handleTeamsGetByNameRequest(args [2]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -77180,17 +77181,17 @@ func (s *Server) handleTeamsGetDiscussionCommentInOrgRequest(args [4]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -77300,17 +77301,17 @@ func (s *Server) handleTeamsGetDiscussionCommentLegacyRequest(args [3]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -77413,17 +77414,17 @@ func (s *Server) handleTeamsGetDiscussionInOrgRequest(args [3]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -77529,17 +77530,17 @@ func (s *Server) handleTeamsGetDiscussionLegacyRequest(args [2]string, argsEscap startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -77639,17 +77640,17 @@ func (s *Server) handleTeamsGetLegacyRequest(args [1]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -77747,17 +77748,17 @@ func (s *Server) handleTeamsGetMemberLegacyRequest(args [2]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -77860,17 +77861,17 @@ func (s *Server) handleTeamsGetMembershipForUserInOrgRequest(args [3]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -77980,17 +77981,17 @@ func (s *Server) handleTeamsGetMembershipForUserLegacyRequest(args [2]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -78086,17 +78087,17 @@ func (s *Server) handleTeamsListRequest(args [1]string, argsEscaped bool, w http startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -78198,17 +78199,17 @@ func (s *Server) handleTeamsListChildInOrgRequest(args [2]string, argsEscaped bo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -78316,17 +78317,17 @@ func (s *Server) handleTeamsListChildLegacyRequest(args [1]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -78429,17 +78430,17 @@ func (s *Server) handleTeamsListDiscussionCommentsInOrgRequest(args [3]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -78557,17 +78558,17 @@ func (s *Server) handleTeamsListDiscussionCommentsLegacyRequest(args [2]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -78678,17 +78679,17 @@ func (s *Server) handleTeamsListDiscussionsInOrgRequest(args [2]string, argsEsca startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -78806,17 +78807,17 @@ func (s *Server) handleTeamsListDiscussionsLegacyRequest(args [1]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -78923,17 +78924,17 @@ func (s *Server) handleTeamsListForAuthenticatedUserRequest(args [0]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -79037,17 +79038,17 @@ func (s *Server) handleTeamsListIdpGroupsForLegacyRequest(args [1]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -79145,17 +79146,17 @@ func (s *Server) handleTeamsListIdpGroupsForOrgRequest(args [1]string, argsEscap startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -79260,17 +79261,17 @@ func (s *Server) handleTeamsListIdpGroupsInOrgRequest(args [2]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -79367,17 +79368,17 @@ func (s *Server) handleTeamsListMembersInOrgRequest(args [2]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -79490,17 +79491,17 @@ func (s *Server) handleTeamsListMembersLegacyRequest(args [1]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -79609,17 +79610,17 @@ func (s *Server) handleTeamsListPendingInvitationsInOrgRequest(args [2]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -79731,17 +79732,17 @@ func (s *Server) handleTeamsListPendingInvitationsLegacyRequest(args [1]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -79843,17 +79844,17 @@ func (s *Server) handleTeamsListProjectsInOrgRequest(args [2]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -79962,17 +79963,17 @@ func (s *Server) handleTeamsListProjectsLegacyRequest(args [1]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -80074,17 +80075,17 @@ func (s *Server) handleTeamsListReposInOrgRequest(args [2]string, argsEscaped bo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -80192,17 +80193,17 @@ func (s *Server) handleTeamsListReposLegacyRequest(args [1]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -80322,17 +80323,17 @@ func (s *Server) handleTeamsRemoveMemberLegacyRequest(args [2]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -80442,17 +80443,17 @@ func (s *Server) handleTeamsRemoveMembershipForUserInOrgRequest(args [3]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -80569,17 +80570,17 @@ func (s *Server) handleTeamsRemoveMembershipForUserLegacyRequest(args [2]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -80680,17 +80681,17 @@ func (s *Server) handleTeamsRemoveProjectInOrgRequest(args [3]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -80798,17 +80799,17 @@ func (s *Server) handleTeamsRemoveProjectLegacyRequest(args [2]string, argsEscap startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -80909,17 +80910,17 @@ func (s *Server) handleTeamsRemoveRepoInOrgRequest(args [4]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -81031,17 +81032,17 @@ func (s *Server) handleTeamsRemoveRepoLegacyRequest(args [3]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -81144,17 +81145,17 @@ func (s *Server) handleTeamsUpdateDiscussionCommentInOrgRequest(args [4]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -81279,17 +81280,17 @@ func (s *Server) handleTeamsUpdateDiscussionCommentLegacyRequest(args [3]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -81408,17 +81409,17 @@ func (s *Server) handleTeamsUpdateDiscussionInOrgRequest(args [3]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -81540,17 +81541,17 @@ func (s *Server) handleTeamsUpdateDiscussionLegacyRequest(args [2]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -81663,17 +81664,17 @@ func (s *Server) handleTeamsUpdateInOrgRequest(args [2]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -81790,17 +81791,17 @@ func (s *Server) handleTeamsUpdateLegacyRequest(args [1]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -81907,17 +81908,17 @@ func (s *Server) handleUsersAddEmailForAuthenticatedRequest(args [0]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -82009,17 +82010,17 @@ func (s *Server) handleUsersBlockRequest(args [1]string, argsEscaped bool, w htt startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -82111,17 +82112,17 @@ func (s *Server) handleUsersCheckBlockedRequest(args [1]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -82213,17 +82214,17 @@ func (s *Server) handleUsersCheckFollowingForUserRequest(args [2]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -82319,17 +82320,17 @@ func (s *Server) handleUsersCheckPersonIsFollowedByAuthenticatedRequest(args [1] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -82423,17 +82424,17 @@ func (s *Server) handleUsersCreateGpgKeyForAuthenticatedRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -82527,17 +82528,17 @@ func (s *Server) handleUsersCreatePublicSSHKeyForAuthenticatedRequest(args [0]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -82629,17 +82630,17 @@ func (s *Server) handleUsersDeleteEmailForAuthenticatedRequest(args [0]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -82733,17 +82734,17 @@ func (s *Server) handleUsersDeleteGpgKeyForAuthenticatedRequest(args [1]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -82837,17 +82838,17 @@ func (s *Server) handleUsersDeletePublicSSHKeyForAuthenticatedRequest(args [1]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -82943,17 +82944,17 @@ func (s *Server) handleUsersFollowRequest(args [1]string, argsEscaped bool, w ht startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -83048,17 +83049,17 @@ func (s *Server) handleUsersGetAuthenticatedRequest(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -83145,17 +83146,17 @@ func (s *Server) handleUsersGetByUsernameRequest(args [1]string, argsEscaped boo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -83256,17 +83257,17 @@ func (s *Server) handleUsersGetContextForUserRequest(args [1]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -83368,17 +83369,17 @@ func (s *Server) handleUsersGetGpgKeyForAuthenticatedRequest(args [1]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -83472,17 +83473,17 @@ func (s *Server) handleUsersGetPublicSSHKeyForAuthenticatedRequest(args [1]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -83578,17 +83579,17 @@ func (s *Server) handleUsersListRequest(args [0]string, argsEscaped bool, w http startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -83684,17 +83685,17 @@ func (s *Server) handleUsersListBlockedByAuthenticatedRequest(args [0]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -83768,17 +83769,17 @@ func (s *Server) handleUsersListEmailsForAuthenticatedRequest(args [0]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -83874,17 +83875,17 @@ func (s *Server) handleUsersListFollowedByAuthenticatedRequest(args [0]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -83980,17 +83981,17 @@ func (s *Server) handleUsersListFollowersForAuthenticatedUserRequest(args [0]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -84086,17 +84087,17 @@ func (s *Server) handleUsersListFollowersForUserRequest(args [1]string, argsEsca startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -84196,17 +84197,17 @@ func (s *Server) handleUsersListFollowingForUserRequest(args [1]string, argsEsca startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -84308,17 +84309,17 @@ func (s *Server) handleUsersListGpgKeysForAuthenticatedRequest(args [0]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -84414,17 +84415,17 @@ func (s *Server) handleUsersListGpgKeysForUserRequest(args [1]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -84527,17 +84528,17 @@ func (s *Server) handleUsersListPublicEmailsForAuthenticatedRequest(args [0]stri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -84633,17 +84634,17 @@ func (s *Server) handleUsersListPublicKeysForUserRequest(args [1]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -84745,17 +84746,17 @@ func (s *Server) handleUsersListPublicSSHKeysForAuthenticatedRequest(args [0]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -84851,17 +84852,17 @@ func (s *Server) handleUsersSetPrimaryEmailVisibilityForAuthenticatedRequest(arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -84953,17 +84954,17 @@ func (s *Server) handleUsersUnblockRequest(args [1]string, argsEscaped bool, w h startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -85056,17 +85057,17 @@ func (s *Server) handleUsersUnfollowRequest(args [1]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -85160,17 +85161,17 @@ func (s *Server) handleUsersUpdateAuthenticatedRequest(args [0]string, argsEscap startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ diff --git a/examples/ex_gotd/oas_cfg_gen.go b/examples/ex_gotd/oas_cfg_gen.go index 200975a4a..2674bd0c4 100644 --- a/examples/ex_gotd/oas_cfg_gen.go +++ b/examples/ex_gotd/oas_cfg_gen.go @@ -7,6 +7,7 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/global" "go.opentelemetry.io/otel/metric/instrument" "go.opentelemetry.io/otel/trace" @@ -40,7 +41,7 @@ func (cfg *otelConfig) initOTEL() { cfg.TracerProvider = otel.GetTracerProvider() } if cfg.MeterProvider == nil { - cfg.MeterProvider = metric.NewNoopMeterProvider() + cfg.MeterProvider = global.MeterProvider() } cfg.Tracer = cfg.TracerProvider.Tracer(otelogen.Name, trace.WithInstrumentationVersion(otelogen.SemVersion()), @@ -200,7 +201,7 @@ func WithTracerProvider(provider trace.TracerProvider) Option { // WithMeterProvider specifies a meter provider to use for creating a meter. // -// If none is specified, the metric.NewNoopMeterProvider is used. +// If none is specified, the global.MeterProvider() is used. func WithMeterProvider(provider metric.MeterProvider) Option { return otelOptionFunc(func(cfg *otelConfig) { if provider != nil { diff --git a/examples/ex_gotd/oas_client_gen.go b/examples/ex_gotd/oas_client_gen.go index d369b9f64..18da0b985 100644 --- a/examples/ex_gotd/oas_client_gen.go +++ b/examples/ex_gotd/oas_client_gen.go @@ -11,6 +11,7 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" "go.opentelemetry.io/otel/trace" ht "github.com/ogen-go/ogen/http" @@ -97,11 +98,11 @@ func (c *Client) sendAddStickerToSet(ctx context.Context, request *AddStickerToS startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "AddStickerToSet", @@ -114,7 +115,7 @@ func (c *Client) sendAddStickerToSet(ctx context.Context, request *AddStickerToS if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -177,11 +178,11 @@ func (c *Client) sendAnswerCallbackQuery(ctx context.Context, request *AnswerCal startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "AnswerCallbackQuery", @@ -194,7 +195,7 @@ func (c *Client) sendAnswerCallbackQuery(ctx context.Context, request *AnswerCal if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -257,11 +258,11 @@ func (c *Client) sendAnswerInlineQuery(ctx context.Context, request *AnswerInlin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "AnswerInlineQuery", @@ -274,7 +275,7 @@ func (c *Client) sendAnswerInlineQuery(ctx context.Context, request *AnswerInlin if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -328,11 +329,11 @@ func (c *Client) sendAnswerPreCheckoutQuery(ctx context.Context, request *Answer startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "AnswerPreCheckoutQuery", @@ -345,7 +346,7 @@ func (c *Client) sendAnswerPreCheckoutQuery(ctx context.Context, request *Answer if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -408,11 +409,11 @@ func (c *Client) sendAnswerShippingQuery(ctx context.Context, request *AnswerShi startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "AnswerShippingQuery", @@ -425,7 +426,7 @@ func (c *Client) sendAnswerShippingQuery(ctx context.Context, request *AnswerShi if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -488,11 +489,11 @@ func (c *Client) sendAnswerWebAppQuery(ctx context.Context, request *AnswerWebAp startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "AnswerWebAppQuery", @@ -505,7 +506,7 @@ func (c *Client) sendAnswerWebAppQuery(ctx context.Context, request *AnswerWebAp if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -559,11 +560,11 @@ func (c *Client) sendApproveChatJoinRequest(ctx context.Context, request *Approv startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ApproveChatJoinRequest", @@ -576,7 +577,7 @@ func (c *Client) sendApproveChatJoinRequest(ctx context.Context, request *Approv if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -630,11 +631,11 @@ func (c *Client) sendBanChatMember(ctx context.Context, request *BanChatMember) startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "BanChatMember", @@ -647,7 +648,7 @@ func (c *Client) sendBanChatMember(ctx context.Context, request *BanChatMember) if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -701,11 +702,11 @@ func (c *Client) sendBanChatSenderChat(ctx context.Context, request *BanChatSend startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "BanChatSenderChat", @@ -718,7 +719,7 @@ func (c *Client) sendBanChatSenderChat(ctx context.Context, request *BanChatSend if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -772,11 +773,11 @@ func (c *Client) sendClose(ctx context.Context) (res *Result, err error) { startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "Close", @@ -789,7 +790,7 @@ func (c *Client) sendClose(ctx context.Context) (res *Result, err error) { if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -849,11 +850,11 @@ func (c *Client) sendCopyMessage(ctx context.Context, request *CopyMessage) (res startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "CopyMessage", @@ -866,7 +867,7 @@ func (c *Client) sendCopyMessage(ctx context.Context, request *CopyMessage) (res if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -929,11 +930,11 @@ func (c *Client) sendCreateChatInviteLink(ctx context.Context, request *CreateCh startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "CreateChatInviteLink", @@ -946,7 +947,7 @@ func (c *Client) sendCreateChatInviteLink(ctx context.Context, request *CreateCh if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1009,11 +1010,11 @@ func (c *Client) sendCreateNewStickerSet(ctx context.Context, request *CreateNew startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "CreateNewStickerSet", @@ -1026,7 +1027,7 @@ func (c *Client) sendCreateNewStickerSet(ctx context.Context, request *CreateNew if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1080,11 +1081,11 @@ func (c *Client) sendDeclineChatJoinRequest(ctx context.Context, request *Declin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "DeclineChatJoinRequest", @@ -1097,7 +1098,7 @@ func (c *Client) sendDeclineChatJoinRequest(ctx context.Context, request *Declin if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1151,11 +1152,11 @@ func (c *Client) sendDeleteChatPhoto(ctx context.Context, request *DeleteChatPho startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "DeleteChatPhoto", @@ -1168,7 +1169,7 @@ func (c *Client) sendDeleteChatPhoto(ctx context.Context, request *DeleteChatPho if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1222,11 +1223,11 @@ func (c *Client) sendDeleteChatStickerSet(ctx context.Context, request *DeleteCh startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "DeleteChatStickerSet", @@ -1239,7 +1240,7 @@ func (c *Client) sendDeleteChatStickerSet(ctx context.Context, request *DeleteCh if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1293,11 +1294,11 @@ func (c *Client) sendDeleteMessage(ctx context.Context, request *DeleteMessage) startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "DeleteMessage", @@ -1310,7 +1311,7 @@ func (c *Client) sendDeleteMessage(ctx context.Context, request *DeleteMessage) if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1364,11 +1365,11 @@ func (c *Client) sendDeleteMyCommands(ctx context.Context, request OptDeleteMyCo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "DeleteMyCommands", @@ -1381,7 +1382,7 @@ func (c *Client) sendDeleteMyCommands(ctx context.Context, request OptDeleteMyCo if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1435,11 +1436,11 @@ func (c *Client) sendDeleteStickerFromSet(ctx context.Context, request *DeleteSt startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "DeleteStickerFromSet", @@ -1452,7 +1453,7 @@ func (c *Client) sendDeleteStickerFromSet(ctx context.Context, request *DeleteSt if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1506,11 +1507,11 @@ func (c *Client) sendDeleteWebhook(ctx context.Context, request OptDeleteWebhook startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "DeleteWebhook", @@ -1523,7 +1524,7 @@ func (c *Client) sendDeleteWebhook(ctx context.Context, request OptDeleteWebhook if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1586,11 +1587,11 @@ func (c *Client) sendEditChatInviteLink(ctx context.Context, request *EditChatIn startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "EditChatInviteLink", @@ -1603,7 +1604,7 @@ func (c *Client) sendEditChatInviteLink(ctx context.Context, request *EditChatIn if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1666,11 +1667,11 @@ func (c *Client) sendEditMessageCaption(ctx context.Context, request *EditMessag startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "EditMessageCaption", @@ -1683,7 +1684,7 @@ func (c *Client) sendEditMessageCaption(ctx context.Context, request *EditMessag if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1746,11 +1747,11 @@ func (c *Client) sendEditMessageLiveLocation(ctx context.Context, request *EditM startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "EditMessageLiveLocation", @@ -1763,7 +1764,7 @@ func (c *Client) sendEditMessageLiveLocation(ctx context.Context, request *EditM if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1826,11 +1827,11 @@ func (c *Client) sendEditMessageMedia(ctx context.Context, request *EditMessageM startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "EditMessageMedia", @@ -1843,7 +1844,7 @@ func (c *Client) sendEditMessageMedia(ctx context.Context, request *EditMessageM if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1906,11 +1907,11 @@ func (c *Client) sendEditMessageReplyMarkup(ctx context.Context, request *EditMe startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "EditMessageReplyMarkup", @@ -1923,7 +1924,7 @@ func (c *Client) sendEditMessageReplyMarkup(ctx context.Context, request *EditMe if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1986,11 +1987,11 @@ func (c *Client) sendEditMessageText(ctx context.Context, request *EditMessageTe startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "EditMessageText", @@ -2003,7 +2004,7 @@ func (c *Client) sendEditMessageText(ctx context.Context, request *EditMessageTe if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2057,11 +2058,11 @@ func (c *Client) sendExportChatInviteLink(ctx context.Context, request *ExportCh startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ExportChatInviteLink", @@ -2074,7 +2075,7 @@ func (c *Client) sendExportChatInviteLink(ctx context.Context, request *ExportCh if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2128,11 +2129,11 @@ func (c *Client) sendForwardMessage(ctx context.Context, request *ForwardMessage startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ForwardMessage", @@ -2145,7 +2146,7 @@ func (c *Client) sendForwardMessage(ctx context.Context, request *ForwardMessage if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2199,11 +2200,11 @@ func (c *Client) sendGetChat(ctx context.Context, request *GetChat) (res *Result startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetChat", @@ -2216,7 +2217,7 @@ func (c *Client) sendGetChat(ctx context.Context, request *GetChat) (res *Result if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2270,11 +2271,11 @@ func (c *Client) sendGetChatAdministrators(ctx context.Context, request *GetChat startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetChatAdministrators", @@ -2287,7 +2288,7 @@ func (c *Client) sendGetChatAdministrators(ctx context.Context, request *GetChat if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2341,11 +2342,11 @@ func (c *Client) sendGetChatMember(ctx context.Context, request *GetChatMember) startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetChatMember", @@ -2358,7 +2359,7 @@ func (c *Client) sendGetChatMember(ctx context.Context, request *GetChatMember) if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2412,11 +2413,11 @@ func (c *Client) sendGetChatMemberCount(ctx context.Context, request *GetChatMem startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetChatMemberCount", @@ -2429,7 +2430,7 @@ func (c *Client) sendGetChatMemberCount(ctx context.Context, request *GetChatMem if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2483,11 +2484,11 @@ func (c *Client) sendGetChatMenuButton(ctx context.Context, request OptGetChatMe startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetChatMenuButton", @@ -2500,7 +2501,7 @@ func (c *Client) sendGetChatMenuButton(ctx context.Context, request OptGetChatMe if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2554,11 +2555,11 @@ func (c *Client) sendGetFile(ctx context.Context, request *GetFile) (res *Result startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetFile", @@ -2571,7 +2572,7 @@ func (c *Client) sendGetFile(ctx context.Context, request *GetFile) (res *Result if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2625,11 +2626,11 @@ func (c *Client) sendGetGameHighScores(ctx context.Context, request *GetGameHigh startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetGameHighScores", @@ -2642,7 +2643,7 @@ func (c *Client) sendGetGameHighScores(ctx context.Context, request *GetGameHigh if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2696,11 +2697,11 @@ func (c *Client) sendGetMe(ctx context.Context) (res *ResultUser, err error) { startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetMe", @@ -2713,7 +2714,7 @@ func (c *Client) sendGetMe(ctx context.Context) (res *ResultUser, err error) { if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2764,11 +2765,11 @@ func (c *Client) sendGetMyCommands(ctx context.Context, request OptGetMyCommands startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetMyCommands", @@ -2781,7 +2782,7 @@ func (c *Client) sendGetMyCommands(ctx context.Context, request OptGetMyCommands if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2835,11 +2836,11 @@ func (c *Client) sendGetMyDefaultAdministratorRights(ctx context.Context, reques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetMyDefaultAdministratorRights", @@ -2852,7 +2853,7 @@ func (c *Client) sendGetMyDefaultAdministratorRights(ctx context.Context, reques if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2906,11 +2907,11 @@ func (c *Client) sendGetStickerSet(ctx context.Context, request *GetStickerSet) startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetStickerSet", @@ -2923,7 +2924,7 @@ func (c *Client) sendGetStickerSet(ctx context.Context, request *GetStickerSet) if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2993,11 +2994,11 @@ func (c *Client) sendGetUpdates(ctx context.Context, request OptGetUpdates) (res startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetUpdates", @@ -3010,7 +3011,7 @@ func (c *Client) sendGetUpdates(ctx context.Context, request OptGetUpdates) (res if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -3073,11 +3074,11 @@ func (c *Client) sendGetUserProfilePhotos(ctx context.Context, request *GetUserP startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetUserProfilePhotos", @@ -3090,7 +3091,7 @@ func (c *Client) sendGetUserProfilePhotos(ctx context.Context, request *GetUserP if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -3144,11 +3145,11 @@ func (c *Client) sendGetWebhookInfo(ctx context.Context) (res *ResultWebhookInfo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetWebhookInfo", @@ -3161,7 +3162,7 @@ func (c *Client) sendGetWebhookInfo(ctx context.Context) (res *ResultWebhookInfo if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -3212,11 +3213,11 @@ func (c *Client) sendLeaveChat(ctx context.Context, request *LeaveChat) (res *Re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "LeaveChat", @@ -3229,7 +3230,7 @@ func (c *Client) sendLeaveChat(ctx context.Context, request *LeaveChat) (res *Re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -3283,11 +3284,11 @@ func (c *Client) sendLogOut(ctx context.Context) (res *Result, err error) { startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "LogOut", @@ -3300,7 +3301,7 @@ func (c *Client) sendLogOut(ctx context.Context) (res *Result, err error) { if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -3351,11 +3352,11 @@ func (c *Client) sendPinChatMessage(ctx context.Context, request *PinChatMessage startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PinChatMessage", @@ -3368,7 +3369,7 @@ func (c *Client) sendPinChatMessage(ctx context.Context, request *PinChatMessage if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -3422,11 +3423,11 @@ func (c *Client) sendPromoteChatMember(ctx context.Context, request *PromoteChat startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PromoteChatMember", @@ -3439,7 +3440,7 @@ func (c *Client) sendPromoteChatMember(ctx context.Context, request *PromoteChat if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -3493,11 +3494,11 @@ func (c *Client) sendRestrictChatMember(ctx context.Context, request *RestrictCh startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "RestrictChatMember", @@ -3510,7 +3511,7 @@ func (c *Client) sendRestrictChatMember(ctx context.Context, request *RestrictCh if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -3564,11 +3565,11 @@ func (c *Client) sendRevokeChatInviteLink(ctx context.Context, request *RevokeCh startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "RevokeChatInviteLink", @@ -3581,7 +3582,7 @@ func (c *Client) sendRevokeChatInviteLink(ctx context.Context, request *RevokeCh if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -3644,11 +3645,11 @@ func (c *Client) sendSendAnimation(ctx context.Context, request *SendAnimation) startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SendAnimation", @@ -3661,7 +3662,7 @@ func (c *Client) sendSendAnimation(ctx context.Context, request *SendAnimation) if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -3724,11 +3725,11 @@ func (c *Client) sendSendAudio(ctx context.Context, request *SendAudio) (res *Re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SendAudio", @@ -3741,7 +3742,7 @@ func (c *Client) sendSendAudio(ctx context.Context, request *SendAudio) (res *Re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -3795,11 +3796,11 @@ func (c *Client) sendSendChatAction(ctx context.Context, request *SendChatAction startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SendChatAction", @@ -3812,7 +3813,7 @@ func (c *Client) sendSendChatAction(ctx context.Context, request *SendChatAction if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -3875,11 +3876,11 @@ func (c *Client) sendSendContact(ctx context.Context, request *SendContact) (res startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SendContact", @@ -3892,7 +3893,7 @@ func (c *Client) sendSendContact(ctx context.Context, request *SendContact) (res if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -3955,11 +3956,11 @@ func (c *Client) sendSendDice(ctx context.Context, request *SendDice) (res *Resu startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SendDice", @@ -3972,7 +3973,7 @@ func (c *Client) sendSendDice(ctx context.Context, request *SendDice) (res *Resu if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -4035,11 +4036,11 @@ func (c *Client) sendSendDocument(ctx context.Context, request *SendDocument) (r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SendDocument", @@ -4052,7 +4053,7 @@ func (c *Client) sendSendDocument(ctx context.Context, request *SendDocument) (r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -4115,11 +4116,11 @@ func (c *Client) sendSendGame(ctx context.Context, request *SendGame) (res *Resu startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SendGame", @@ -4132,7 +4133,7 @@ func (c *Client) sendSendGame(ctx context.Context, request *SendGame) (res *Resu if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -4195,11 +4196,11 @@ func (c *Client) sendSendInvoice(ctx context.Context, request *SendInvoice) (res startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SendInvoice", @@ -4212,7 +4213,7 @@ func (c *Client) sendSendInvoice(ctx context.Context, request *SendInvoice) (res if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -4275,11 +4276,11 @@ func (c *Client) sendSendLocation(ctx context.Context, request *SendLocation) (r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SendLocation", @@ -4292,7 +4293,7 @@ func (c *Client) sendSendLocation(ctx context.Context, request *SendLocation) (r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -4355,11 +4356,11 @@ func (c *Client) sendSendMediaGroup(ctx context.Context, request *SendMediaGroup startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SendMediaGroup", @@ -4372,7 +4373,7 @@ func (c *Client) sendSendMediaGroup(ctx context.Context, request *SendMediaGroup if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -4435,11 +4436,11 @@ func (c *Client) sendSendMessage(ctx context.Context, request *SendMessage) (res startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SendMessage", @@ -4452,7 +4453,7 @@ func (c *Client) sendSendMessage(ctx context.Context, request *SendMessage) (res if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -4515,11 +4516,11 @@ func (c *Client) sendSendPhoto(ctx context.Context, request *SendPhoto) (res *Re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SendPhoto", @@ -4532,7 +4533,7 @@ func (c *Client) sendSendPhoto(ctx context.Context, request *SendPhoto) (res *Re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -4595,11 +4596,11 @@ func (c *Client) sendSendPoll(ctx context.Context, request *SendPoll) (res *Resu startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SendPoll", @@ -4612,7 +4613,7 @@ func (c *Client) sendSendPoll(ctx context.Context, request *SendPoll) (res *Resu if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -4675,11 +4676,11 @@ func (c *Client) sendSendSticker(ctx context.Context, request *SendSticker) (res startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SendSticker", @@ -4692,7 +4693,7 @@ func (c *Client) sendSendSticker(ctx context.Context, request *SendSticker) (res if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -4755,11 +4756,11 @@ func (c *Client) sendSendVenue(ctx context.Context, request *SendVenue) (res *Re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SendVenue", @@ -4772,7 +4773,7 @@ func (c *Client) sendSendVenue(ctx context.Context, request *SendVenue) (res *Re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -4835,11 +4836,11 @@ func (c *Client) sendSendVideo(ctx context.Context, request *SendVideo) (res *Re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SendVideo", @@ -4852,7 +4853,7 @@ func (c *Client) sendSendVideo(ctx context.Context, request *SendVideo) (res *Re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -4915,11 +4916,11 @@ func (c *Client) sendSendVideoNote(ctx context.Context, request *SendVideoNote) startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SendVideoNote", @@ -4932,7 +4933,7 @@ func (c *Client) sendSendVideoNote(ctx context.Context, request *SendVideoNote) if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -4995,11 +4996,11 @@ func (c *Client) sendSendVoice(ctx context.Context, request *SendVoice) (res *Re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SendVoice", @@ -5012,7 +5013,7 @@ func (c *Client) sendSendVoice(ctx context.Context, request *SendVoice) (res *Re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -5075,11 +5076,11 @@ func (c *Client) sendSetChatAdministratorCustomTitle(ctx context.Context, reques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SetChatAdministratorCustomTitle", @@ -5092,7 +5093,7 @@ func (c *Client) sendSetChatAdministratorCustomTitle(ctx context.Context, reques if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -5155,11 +5156,11 @@ func (c *Client) sendSetChatDescription(ctx context.Context, request *SetChatDes startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SetChatDescription", @@ -5172,7 +5173,7 @@ func (c *Client) sendSetChatDescription(ctx context.Context, request *SetChatDes if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -5226,11 +5227,11 @@ func (c *Client) sendSetChatMenuButton(ctx context.Context, request OptSetChatMe startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SetChatMenuButton", @@ -5243,7 +5244,7 @@ func (c *Client) sendSetChatMenuButton(ctx context.Context, request OptSetChatMe if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -5297,11 +5298,11 @@ func (c *Client) sendSetChatPermissions(ctx context.Context, request *SetChatPer startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SetChatPermissions", @@ -5314,7 +5315,7 @@ func (c *Client) sendSetChatPermissions(ctx context.Context, request *SetChatPer if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -5368,11 +5369,11 @@ func (c *Client) sendSetChatPhoto(ctx context.Context, request *SetChatPhoto) (r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SetChatPhoto", @@ -5385,7 +5386,7 @@ func (c *Client) sendSetChatPhoto(ctx context.Context, request *SetChatPhoto) (r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -5439,11 +5440,11 @@ func (c *Client) sendSetChatStickerSet(ctx context.Context, request *SetChatStic startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SetChatStickerSet", @@ -5456,7 +5457,7 @@ func (c *Client) sendSetChatStickerSet(ctx context.Context, request *SetChatStic if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -5519,11 +5520,11 @@ func (c *Client) sendSetChatTitle(ctx context.Context, request *SetChatTitle) (r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SetChatTitle", @@ -5536,7 +5537,7 @@ func (c *Client) sendSetChatTitle(ctx context.Context, request *SetChatTitle) (r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -5590,11 +5591,11 @@ func (c *Client) sendSetGameScore(ctx context.Context, request *SetGameScore) (r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SetGameScore", @@ -5607,7 +5608,7 @@ func (c *Client) sendSetGameScore(ctx context.Context, request *SetGameScore) (r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -5670,11 +5671,11 @@ func (c *Client) sendSetMyCommands(ctx context.Context, request *SetMyCommands) startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SetMyCommands", @@ -5687,7 +5688,7 @@ func (c *Client) sendSetMyCommands(ctx context.Context, request *SetMyCommands) if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -5741,11 +5742,11 @@ func (c *Client) sendSetMyDefaultAdministratorRights(ctx context.Context, reques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SetMyDefaultAdministratorRights", @@ -5758,7 +5759,7 @@ func (c *Client) sendSetMyDefaultAdministratorRights(ctx context.Context, reques if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -5821,11 +5822,11 @@ func (c *Client) sendSetPassportDataErrors(ctx context.Context, request *SetPass startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SetPassportDataErrors", @@ -5838,7 +5839,7 @@ func (c *Client) sendSetPassportDataErrors(ctx context.Context, request *SetPass if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -5892,11 +5893,11 @@ func (c *Client) sendSetStickerPositionInSet(ctx context.Context, request *SetSt startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SetStickerPositionInSet", @@ -5909,7 +5910,7 @@ func (c *Client) sendSetStickerPositionInSet(ctx context.Context, request *SetSt if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -5963,11 +5964,11 @@ func (c *Client) sendSetStickerSetThumb(ctx context.Context, request *SetSticker startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SetStickerSetThumb", @@ -5980,7 +5981,7 @@ func (c *Client) sendSetStickerSetThumb(ctx context.Context, request *SetSticker if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -6034,11 +6035,11 @@ func (c *Client) sendSetWebhook(ctx context.Context, request *SetWebhook) (res * startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SetWebhook", @@ -6051,7 +6052,7 @@ func (c *Client) sendSetWebhook(ctx context.Context, request *SetWebhook) (res * if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -6114,11 +6115,11 @@ func (c *Client) sendStopMessageLiveLocation(ctx context.Context, request *StopM startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "StopMessageLiveLocation", @@ -6131,7 +6132,7 @@ func (c *Client) sendStopMessageLiveLocation(ctx context.Context, request *StopM if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -6194,11 +6195,11 @@ func (c *Client) sendStopPoll(ctx context.Context, request *StopPoll) (res *Resu startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "StopPoll", @@ -6211,7 +6212,7 @@ func (c *Client) sendStopPoll(ctx context.Context, request *StopPoll) (res *Resu if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -6265,11 +6266,11 @@ func (c *Client) sendUnbanChatMember(ctx context.Context, request *UnbanChatMemb startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "UnbanChatMember", @@ -6282,7 +6283,7 @@ func (c *Client) sendUnbanChatMember(ctx context.Context, request *UnbanChatMemb if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -6336,11 +6337,11 @@ func (c *Client) sendUnbanChatSenderChat(ctx context.Context, request *UnbanChat startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "UnbanChatSenderChat", @@ -6353,7 +6354,7 @@ func (c *Client) sendUnbanChatSenderChat(ctx context.Context, request *UnbanChat if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -6407,11 +6408,11 @@ func (c *Client) sendUnpinAllChatMessages(ctx context.Context, request *UnpinAll startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "UnpinAllChatMessages", @@ -6424,7 +6425,7 @@ func (c *Client) sendUnpinAllChatMessages(ctx context.Context, request *UnpinAll if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -6478,11 +6479,11 @@ func (c *Client) sendUnpinChatMessage(ctx context.Context, request *UnpinChatMes startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "UnpinChatMessage", @@ -6495,7 +6496,7 @@ func (c *Client) sendUnpinChatMessage(ctx context.Context, request *UnpinChatMes if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -6549,11 +6550,11 @@ func (c *Client) sendUploadStickerFile(ctx context.Context, request *UploadStick startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "UploadStickerFile", @@ -6566,7 +6567,7 @@ func (c *Client) sendUploadStickerFile(ctx context.Context, request *UploadStick if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() diff --git a/examples/ex_gotd/oas_handlers_gen.go b/examples/ex_gotd/oas_handlers_gen.go index 0afdad1b3..3547d4c18 100644 --- a/examples/ex_gotd/oas_handlers_gen.go +++ b/examples/ex_gotd/oas_handlers_gen.go @@ -10,6 +10,7 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" semconv "go.opentelemetry.io/otel/semconv/v1.17.0" "go.opentelemetry.io/otel/trace" @@ -40,17 +41,17 @@ func (s *Server) handleAddStickerToSetRequest(args [0]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -148,17 +149,17 @@ func (s *Server) handleAnswerCallbackQueryRequest(args [0]string, argsEscaped bo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -256,17 +257,17 @@ func (s *Server) handleAnswerInlineQueryRequest(args [0]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -364,17 +365,17 @@ func (s *Server) handleAnswerPreCheckoutQueryRequest(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -472,17 +473,17 @@ func (s *Server) handleAnswerShippingQueryRequest(args [0]string, argsEscaped bo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -580,17 +581,17 @@ func (s *Server) handleAnswerWebAppQueryRequest(args [0]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -688,17 +689,17 @@ func (s *Server) handleApproveChatJoinRequestRequest(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -796,17 +797,17 @@ func (s *Server) handleBanChatMemberRequest(args [0]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -904,17 +905,17 @@ func (s *Server) handleBanChatSenderChatRequest(args [0]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1012,17 +1013,17 @@ func (s *Server) handleCloseRequest(args [0]string, argsEscaped bool, w http.Res startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -1101,17 +1102,17 @@ func (s *Server) handleCopyMessageRequest(args [0]string, argsEscaped bool, w ht startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1209,17 +1210,17 @@ func (s *Server) handleCreateChatInviteLinkRequest(args [0]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1317,17 +1318,17 @@ func (s *Server) handleCreateNewStickerSetRequest(args [0]string, argsEscaped bo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1425,17 +1426,17 @@ func (s *Server) handleDeclineChatJoinRequestRequest(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1533,17 +1534,17 @@ func (s *Server) handleDeleteChatPhotoRequest(args [0]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1641,17 +1642,17 @@ func (s *Server) handleDeleteChatStickerSetRequest(args [0]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1749,17 +1750,17 @@ func (s *Server) handleDeleteMessageRequest(args [0]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1857,17 +1858,17 @@ func (s *Server) handleDeleteMyCommandsRequest(args [0]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1965,17 +1966,17 @@ func (s *Server) handleDeleteStickerFromSetRequest(args [0]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2073,17 +2074,17 @@ func (s *Server) handleDeleteWebhookRequest(args [0]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2181,17 +2182,17 @@ func (s *Server) handleEditChatInviteLinkRequest(args [0]string, argsEscaped boo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2289,17 +2290,17 @@ func (s *Server) handleEditMessageCaptionRequest(args [0]string, argsEscaped boo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2397,17 +2398,17 @@ func (s *Server) handleEditMessageLiveLocationRequest(args [0]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2505,17 +2506,17 @@ func (s *Server) handleEditMessageMediaRequest(args [0]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2613,17 +2614,17 @@ func (s *Server) handleEditMessageReplyMarkupRequest(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2721,17 +2722,17 @@ func (s *Server) handleEditMessageTextRequest(args [0]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2829,17 +2830,17 @@ func (s *Server) handleExportChatInviteLinkRequest(args [0]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2937,17 +2938,17 @@ func (s *Server) handleForwardMessageRequest(args [0]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -3045,17 +3046,17 @@ func (s *Server) handleGetChatRequest(args [0]string, argsEscaped bool, w http.R startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -3153,17 +3154,17 @@ func (s *Server) handleGetChatAdministratorsRequest(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -3261,17 +3262,17 @@ func (s *Server) handleGetChatMemberRequest(args [0]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -3369,17 +3370,17 @@ func (s *Server) handleGetChatMemberCountRequest(args [0]string, argsEscaped boo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -3477,17 +3478,17 @@ func (s *Server) handleGetChatMenuButtonRequest(args [0]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -3585,17 +3586,17 @@ func (s *Server) handleGetFileRequest(args [0]string, argsEscaped bool, w http.R startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -3693,17 +3694,17 @@ func (s *Server) handleGetGameHighScoresRequest(args [0]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -3801,17 +3802,17 @@ func (s *Server) handleGetMeRequest(args [0]string, argsEscaped bool, w http.Res startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -3890,17 +3891,17 @@ func (s *Server) handleGetMyCommandsRequest(args [0]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -3998,17 +3999,17 @@ func (s *Server) handleGetMyDefaultAdministratorRightsRequest(args [0]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -4106,17 +4107,17 @@ func (s *Server) handleGetStickerSetRequest(args [0]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -4214,17 +4215,17 @@ func (s *Server) handleGetUpdatesRequest(args [0]string, argsEscaped bool, w htt startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -4322,17 +4323,17 @@ func (s *Server) handleGetUserProfilePhotosRequest(args [0]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -4430,17 +4431,17 @@ func (s *Server) handleGetWebhookInfoRequest(args [0]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -4519,17 +4520,17 @@ func (s *Server) handleLeaveChatRequest(args [0]string, argsEscaped bool, w http startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -4627,17 +4628,17 @@ func (s *Server) handleLogOutRequest(args [0]string, argsEscaped bool, w http.Re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -4716,17 +4717,17 @@ func (s *Server) handlePinChatMessageRequest(args [0]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -4824,17 +4825,17 @@ func (s *Server) handlePromoteChatMemberRequest(args [0]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -4932,17 +4933,17 @@ func (s *Server) handleRestrictChatMemberRequest(args [0]string, argsEscaped boo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -5040,17 +5041,17 @@ func (s *Server) handleRevokeChatInviteLinkRequest(args [0]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -5148,17 +5149,17 @@ func (s *Server) handleSendAnimationRequest(args [0]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -5256,17 +5257,17 @@ func (s *Server) handleSendAudioRequest(args [0]string, argsEscaped bool, w http startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -5364,17 +5365,17 @@ func (s *Server) handleSendChatActionRequest(args [0]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -5472,17 +5473,17 @@ func (s *Server) handleSendContactRequest(args [0]string, argsEscaped bool, w ht startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -5580,17 +5581,17 @@ func (s *Server) handleSendDiceRequest(args [0]string, argsEscaped bool, w http. startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -5688,17 +5689,17 @@ func (s *Server) handleSendDocumentRequest(args [0]string, argsEscaped bool, w h startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -5796,17 +5797,17 @@ func (s *Server) handleSendGameRequest(args [0]string, argsEscaped bool, w http. startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -5904,17 +5905,17 @@ func (s *Server) handleSendInvoiceRequest(args [0]string, argsEscaped bool, w ht startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -6012,17 +6013,17 @@ func (s *Server) handleSendLocationRequest(args [0]string, argsEscaped bool, w h startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -6120,17 +6121,17 @@ func (s *Server) handleSendMediaGroupRequest(args [0]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -6228,17 +6229,17 @@ func (s *Server) handleSendMessageRequest(args [0]string, argsEscaped bool, w ht startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -6336,17 +6337,17 @@ func (s *Server) handleSendPhotoRequest(args [0]string, argsEscaped bool, w http startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -6444,17 +6445,17 @@ func (s *Server) handleSendPollRequest(args [0]string, argsEscaped bool, w http. startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -6552,17 +6553,17 @@ func (s *Server) handleSendStickerRequest(args [0]string, argsEscaped bool, w ht startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -6660,17 +6661,17 @@ func (s *Server) handleSendVenueRequest(args [0]string, argsEscaped bool, w http startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -6768,17 +6769,17 @@ func (s *Server) handleSendVideoRequest(args [0]string, argsEscaped bool, w http startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -6876,17 +6877,17 @@ func (s *Server) handleSendVideoNoteRequest(args [0]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -6984,17 +6985,17 @@ func (s *Server) handleSendVoiceRequest(args [0]string, argsEscaped bool, w http startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -7092,17 +7093,17 @@ func (s *Server) handleSetChatAdministratorCustomTitleRequest(args [0]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -7200,17 +7201,17 @@ func (s *Server) handleSetChatDescriptionRequest(args [0]string, argsEscaped boo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -7308,17 +7309,17 @@ func (s *Server) handleSetChatMenuButtonRequest(args [0]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -7416,17 +7417,17 @@ func (s *Server) handleSetChatPermissionsRequest(args [0]string, argsEscaped boo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -7524,17 +7525,17 @@ func (s *Server) handleSetChatPhotoRequest(args [0]string, argsEscaped bool, w h startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -7632,17 +7633,17 @@ func (s *Server) handleSetChatStickerSetRequest(args [0]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -7740,17 +7741,17 @@ func (s *Server) handleSetChatTitleRequest(args [0]string, argsEscaped bool, w h startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -7848,17 +7849,17 @@ func (s *Server) handleSetGameScoreRequest(args [0]string, argsEscaped bool, w h startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -7956,17 +7957,17 @@ func (s *Server) handleSetMyCommandsRequest(args [0]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -8064,17 +8065,17 @@ func (s *Server) handleSetMyDefaultAdministratorRightsRequest(args [0]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -8172,17 +8173,17 @@ func (s *Server) handleSetPassportDataErrorsRequest(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -8280,17 +8281,17 @@ func (s *Server) handleSetStickerPositionInSetRequest(args [0]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -8388,17 +8389,17 @@ func (s *Server) handleSetStickerSetThumbRequest(args [0]string, argsEscaped boo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -8496,17 +8497,17 @@ func (s *Server) handleSetWebhookRequest(args [0]string, argsEscaped bool, w htt startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -8604,17 +8605,17 @@ func (s *Server) handleStopMessageLiveLocationRequest(args [0]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -8712,17 +8713,17 @@ func (s *Server) handleStopPollRequest(args [0]string, argsEscaped bool, w http. startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -8820,17 +8821,17 @@ func (s *Server) handleUnbanChatMemberRequest(args [0]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -8928,17 +8929,17 @@ func (s *Server) handleUnbanChatSenderChatRequest(args [0]string, argsEscaped bo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -9036,17 +9037,17 @@ func (s *Server) handleUnpinAllChatMessagesRequest(args [0]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -9144,17 +9145,17 @@ func (s *Server) handleUnpinChatMessageRequest(args [0]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -9252,17 +9253,17 @@ func (s *Server) handleUploadStickerFileRequest(args [0]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ diff --git a/examples/ex_k8s/oas_cfg_gen.go b/examples/ex_k8s/oas_cfg_gen.go index 41629dbc0..60b09371c 100644 --- a/examples/ex_k8s/oas_cfg_gen.go +++ b/examples/ex_k8s/oas_cfg_gen.go @@ -7,6 +7,7 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/global" "go.opentelemetry.io/otel/metric/instrument" "go.opentelemetry.io/otel/trace" @@ -44,7 +45,7 @@ func (cfg *otelConfig) initOTEL() { cfg.TracerProvider = otel.GetTracerProvider() } if cfg.MeterProvider == nil { - cfg.MeterProvider = metric.NewNoopMeterProvider() + cfg.MeterProvider = global.MeterProvider() } cfg.Tracer = cfg.TracerProvider.Tracer(otelogen.Name, trace.WithInstrumentationVersion(otelogen.SemVersion()), @@ -204,7 +205,7 @@ func WithTracerProvider(provider trace.TracerProvider) Option { // WithMeterProvider specifies a meter provider to use for creating a meter. // -// If none is specified, the metric.NewNoopMeterProvider is used. +// If none is specified, the global.MeterProvider() is used. func WithMeterProvider(provider metric.MeterProvider) Option { return otelOptionFunc(func(cfg *otelConfig) { if provider != nil { diff --git a/examples/ex_k8s/oas_client_gen.go b/examples/ex_k8s/oas_client_gen.go index 26258ff05..e4a59fce8 100644 --- a/examples/ex_k8s/oas_client_gen.go +++ b/examples/ex_k8s/oas_client_gen.go @@ -11,6 +11,7 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" "go.opentelemetry.io/otel/trace" "github.com/ogen-go/ogen/conv" @@ -90,11 +91,11 @@ func (c *Client) sendConnectCoreV1DeleteNamespacedPodProxy(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ConnectCoreV1DeleteNamespacedPodProxy", @@ -107,7 +108,7 @@ func (c *Client) sendConnectCoreV1DeleteNamespacedPodProxy(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -252,11 +253,11 @@ func (c *Client) sendConnectCoreV1DeleteNamespacedPodProxyWithPath(ctx context.C startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ConnectCoreV1DeleteNamespacedPodProxyWithPath", @@ -269,7 +270,7 @@ func (c *Client) sendConnectCoreV1DeleteNamespacedPodProxyWithPath(ctx context.C if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -432,11 +433,11 @@ func (c *Client) sendConnectCoreV1DeleteNamespacedServiceProxy(ctx context.Conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ConnectCoreV1DeleteNamespacedServiceProxy", @@ -449,7 +450,7 @@ func (c *Client) sendConnectCoreV1DeleteNamespacedServiceProxy(ctx context.Conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -594,11 +595,11 @@ func (c *Client) sendConnectCoreV1DeleteNamespacedServiceProxyWithPath(ctx conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ConnectCoreV1DeleteNamespacedServiceProxyWithPath", @@ -611,7 +612,7 @@ func (c *Client) sendConnectCoreV1DeleteNamespacedServiceProxyWithPath(ctx conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -774,11 +775,11 @@ func (c *Client) sendConnectCoreV1DeleteNodeProxy(ctx context.Context, params Co startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ConnectCoreV1DeleteNodeProxy", @@ -791,7 +792,7 @@ func (c *Client) sendConnectCoreV1DeleteNodeProxy(ctx context.Context, params Co if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -917,11 +918,11 @@ func (c *Client) sendConnectCoreV1DeleteNodeProxyWithPath(ctx context.Context, p startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ConnectCoreV1DeleteNodeProxyWithPath", @@ -934,7 +935,7 @@ func (c *Client) sendConnectCoreV1DeleteNodeProxyWithPath(ctx context.Context, p if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1078,11 +1079,11 @@ func (c *Client) sendConnectCoreV1GetNamespacedPodAttach(ctx context.Context, pa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ConnectCoreV1GetNamespacedPodAttach", @@ -1095,7 +1096,7 @@ func (c *Client) sendConnectCoreV1GetNamespacedPodAttach(ctx context.Context, pa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1308,11 +1309,11 @@ func (c *Client) sendConnectCoreV1GetNamespacedPodExec(ctx context.Context, para startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ConnectCoreV1GetNamespacedPodExec", @@ -1325,7 +1326,7 @@ func (c *Client) sendConnectCoreV1GetNamespacedPodExec(ctx context.Context, para if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1555,11 +1556,11 @@ func (c *Client) sendConnectCoreV1GetNamespacedPodPortforward(ctx context.Contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ConnectCoreV1GetNamespacedPodPortforward", @@ -1572,7 +1573,7 @@ func (c *Client) sendConnectCoreV1GetNamespacedPodPortforward(ctx context.Contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1717,11 +1718,11 @@ func (c *Client) sendConnectCoreV1GetNamespacedPodProxy(ctx context.Context, par startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ConnectCoreV1GetNamespacedPodProxy", @@ -1734,7 +1735,7 @@ func (c *Client) sendConnectCoreV1GetNamespacedPodProxy(ctx context.Context, par if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1879,11 +1880,11 @@ func (c *Client) sendConnectCoreV1GetNamespacedPodProxyWithPath(ctx context.Cont startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ConnectCoreV1GetNamespacedPodProxyWithPath", @@ -1896,7 +1897,7 @@ func (c *Client) sendConnectCoreV1GetNamespacedPodProxyWithPath(ctx context.Cont if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2059,11 +2060,11 @@ func (c *Client) sendConnectCoreV1GetNamespacedServiceProxy(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ConnectCoreV1GetNamespacedServiceProxy", @@ -2076,7 +2077,7 @@ func (c *Client) sendConnectCoreV1GetNamespacedServiceProxy(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2221,11 +2222,11 @@ func (c *Client) sendConnectCoreV1GetNamespacedServiceProxyWithPath(ctx context. startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ConnectCoreV1GetNamespacedServiceProxyWithPath", @@ -2238,7 +2239,7 @@ func (c *Client) sendConnectCoreV1GetNamespacedServiceProxyWithPath(ctx context. if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2401,11 +2402,11 @@ func (c *Client) sendConnectCoreV1GetNodeProxy(ctx context.Context, params Conne startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ConnectCoreV1GetNodeProxy", @@ -2418,7 +2419,7 @@ func (c *Client) sendConnectCoreV1GetNodeProxy(ctx context.Context, params Conne if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2544,11 +2545,11 @@ func (c *Client) sendConnectCoreV1GetNodeProxyWithPath(ctx context.Context, para startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ConnectCoreV1GetNodeProxyWithPath", @@ -2561,7 +2562,7 @@ func (c *Client) sendConnectCoreV1GetNodeProxyWithPath(ctx context.Context, para if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2705,11 +2706,11 @@ func (c *Client) sendConnectCoreV1HeadNamespacedPodProxy(ctx context.Context, pa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ConnectCoreV1HeadNamespacedPodProxy", @@ -2722,7 +2723,7 @@ func (c *Client) sendConnectCoreV1HeadNamespacedPodProxy(ctx context.Context, pa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2867,11 +2868,11 @@ func (c *Client) sendConnectCoreV1HeadNamespacedPodProxyWithPath(ctx context.Con startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ConnectCoreV1HeadNamespacedPodProxyWithPath", @@ -2884,7 +2885,7 @@ func (c *Client) sendConnectCoreV1HeadNamespacedPodProxyWithPath(ctx context.Con if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -3047,11 +3048,11 @@ func (c *Client) sendConnectCoreV1HeadNamespacedServiceProxy(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ConnectCoreV1HeadNamespacedServiceProxy", @@ -3064,7 +3065,7 @@ func (c *Client) sendConnectCoreV1HeadNamespacedServiceProxy(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -3209,11 +3210,11 @@ func (c *Client) sendConnectCoreV1HeadNamespacedServiceProxyWithPath(ctx context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ConnectCoreV1HeadNamespacedServiceProxyWithPath", @@ -3226,7 +3227,7 @@ func (c *Client) sendConnectCoreV1HeadNamespacedServiceProxyWithPath(ctx context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -3389,11 +3390,11 @@ func (c *Client) sendConnectCoreV1HeadNodeProxy(ctx context.Context, params Conn startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ConnectCoreV1HeadNodeProxy", @@ -3406,7 +3407,7 @@ func (c *Client) sendConnectCoreV1HeadNodeProxy(ctx context.Context, params Conn if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -3532,11 +3533,11 @@ func (c *Client) sendConnectCoreV1HeadNodeProxyWithPath(ctx context.Context, par startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ConnectCoreV1HeadNodeProxyWithPath", @@ -3549,7 +3550,7 @@ func (c *Client) sendConnectCoreV1HeadNodeProxyWithPath(ctx context.Context, par if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -3693,11 +3694,11 @@ func (c *Client) sendConnectCoreV1OptionsNamespacedPodProxy(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ConnectCoreV1OptionsNamespacedPodProxy", @@ -3710,7 +3711,7 @@ func (c *Client) sendConnectCoreV1OptionsNamespacedPodProxy(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -3855,11 +3856,11 @@ func (c *Client) sendConnectCoreV1OptionsNamespacedPodProxyWithPath(ctx context. startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ConnectCoreV1OptionsNamespacedPodProxyWithPath", @@ -3872,7 +3873,7 @@ func (c *Client) sendConnectCoreV1OptionsNamespacedPodProxyWithPath(ctx context. if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -4035,11 +4036,11 @@ func (c *Client) sendConnectCoreV1OptionsNamespacedServiceProxy(ctx context.Cont startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ConnectCoreV1OptionsNamespacedServiceProxy", @@ -4052,7 +4053,7 @@ func (c *Client) sendConnectCoreV1OptionsNamespacedServiceProxy(ctx context.Cont if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -4197,11 +4198,11 @@ func (c *Client) sendConnectCoreV1OptionsNamespacedServiceProxyWithPath(ctx cont startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ConnectCoreV1OptionsNamespacedServiceProxyWithPath", @@ -4214,7 +4215,7 @@ func (c *Client) sendConnectCoreV1OptionsNamespacedServiceProxyWithPath(ctx cont if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -4377,11 +4378,11 @@ func (c *Client) sendConnectCoreV1OptionsNodeProxy(ctx context.Context, params C startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ConnectCoreV1OptionsNodeProxy", @@ -4394,7 +4395,7 @@ func (c *Client) sendConnectCoreV1OptionsNodeProxy(ctx context.Context, params C if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -4520,11 +4521,11 @@ func (c *Client) sendConnectCoreV1OptionsNodeProxyWithPath(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ConnectCoreV1OptionsNodeProxyWithPath", @@ -4537,7 +4538,7 @@ func (c *Client) sendConnectCoreV1OptionsNodeProxyWithPath(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -4681,11 +4682,11 @@ func (c *Client) sendConnectCoreV1PatchNamespacedPodProxy(ctx context.Context, p startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ConnectCoreV1PatchNamespacedPodProxy", @@ -4698,7 +4699,7 @@ func (c *Client) sendConnectCoreV1PatchNamespacedPodProxy(ctx context.Context, p if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -4843,11 +4844,11 @@ func (c *Client) sendConnectCoreV1PatchNamespacedPodProxyWithPath(ctx context.Co startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ConnectCoreV1PatchNamespacedPodProxyWithPath", @@ -4860,7 +4861,7 @@ func (c *Client) sendConnectCoreV1PatchNamespacedPodProxyWithPath(ctx context.Co if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -5023,11 +5024,11 @@ func (c *Client) sendConnectCoreV1PatchNamespacedServiceProxy(ctx context.Contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ConnectCoreV1PatchNamespacedServiceProxy", @@ -5040,7 +5041,7 @@ func (c *Client) sendConnectCoreV1PatchNamespacedServiceProxy(ctx context.Contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -5185,11 +5186,11 @@ func (c *Client) sendConnectCoreV1PatchNamespacedServiceProxyWithPath(ctx contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ConnectCoreV1PatchNamespacedServiceProxyWithPath", @@ -5202,7 +5203,7 @@ func (c *Client) sendConnectCoreV1PatchNamespacedServiceProxyWithPath(ctx contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -5365,11 +5366,11 @@ func (c *Client) sendConnectCoreV1PatchNodeProxy(ctx context.Context, params Con startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ConnectCoreV1PatchNodeProxy", @@ -5382,7 +5383,7 @@ func (c *Client) sendConnectCoreV1PatchNodeProxy(ctx context.Context, params Con if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -5508,11 +5509,11 @@ func (c *Client) sendConnectCoreV1PatchNodeProxyWithPath(ctx context.Context, pa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ConnectCoreV1PatchNodeProxyWithPath", @@ -5525,7 +5526,7 @@ func (c *Client) sendConnectCoreV1PatchNodeProxyWithPath(ctx context.Context, pa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -5669,11 +5670,11 @@ func (c *Client) sendConnectCoreV1PostNamespacedPodAttach(ctx context.Context, p startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ConnectCoreV1PostNamespacedPodAttach", @@ -5686,7 +5687,7 @@ func (c *Client) sendConnectCoreV1PostNamespacedPodAttach(ctx context.Context, p if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -5899,11 +5900,11 @@ func (c *Client) sendConnectCoreV1PostNamespacedPodExec(ctx context.Context, par startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ConnectCoreV1PostNamespacedPodExec", @@ -5916,7 +5917,7 @@ func (c *Client) sendConnectCoreV1PostNamespacedPodExec(ctx context.Context, par if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -6146,11 +6147,11 @@ func (c *Client) sendConnectCoreV1PostNamespacedPodPortforward(ctx context.Conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ConnectCoreV1PostNamespacedPodPortforward", @@ -6163,7 +6164,7 @@ func (c *Client) sendConnectCoreV1PostNamespacedPodPortforward(ctx context.Conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -6308,11 +6309,11 @@ func (c *Client) sendConnectCoreV1PostNamespacedPodProxy(ctx context.Context, pa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ConnectCoreV1PostNamespacedPodProxy", @@ -6325,7 +6326,7 @@ func (c *Client) sendConnectCoreV1PostNamespacedPodProxy(ctx context.Context, pa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -6470,11 +6471,11 @@ func (c *Client) sendConnectCoreV1PostNamespacedPodProxyWithPath(ctx context.Con startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ConnectCoreV1PostNamespacedPodProxyWithPath", @@ -6487,7 +6488,7 @@ func (c *Client) sendConnectCoreV1PostNamespacedPodProxyWithPath(ctx context.Con if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -6650,11 +6651,11 @@ func (c *Client) sendConnectCoreV1PostNamespacedServiceProxy(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ConnectCoreV1PostNamespacedServiceProxy", @@ -6667,7 +6668,7 @@ func (c *Client) sendConnectCoreV1PostNamespacedServiceProxy(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -6812,11 +6813,11 @@ func (c *Client) sendConnectCoreV1PostNamespacedServiceProxyWithPath(ctx context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ConnectCoreV1PostNamespacedServiceProxyWithPath", @@ -6829,7 +6830,7 @@ func (c *Client) sendConnectCoreV1PostNamespacedServiceProxyWithPath(ctx context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -6992,11 +6993,11 @@ func (c *Client) sendConnectCoreV1PostNodeProxy(ctx context.Context, params Conn startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ConnectCoreV1PostNodeProxy", @@ -7009,7 +7010,7 @@ func (c *Client) sendConnectCoreV1PostNodeProxy(ctx context.Context, params Conn if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -7135,11 +7136,11 @@ func (c *Client) sendConnectCoreV1PostNodeProxyWithPath(ctx context.Context, par startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ConnectCoreV1PostNodeProxyWithPath", @@ -7152,7 +7153,7 @@ func (c *Client) sendConnectCoreV1PostNodeProxyWithPath(ctx context.Context, par if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -7296,11 +7297,11 @@ func (c *Client) sendConnectCoreV1PutNamespacedPodProxy(ctx context.Context, par startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ConnectCoreV1PutNamespacedPodProxy", @@ -7313,7 +7314,7 @@ func (c *Client) sendConnectCoreV1PutNamespacedPodProxy(ctx context.Context, par if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -7458,11 +7459,11 @@ func (c *Client) sendConnectCoreV1PutNamespacedPodProxyWithPath(ctx context.Cont startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ConnectCoreV1PutNamespacedPodProxyWithPath", @@ -7475,7 +7476,7 @@ func (c *Client) sendConnectCoreV1PutNamespacedPodProxyWithPath(ctx context.Cont if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -7638,11 +7639,11 @@ func (c *Client) sendConnectCoreV1PutNamespacedServiceProxy(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ConnectCoreV1PutNamespacedServiceProxy", @@ -7655,7 +7656,7 @@ func (c *Client) sendConnectCoreV1PutNamespacedServiceProxy(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -7800,11 +7801,11 @@ func (c *Client) sendConnectCoreV1PutNamespacedServiceProxyWithPath(ctx context. startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ConnectCoreV1PutNamespacedServiceProxyWithPath", @@ -7817,7 +7818,7 @@ func (c *Client) sendConnectCoreV1PutNamespacedServiceProxyWithPath(ctx context. if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -7980,11 +7981,11 @@ func (c *Client) sendConnectCoreV1PutNodeProxy(ctx context.Context, params Conne startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ConnectCoreV1PutNodeProxy", @@ -7997,7 +7998,7 @@ func (c *Client) sendConnectCoreV1PutNodeProxy(ctx context.Context, params Conne if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -8123,11 +8124,11 @@ func (c *Client) sendConnectCoreV1PutNodeProxyWithPath(ctx context.Context, para startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ConnectCoreV1PutNodeProxyWithPath", @@ -8140,7 +8141,7 @@ func (c *Client) sendConnectCoreV1PutNodeProxyWithPath(ctx context.Context, para if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -8284,11 +8285,11 @@ func (c *Client) sendGetAPIVersions(ctx context.Context) (res GetAPIVersionsRes, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetAPIVersions", @@ -8301,7 +8302,7 @@ func (c *Client) sendGetAPIVersions(ctx context.Context) (res GetAPIVersionsRes, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -8387,11 +8388,11 @@ func (c *Client) sendGetAdmissionregistrationAPIGroup(ctx context.Context) (res startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetAdmissionregistrationAPIGroup", @@ -8404,7 +8405,7 @@ func (c *Client) sendGetAdmissionregistrationAPIGroup(ctx context.Context) (res if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -8490,11 +8491,11 @@ func (c *Client) sendGetAdmissionregistrationV1APIResources(ctx context.Context) startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetAdmissionregistrationV1APIResources", @@ -8507,7 +8508,7 @@ func (c *Client) sendGetAdmissionregistrationV1APIResources(ctx context.Context) if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -8593,11 +8594,11 @@ func (c *Client) sendGetApiextensionsAPIGroup(ctx context.Context) (res GetApiex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetApiextensionsAPIGroup", @@ -8610,7 +8611,7 @@ func (c *Client) sendGetApiextensionsAPIGroup(ctx context.Context) (res GetApiex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -8696,11 +8697,11 @@ func (c *Client) sendGetApiextensionsV1APIResources(ctx context.Context) (res Ge startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetApiextensionsV1APIResources", @@ -8713,7 +8714,7 @@ func (c *Client) sendGetApiextensionsV1APIResources(ctx context.Context) (res Ge if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -8799,11 +8800,11 @@ func (c *Client) sendGetApiregistrationAPIGroup(ctx context.Context) (res GetApi startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetApiregistrationAPIGroup", @@ -8816,7 +8817,7 @@ func (c *Client) sendGetApiregistrationAPIGroup(ctx context.Context) (res GetApi if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -8902,11 +8903,11 @@ func (c *Client) sendGetApiregistrationV1APIResources(ctx context.Context) (res startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetApiregistrationV1APIResources", @@ -8919,7 +8920,7 @@ func (c *Client) sendGetApiregistrationV1APIResources(ctx context.Context) (res if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -9005,11 +9006,11 @@ func (c *Client) sendGetAppsAPIGroup(ctx context.Context) (res GetAppsAPIGroupRe startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetAppsAPIGroup", @@ -9022,7 +9023,7 @@ func (c *Client) sendGetAppsAPIGroup(ctx context.Context) (res GetAppsAPIGroupRe if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -9108,11 +9109,11 @@ func (c *Client) sendGetAppsV1APIResources(ctx context.Context) (res GetAppsV1AP startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetAppsV1APIResources", @@ -9125,7 +9126,7 @@ func (c *Client) sendGetAppsV1APIResources(ctx context.Context) (res GetAppsV1AP if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -9211,11 +9212,11 @@ func (c *Client) sendGetAuthenticationAPIGroup(ctx context.Context) (res GetAuth startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetAuthenticationAPIGroup", @@ -9228,7 +9229,7 @@ func (c *Client) sendGetAuthenticationAPIGroup(ctx context.Context) (res GetAuth if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -9314,11 +9315,11 @@ func (c *Client) sendGetAuthenticationV1APIResources(ctx context.Context) (res G startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetAuthenticationV1APIResources", @@ -9331,7 +9332,7 @@ func (c *Client) sendGetAuthenticationV1APIResources(ctx context.Context) (res G if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -9417,11 +9418,11 @@ func (c *Client) sendGetAuthorizationAPIGroup(ctx context.Context) (res GetAutho startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetAuthorizationAPIGroup", @@ -9434,7 +9435,7 @@ func (c *Client) sendGetAuthorizationAPIGroup(ctx context.Context) (res GetAutho if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -9520,11 +9521,11 @@ func (c *Client) sendGetAuthorizationV1APIResources(ctx context.Context) (res Ge startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetAuthorizationV1APIResources", @@ -9537,7 +9538,7 @@ func (c *Client) sendGetAuthorizationV1APIResources(ctx context.Context) (res Ge if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -9623,11 +9624,11 @@ func (c *Client) sendGetAutoscalingAPIGroup(ctx context.Context) (res GetAutosca startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetAutoscalingAPIGroup", @@ -9640,7 +9641,7 @@ func (c *Client) sendGetAutoscalingAPIGroup(ctx context.Context) (res GetAutosca if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -9726,11 +9727,11 @@ func (c *Client) sendGetAutoscalingV1APIResources(ctx context.Context) (res GetA startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetAutoscalingV1APIResources", @@ -9743,7 +9744,7 @@ func (c *Client) sendGetAutoscalingV1APIResources(ctx context.Context) (res GetA if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -9829,11 +9830,11 @@ func (c *Client) sendGetAutoscalingV2beta1APIResources(ctx context.Context) (res startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetAutoscalingV2beta1APIResources", @@ -9846,7 +9847,7 @@ func (c *Client) sendGetAutoscalingV2beta1APIResources(ctx context.Context) (res if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -9932,11 +9933,11 @@ func (c *Client) sendGetAutoscalingV2beta2APIResources(ctx context.Context) (res startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetAutoscalingV2beta2APIResources", @@ -9949,7 +9950,7 @@ func (c *Client) sendGetAutoscalingV2beta2APIResources(ctx context.Context) (res if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -10035,11 +10036,11 @@ func (c *Client) sendGetBatchAPIGroup(ctx context.Context) (res GetBatchAPIGroup startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetBatchAPIGroup", @@ -10052,7 +10053,7 @@ func (c *Client) sendGetBatchAPIGroup(ctx context.Context) (res GetBatchAPIGroup if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -10138,11 +10139,11 @@ func (c *Client) sendGetBatchV1APIResources(ctx context.Context) (res GetBatchV1 startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetBatchV1APIResources", @@ -10155,7 +10156,7 @@ func (c *Client) sendGetBatchV1APIResources(ctx context.Context) (res GetBatchV1 if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -10241,11 +10242,11 @@ func (c *Client) sendGetBatchV1beta1APIResources(ctx context.Context) (res GetBa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetBatchV1beta1APIResources", @@ -10258,7 +10259,7 @@ func (c *Client) sendGetBatchV1beta1APIResources(ctx context.Context) (res GetBa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -10344,11 +10345,11 @@ func (c *Client) sendGetCertificatesAPIGroup(ctx context.Context) (res GetCertif startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetCertificatesAPIGroup", @@ -10361,7 +10362,7 @@ func (c *Client) sendGetCertificatesAPIGroup(ctx context.Context) (res GetCertif if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -10447,11 +10448,11 @@ func (c *Client) sendGetCertificatesV1APIResources(ctx context.Context) (res Get startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetCertificatesV1APIResources", @@ -10464,7 +10465,7 @@ func (c *Client) sendGetCertificatesV1APIResources(ctx context.Context) (res Get if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -10550,11 +10551,11 @@ func (c *Client) sendGetCodeVersion(ctx context.Context) (res GetCodeVersionRes, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetCodeVersion", @@ -10567,7 +10568,7 @@ func (c *Client) sendGetCodeVersion(ctx context.Context) (res GetCodeVersionRes, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -10653,11 +10654,11 @@ func (c *Client) sendGetCoordinationAPIGroup(ctx context.Context) (res GetCoordi startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetCoordinationAPIGroup", @@ -10670,7 +10671,7 @@ func (c *Client) sendGetCoordinationAPIGroup(ctx context.Context) (res GetCoordi if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -10756,11 +10757,11 @@ func (c *Client) sendGetCoordinationV1APIResources(ctx context.Context) (res Get startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetCoordinationV1APIResources", @@ -10773,7 +10774,7 @@ func (c *Client) sendGetCoordinationV1APIResources(ctx context.Context) (res Get if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -10859,11 +10860,11 @@ func (c *Client) sendGetCoreAPIVersions(ctx context.Context) (res GetCoreAPIVers startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetCoreAPIVersions", @@ -10876,7 +10877,7 @@ func (c *Client) sendGetCoreAPIVersions(ctx context.Context) (res GetCoreAPIVers if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -10962,11 +10963,11 @@ func (c *Client) sendGetCoreV1APIResources(ctx context.Context) (res GetCoreV1AP startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetCoreV1APIResources", @@ -10979,7 +10980,7 @@ func (c *Client) sendGetCoreV1APIResources(ctx context.Context) (res GetCoreV1AP if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -11065,11 +11066,11 @@ func (c *Client) sendGetDiscoveryAPIGroup(ctx context.Context) (res GetDiscovery startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetDiscoveryAPIGroup", @@ -11082,7 +11083,7 @@ func (c *Client) sendGetDiscoveryAPIGroup(ctx context.Context) (res GetDiscovery if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -11168,11 +11169,11 @@ func (c *Client) sendGetDiscoveryV1APIResources(ctx context.Context) (res GetDis startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetDiscoveryV1APIResources", @@ -11185,7 +11186,7 @@ func (c *Client) sendGetDiscoveryV1APIResources(ctx context.Context) (res GetDis if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -11271,11 +11272,11 @@ func (c *Client) sendGetDiscoveryV1beta1APIResources(ctx context.Context) (res G startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetDiscoveryV1beta1APIResources", @@ -11288,7 +11289,7 @@ func (c *Client) sendGetDiscoveryV1beta1APIResources(ctx context.Context) (res G if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -11374,11 +11375,11 @@ func (c *Client) sendGetEventsAPIGroup(ctx context.Context) (res GetEventsAPIGro startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetEventsAPIGroup", @@ -11391,7 +11392,7 @@ func (c *Client) sendGetEventsAPIGroup(ctx context.Context) (res GetEventsAPIGro if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -11477,11 +11478,11 @@ func (c *Client) sendGetEventsV1APIResources(ctx context.Context) (res GetEvents startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetEventsV1APIResources", @@ -11494,7 +11495,7 @@ func (c *Client) sendGetEventsV1APIResources(ctx context.Context) (res GetEvents if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -11580,11 +11581,11 @@ func (c *Client) sendGetEventsV1beta1APIResources(ctx context.Context) (res GetE startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetEventsV1beta1APIResources", @@ -11597,7 +11598,7 @@ func (c *Client) sendGetEventsV1beta1APIResources(ctx context.Context) (res GetE if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -11683,11 +11684,11 @@ func (c *Client) sendGetFlowcontrolApiserverAPIGroup(ctx context.Context) (res G startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetFlowcontrolApiserverAPIGroup", @@ -11700,7 +11701,7 @@ func (c *Client) sendGetFlowcontrolApiserverAPIGroup(ctx context.Context) (res G if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -11786,11 +11787,11 @@ func (c *Client) sendGetFlowcontrolApiserverV1beta1APIResources(ctx context.Cont startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetFlowcontrolApiserverV1beta1APIResources", @@ -11803,7 +11804,7 @@ func (c *Client) sendGetFlowcontrolApiserverV1beta1APIResources(ctx context.Cont if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -11889,11 +11890,11 @@ func (c *Client) sendGetFlowcontrolApiserverV1beta2APIResources(ctx context.Cont startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetFlowcontrolApiserverV1beta2APIResources", @@ -11906,7 +11907,7 @@ func (c *Client) sendGetFlowcontrolApiserverV1beta2APIResources(ctx context.Cont if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -11992,11 +11993,11 @@ func (c *Client) sendGetInternalApiserverAPIGroup(ctx context.Context) (res GetI startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetInternalApiserverAPIGroup", @@ -12009,7 +12010,7 @@ func (c *Client) sendGetInternalApiserverAPIGroup(ctx context.Context) (res GetI if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -12095,11 +12096,11 @@ func (c *Client) sendGetInternalApiserverV1alpha1APIResources(ctx context.Contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetInternalApiserverV1alpha1APIResources", @@ -12112,7 +12113,7 @@ func (c *Client) sendGetInternalApiserverV1alpha1APIResources(ctx context.Contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -12198,11 +12199,11 @@ func (c *Client) sendGetNetworkingAPIGroup(ctx context.Context) (res GetNetworki startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetNetworkingAPIGroup", @@ -12215,7 +12216,7 @@ func (c *Client) sendGetNetworkingAPIGroup(ctx context.Context) (res GetNetworki if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -12301,11 +12302,11 @@ func (c *Client) sendGetNetworkingV1APIResources(ctx context.Context) (res GetNe startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetNetworkingV1APIResources", @@ -12318,7 +12319,7 @@ func (c *Client) sendGetNetworkingV1APIResources(ctx context.Context) (res GetNe if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -12404,11 +12405,11 @@ func (c *Client) sendGetNodeAPIGroup(ctx context.Context) (res GetNodeAPIGroupRe startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetNodeAPIGroup", @@ -12421,7 +12422,7 @@ func (c *Client) sendGetNodeAPIGroup(ctx context.Context) (res GetNodeAPIGroupRe if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -12507,11 +12508,11 @@ func (c *Client) sendGetNodeV1APIResources(ctx context.Context) (res GetNodeV1AP startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetNodeV1APIResources", @@ -12524,7 +12525,7 @@ func (c *Client) sendGetNodeV1APIResources(ctx context.Context) (res GetNodeV1AP if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -12610,11 +12611,11 @@ func (c *Client) sendGetNodeV1alpha1APIResources(ctx context.Context) (res GetNo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetNodeV1alpha1APIResources", @@ -12627,7 +12628,7 @@ func (c *Client) sendGetNodeV1alpha1APIResources(ctx context.Context) (res GetNo if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -12713,11 +12714,11 @@ func (c *Client) sendGetNodeV1beta1APIResources(ctx context.Context) (res GetNod startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetNodeV1beta1APIResources", @@ -12730,7 +12731,7 @@ func (c *Client) sendGetNodeV1beta1APIResources(ctx context.Context) (res GetNod if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -12816,11 +12817,11 @@ func (c *Client) sendGetPolicyAPIGroup(ctx context.Context) (res GetPolicyAPIGro startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetPolicyAPIGroup", @@ -12833,7 +12834,7 @@ func (c *Client) sendGetPolicyAPIGroup(ctx context.Context) (res GetPolicyAPIGro if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -12919,11 +12920,11 @@ func (c *Client) sendGetPolicyV1APIResources(ctx context.Context) (res GetPolicy startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetPolicyV1APIResources", @@ -12936,7 +12937,7 @@ func (c *Client) sendGetPolicyV1APIResources(ctx context.Context) (res GetPolicy if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -13022,11 +13023,11 @@ func (c *Client) sendGetPolicyV1beta1APIResources(ctx context.Context) (res GetP startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetPolicyV1beta1APIResources", @@ -13039,7 +13040,7 @@ func (c *Client) sendGetPolicyV1beta1APIResources(ctx context.Context) (res GetP if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -13125,11 +13126,11 @@ func (c *Client) sendGetRbacAuthorizationAPIGroup(ctx context.Context) (res GetR startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetRbacAuthorizationAPIGroup", @@ -13142,7 +13143,7 @@ func (c *Client) sendGetRbacAuthorizationAPIGroup(ctx context.Context) (res GetR if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -13228,11 +13229,11 @@ func (c *Client) sendGetRbacAuthorizationV1APIResources(ctx context.Context) (re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetRbacAuthorizationV1APIResources", @@ -13245,7 +13246,7 @@ func (c *Client) sendGetRbacAuthorizationV1APIResources(ctx context.Context) (re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -13331,11 +13332,11 @@ func (c *Client) sendGetSchedulingAPIGroup(ctx context.Context) (res GetScheduli startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetSchedulingAPIGroup", @@ -13348,7 +13349,7 @@ func (c *Client) sendGetSchedulingAPIGroup(ctx context.Context) (res GetScheduli if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -13434,11 +13435,11 @@ func (c *Client) sendGetSchedulingV1APIResources(ctx context.Context) (res GetSc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetSchedulingV1APIResources", @@ -13451,7 +13452,7 @@ func (c *Client) sendGetSchedulingV1APIResources(ctx context.Context) (res GetSc if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -13537,11 +13538,11 @@ func (c *Client) sendGetServiceAccountIssuerOpenIDConfiguration(ctx context.Cont startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetServiceAccountIssuerOpenIDConfiguration", @@ -13554,7 +13555,7 @@ func (c *Client) sendGetServiceAccountIssuerOpenIDConfiguration(ctx context.Cont if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -13640,11 +13641,11 @@ func (c *Client) sendGetServiceAccountIssuerOpenIDKeyset(ctx context.Context) (r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetServiceAccountIssuerOpenIDKeyset", @@ -13657,7 +13658,7 @@ func (c *Client) sendGetServiceAccountIssuerOpenIDKeyset(ctx context.Context) (r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -13743,11 +13744,11 @@ func (c *Client) sendGetStorageAPIGroup(ctx context.Context) (res GetStorageAPIG startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetStorageAPIGroup", @@ -13760,7 +13761,7 @@ func (c *Client) sendGetStorageAPIGroup(ctx context.Context) (res GetStorageAPIG if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -13846,11 +13847,11 @@ func (c *Client) sendGetStorageV1APIResources(ctx context.Context) (res GetStora startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetStorageV1APIResources", @@ -13863,7 +13864,7 @@ func (c *Client) sendGetStorageV1APIResources(ctx context.Context) (res GetStora if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -13949,11 +13950,11 @@ func (c *Client) sendGetStorageV1alpha1APIResources(ctx context.Context) (res Ge startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetStorageV1alpha1APIResources", @@ -13966,7 +13967,7 @@ func (c *Client) sendGetStorageV1alpha1APIResources(ctx context.Context) (res Ge if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -14052,11 +14053,11 @@ func (c *Client) sendGetStorageV1beta1APIResources(ctx context.Context) (res Get startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetStorageV1beta1APIResources", @@ -14069,7 +14070,7 @@ func (c *Client) sendGetStorageV1beta1APIResources(ctx context.Context) (res Get if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -14155,11 +14156,11 @@ func (c *Client) sendListAdmissionregistrationV1MutatingWebhookConfiguration(ctx startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListAdmissionregistrationV1MutatingWebhookConfiguration", @@ -14172,7 +14173,7 @@ func (c *Client) sendListAdmissionregistrationV1MutatingWebhookConfiguration(ctx if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -14432,11 +14433,11 @@ func (c *Client) sendListAdmissionregistrationV1ValidatingWebhookConfiguration(c startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListAdmissionregistrationV1ValidatingWebhookConfiguration", @@ -14449,7 +14450,7 @@ func (c *Client) sendListAdmissionregistrationV1ValidatingWebhookConfiguration(c if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -14709,11 +14710,11 @@ func (c *Client) sendListApiextensionsV1CustomResourceDefinition(ctx context.Con startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListApiextensionsV1CustomResourceDefinition", @@ -14726,7 +14727,7 @@ func (c *Client) sendListApiextensionsV1CustomResourceDefinition(ctx context.Con if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -14986,11 +14987,11 @@ func (c *Client) sendListApiregistrationV1APIService(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListApiregistrationV1APIService", @@ -15003,7 +15004,7 @@ func (c *Client) sendListApiregistrationV1APIService(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -15263,11 +15264,11 @@ func (c *Client) sendListAppsV1ControllerRevisionForAllNamespaces(ctx context.Co startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListAppsV1ControllerRevisionForAllNamespaces", @@ -15280,7 +15281,7 @@ func (c *Client) sendListAppsV1ControllerRevisionForAllNamespaces(ctx context.Co if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -15540,11 +15541,11 @@ func (c *Client) sendListAppsV1DaemonSetForAllNamespaces(ctx context.Context, pa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListAppsV1DaemonSetForAllNamespaces", @@ -15557,7 +15558,7 @@ func (c *Client) sendListAppsV1DaemonSetForAllNamespaces(ctx context.Context, pa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -15817,11 +15818,11 @@ func (c *Client) sendListAppsV1DeploymentForAllNamespaces(ctx context.Context, p startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListAppsV1DeploymentForAllNamespaces", @@ -15834,7 +15835,7 @@ func (c *Client) sendListAppsV1DeploymentForAllNamespaces(ctx context.Context, p if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -16094,11 +16095,11 @@ func (c *Client) sendListAppsV1NamespacedControllerRevision(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListAppsV1NamespacedControllerRevision", @@ -16111,7 +16112,7 @@ func (c *Client) sendListAppsV1NamespacedControllerRevision(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -16390,11 +16391,11 @@ func (c *Client) sendListAppsV1NamespacedDaemonSet(ctx context.Context, params L startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListAppsV1NamespacedDaemonSet", @@ -16407,7 +16408,7 @@ func (c *Client) sendListAppsV1NamespacedDaemonSet(ctx context.Context, params L if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -16686,11 +16687,11 @@ func (c *Client) sendListAppsV1NamespacedDeployment(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListAppsV1NamespacedDeployment", @@ -16703,7 +16704,7 @@ func (c *Client) sendListAppsV1NamespacedDeployment(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -16982,11 +16983,11 @@ func (c *Client) sendListAppsV1NamespacedReplicaSet(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListAppsV1NamespacedReplicaSet", @@ -16999,7 +17000,7 @@ func (c *Client) sendListAppsV1NamespacedReplicaSet(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -17278,11 +17279,11 @@ func (c *Client) sendListAppsV1NamespacedStatefulSet(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListAppsV1NamespacedStatefulSet", @@ -17295,7 +17296,7 @@ func (c *Client) sendListAppsV1NamespacedStatefulSet(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -17574,11 +17575,11 @@ func (c *Client) sendListAppsV1ReplicaSetForAllNamespaces(ctx context.Context, p startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListAppsV1ReplicaSetForAllNamespaces", @@ -17591,7 +17592,7 @@ func (c *Client) sendListAppsV1ReplicaSetForAllNamespaces(ctx context.Context, p if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -17851,11 +17852,11 @@ func (c *Client) sendListAppsV1StatefulSetForAllNamespaces(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListAppsV1StatefulSetForAllNamespaces", @@ -17868,7 +17869,7 @@ func (c *Client) sendListAppsV1StatefulSetForAllNamespaces(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -18128,11 +18129,11 @@ func (c *Client) sendListAutoscalingV1HorizontalPodAutoscalerForAllNamespaces(ct startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListAutoscalingV1HorizontalPodAutoscalerForAllNamespaces", @@ -18145,7 +18146,7 @@ func (c *Client) sendListAutoscalingV1HorizontalPodAutoscalerForAllNamespaces(ct if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -18405,11 +18406,11 @@ func (c *Client) sendListAutoscalingV1NamespacedHorizontalPodAutoscaler(ctx cont startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListAutoscalingV1NamespacedHorizontalPodAutoscaler", @@ -18422,7 +18423,7 @@ func (c *Client) sendListAutoscalingV1NamespacedHorizontalPodAutoscaler(ctx cont if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -18701,11 +18702,11 @@ func (c *Client) sendListAutoscalingV2beta1HorizontalPodAutoscalerForAllNamespac startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListAutoscalingV2beta1HorizontalPodAutoscalerForAllNamespaces", @@ -18718,7 +18719,7 @@ func (c *Client) sendListAutoscalingV2beta1HorizontalPodAutoscalerForAllNamespac if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -18978,11 +18979,11 @@ func (c *Client) sendListAutoscalingV2beta1NamespacedHorizontalPodAutoscaler(ctx startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListAutoscalingV2beta1NamespacedHorizontalPodAutoscaler", @@ -18995,7 +18996,7 @@ func (c *Client) sendListAutoscalingV2beta1NamespacedHorizontalPodAutoscaler(ctx if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -19274,11 +19275,11 @@ func (c *Client) sendListAutoscalingV2beta2HorizontalPodAutoscalerForAllNamespac startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListAutoscalingV2beta2HorizontalPodAutoscalerForAllNamespaces", @@ -19291,7 +19292,7 @@ func (c *Client) sendListAutoscalingV2beta2HorizontalPodAutoscalerForAllNamespac if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -19551,11 +19552,11 @@ func (c *Client) sendListAutoscalingV2beta2NamespacedHorizontalPodAutoscaler(ctx startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListAutoscalingV2beta2NamespacedHorizontalPodAutoscaler", @@ -19568,7 +19569,7 @@ func (c *Client) sendListAutoscalingV2beta2NamespacedHorizontalPodAutoscaler(ctx if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -19847,11 +19848,11 @@ func (c *Client) sendListBatchV1CronJobForAllNamespaces(ctx context.Context, par startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListBatchV1CronJobForAllNamespaces", @@ -19864,7 +19865,7 @@ func (c *Client) sendListBatchV1CronJobForAllNamespaces(ctx context.Context, par if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -20124,11 +20125,11 @@ func (c *Client) sendListBatchV1JobForAllNamespaces(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListBatchV1JobForAllNamespaces", @@ -20141,7 +20142,7 @@ func (c *Client) sendListBatchV1JobForAllNamespaces(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -20401,11 +20402,11 @@ func (c *Client) sendListBatchV1NamespacedCronJob(ctx context.Context, params Li startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListBatchV1NamespacedCronJob", @@ -20418,7 +20419,7 @@ func (c *Client) sendListBatchV1NamespacedCronJob(ctx context.Context, params Li if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -20697,11 +20698,11 @@ func (c *Client) sendListBatchV1NamespacedJob(ctx context.Context, params ListBa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListBatchV1NamespacedJob", @@ -20714,7 +20715,7 @@ func (c *Client) sendListBatchV1NamespacedJob(ctx context.Context, params ListBa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -20993,11 +20994,11 @@ func (c *Client) sendListBatchV1beta1CronJobForAllNamespaces(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListBatchV1beta1CronJobForAllNamespaces", @@ -21010,7 +21011,7 @@ func (c *Client) sendListBatchV1beta1CronJobForAllNamespaces(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -21270,11 +21271,11 @@ func (c *Client) sendListBatchV1beta1NamespacedCronJob(ctx context.Context, para startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListBatchV1beta1NamespacedCronJob", @@ -21287,7 +21288,7 @@ func (c *Client) sendListBatchV1beta1NamespacedCronJob(ctx context.Context, para if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -21566,11 +21567,11 @@ func (c *Client) sendListCertificatesV1CertificateSigningRequest(ctx context.Con startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListCertificatesV1CertificateSigningRequest", @@ -21583,7 +21584,7 @@ func (c *Client) sendListCertificatesV1CertificateSigningRequest(ctx context.Con if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -21843,11 +21844,11 @@ func (c *Client) sendListCoordinationV1LeaseForAllNamespaces(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListCoordinationV1LeaseForAllNamespaces", @@ -21860,7 +21861,7 @@ func (c *Client) sendListCoordinationV1LeaseForAllNamespaces(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -22120,11 +22121,11 @@ func (c *Client) sendListCoordinationV1NamespacedLease(ctx context.Context, para startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListCoordinationV1NamespacedLease", @@ -22137,7 +22138,7 @@ func (c *Client) sendListCoordinationV1NamespacedLease(ctx context.Context, para if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -22416,11 +22417,11 @@ func (c *Client) sendListCoreV1ComponentStatus(ctx context.Context, params ListC startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListCoreV1ComponentStatus", @@ -22433,7 +22434,7 @@ func (c *Client) sendListCoreV1ComponentStatus(ctx context.Context, params ListC if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -22693,11 +22694,11 @@ func (c *Client) sendListCoreV1ConfigMapForAllNamespaces(ctx context.Context, pa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListCoreV1ConfigMapForAllNamespaces", @@ -22710,7 +22711,7 @@ func (c *Client) sendListCoreV1ConfigMapForAllNamespaces(ctx context.Context, pa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -22970,11 +22971,11 @@ func (c *Client) sendListCoreV1EndpointsForAllNamespaces(ctx context.Context, pa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListCoreV1EndpointsForAllNamespaces", @@ -22987,7 +22988,7 @@ func (c *Client) sendListCoreV1EndpointsForAllNamespaces(ctx context.Context, pa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -23247,11 +23248,11 @@ func (c *Client) sendListCoreV1EventForAllNamespaces(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListCoreV1EventForAllNamespaces", @@ -23264,7 +23265,7 @@ func (c *Client) sendListCoreV1EventForAllNamespaces(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -23524,11 +23525,11 @@ func (c *Client) sendListCoreV1LimitRangeForAllNamespaces(ctx context.Context, p startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListCoreV1LimitRangeForAllNamespaces", @@ -23541,7 +23542,7 @@ func (c *Client) sendListCoreV1LimitRangeForAllNamespaces(ctx context.Context, p if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -23801,11 +23802,11 @@ func (c *Client) sendListCoreV1Namespace(ctx context.Context, params ListCoreV1N startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListCoreV1Namespace", @@ -23818,7 +23819,7 @@ func (c *Client) sendListCoreV1Namespace(ctx context.Context, params ListCoreV1N if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -24078,11 +24079,11 @@ func (c *Client) sendListCoreV1NamespacedConfigMap(ctx context.Context, params L startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListCoreV1NamespacedConfigMap", @@ -24095,7 +24096,7 @@ func (c *Client) sendListCoreV1NamespacedConfigMap(ctx context.Context, params L if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -24374,11 +24375,11 @@ func (c *Client) sendListCoreV1NamespacedEndpoints(ctx context.Context, params L startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListCoreV1NamespacedEndpoints", @@ -24391,7 +24392,7 @@ func (c *Client) sendListCoreV1NamespacedEndpoints(ctx context.Context, params L if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -24670,11 +24671,11 @@ func (c *Client) sendListCoreV1NamespacedEvent(ctx context.Context, params ListC startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListCoreV1NamespacedEvent", @@ -24687,7 +24688,7 @@ func (c *Client) sendListCoreV1NamespacedEvent(ctx context.Context, params ListC if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -24966,11 +24967,11 @@ func (c *Client) sendListCoreV1NamespacedLimitRange(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListCoreV1NamespacedLimitRange", @@ -24983,7 +24984,7 @@ func (c *Client) sendListCoreV1NamespacedLimitRange(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -25262,11 +25263,11 @@ func (c *Client) sendListCoreV1NamespacedPersistentVolumeClaim(ctx context.Conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListCoreV1NamespacedPersistentVolumeClaim", @@ -25279,7 +25280,7 @@ func (c *Client) sendListCoreV1NamespacedPersistentVolumeClaim(ctx context.Conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -25558,11 +25559,11 @@ func (c *Client) sendListCoreV1NamespacedPod(ctx context.Context, params ListCor startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListCoreV1NamespacedPod", @@ -25575,7 +25576,7 @@ func (c *Client) sendListCoreV1NamespacedPod(ctx context.Context, params ListCor if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -25854,11 +25855,11 @@ func (c *Client) sendListCoreV1NamespacedPodTemplate(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListCoreV1NamespacedPodTemplate", @@ -25871,7 +25872,7 @@ func (c *Client) sendListCoreV1NamespacedPodTemplate(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -26150,11 +26151,11 @@ func (c *Client) sendListCoreV1NamespacedReplicationController(ctx context.Conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListCoreV1NamespacedReplicationController", @@ -26167,7 +26168,7 @@ func (c *Client) sendListCoreV1NamespacedReplicationController(ctx context.Conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -26446,11 +26447,11 @@ func (c *Client) sendListCoreV1NamespacedResourceQuota(ctx context.Context, para startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListCoreV1NamespacedResourceQuota", @@ -26463,7 +26464,7 @@ func (c *Client) sendListCoreV1NamespacedResourceQuota(ctx context.Context, para if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -26742,11 +26743,11 @@ func (c *Client) sendListCoreV1NamespacedSecret(ctx context.Context, params List startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListCoreV1NamespacedSecret", @@ -26759,7 +26760,7 @@ func (c *Client) sendListCoreV1NamespacedSecret(ctx context.Context, params List if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -27038,11 +27039,11 @@ func (c *Client) sendListCoreV1NamespacedService(ctx context.Context, params Lis startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListCoreV1NamespacedService", @@ -27055,7 +27056,7 @@ func (c *Client) sendListCoreV1NamespacedService(ctx context.Context, params Lis if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -27334,11 +27335,11 @@ func (c *Client) sendListCoreV1NamespacedServiceAccount(ctx context.Context, par startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListCoreV1NamespacedServiceAccount", @@ -27351,7 +27352,7 @@ func (c *Client) sendListCoreV1NamespacedServiceAccount(ctx context.Context, par if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -27630,11 +27631,11 @@ func (c *Client) sendListCoreV1Node(ctx context.Context, params ListCoreV1NodePa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListCoreV1Node", @@ -27647,7 +27648,7 @@ func (c *Client) sendListCoreV1Node(ctx context.Context, params ListCoreV1NodePa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -27907,11 +27908,11 @@ func (c *Client) sendListCoreV1PersistentVolume(ctx context.Context, params List startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListCoreV1PersistentVolume", @@ -27924,7 +27925,7 @@ func (c *Client) sendListCoreV1PersistentVolume(ctx context.Context, params List if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -28184,11 +28185,11 @@ func (c *Client) sendListCoreV1PersistentVolumeClaimForAllNamespaces(ctx context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListCoreV1PersistentVolumeClaimForAllNamespaces", @@ -28201,7 +28202,7 @@ func (c *Client) sendListCoreV1PersistentVolumeClaimForAllNamespaces(ctx context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -28461,11 +28462,11 @@ func (c *Client) sendListCoreV1PodForAllNamespaces(ctx context.Context, params L startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListCoreV1PodForAllNamespaces", @@ -28478,7 +28479,7 @@ func (c *Client) sendListCoreV1PodForAllNamespaces(ctx context.Context, params L if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -28738,11 +28739,11 @@ func (c *Client) sendListCoreV1PodTemplateForAllNamespaces(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListCoreV1PodTemplateForAllNamespaces", @@ -28755,7 +28756,7 @@ func (c *Client) sendListCoreV1PodTemplateForAllNamespaces(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -29015,11 +29016,11 @@ func (c *Client) sendListCoreV1ReplicationControllerForAllNamespaces(ctx context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListCoreV1ReplicationControllerForAllNamespaces", @@ -29032,7 +29033,7 @@ func (c *Client) sendListCoreV1ReplicationControllerForAllNamespaces(ctx context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -29292,11 +29293,11 @@ func (c *Client) sendListCoreV1ResourceQuotaForAllNamespaces(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListCoreV1ResourceQuotaForAllNamespaces", @@ -29309,7 +29310,7 @@ func (c *Client) sendListCoreV1ResourceQuotaForAllNamespaces(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -29569,11 +29570,11 @@ func (c *Client) sendListCoreV1SecretForAllNamespaces(ctx context.Context, param startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListCoreV1SecretForAllNamespaces", @@ -29586,7 +29587,7 @@ func (c *Client) sendListCoreV1SecretForAllNamespaces(ctx context.Context, param if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -29846,11 +29847,11 @@ func (c *Client) sendListCoreV1ServiceAccountForAllNamespaces(ctx context.Contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListCoreV1ServiceAccountForAllNamespaces", @@ -29863,7 +29864,7 @@ func (c *Client) sendListCoreV1ServiceAccountForAllNamespaces(ctx context.Contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -30123,11 +30124,11 @@ func (c *Client) sendListCoreV1ServiceForAllNamespaces(ctx context.Context, para startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListCoreV1ServiceForAllNamespaces", @@ -30140,7 +30141,7 @@ func (c *Client) sendListCoreV1ServiceForAllNamespaces(ctx context.Context, para if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -30400,11 +30401,11 @@ func (c *Client) sendListDiscoveryV1EndpointSliceForAllNamespaces(ctx context.Co startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListDiscoveryV1EndpointSliceForAllNamespaces", @@ -30417,7 +30418,7 @@ func (c *Client) sendListDiscoveryV1EndpointSliceForAllNamespaces(ctx context.Co if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -30677,11 +30678,11 @@ func (c *Client) sendListDiscoveryV1NamespacedEndpointSlice(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListDiscoveryV1NamespacedEndpointSlice", @@ -30694,7 +30695,7 @@ func (c *Client) sendListDiscoveryV1NamespacedEndpointSlice(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -30973,11 +30974,11 @@ func (c *Client) sendListDiscoveryV1beta1EndpointSliceForAllNamespaces(ctx conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListDiscoveryV1beta1EndpointSliceForAllNamespaces", @@ -30990,7 +30991,7 @@ func (c *Client) sendListDiscoveryV1beta1EndpointSliceForAllNamespaces(ctx conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -31250,11 +31251,11 @@ func (c *Client) sendListDiscoveryV1beta1NamespacedEndpointSlice(ctx context.Con startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListDiscoveryV1beta1NamespacedEndpointSlice", @@ -31267,7 +31268,7 @@ func (c *Client) sendListDiscoveryV1beta1NamespacedEndpointSlice(ctx context.Con if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -31546,11 +31547,11 @@ func (c *Client) sendListEventsV1EventForAllNamespaces(ctx context.Context, para startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListEventsV1EventForAllNamespaces", @@ -31563,7 +31564,7 @@ func (c *Client) sendListEventsV1EventForAllNamespaces(ctx context.Context, para if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -31823,11 +31824,11 @@ func (c *Client) sendListEventsV1NamespacedEvent(ctx context.Context, params Lis startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListEventsV1NamespacedEvent", @@ -31840,7 +31841,7 @@ func (c *Client) sendListEventsV1NamespacedEvent(ctx context.Context, params Lis if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -32119,11 +32120,11 @@ func (c *Client) sendListEventsV1beta1EventForAllNamespaces(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListEventsV1beta1EventForAllNamespaces", @@ -32136,7 +32137,7 @@ func (c *Client) sendListEventsV1beta1EventForAllNamespaces(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -32396,11 +32397,11 @@ func (c *Client) sendListEventsV1beta1NamespacedEvent(ctx context.Context, param startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListEventsV1beta1NamespacedEvent", @@ -32413,7 +32414,7 @@ func (c *Client) sendListEventsV1beta1NamespacedEvent(ctx context.Context, param if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -32692,11 +32693,11 @@ func (c *Client) sendListFlowcontrolApiserverV1beta1FlowSchema(ctx context.Conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListFlowcontrolApiserverV1beta1FlowSchema", @@ -32709,7 +32710,7 @@ func (c *Client) sendListFlowcontrolApiserverV1beta1FlowSchema(ctx context.Conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -32969,11 +32970,11 @@ func (c *Client) sendListFlowcontrolApiserverV1beta1PriorityLevelConfiguration(c startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListFlowcontrolApiserverV1beta1PriorityLevelConfiguration", @@ -32986,7 +32987,7 @@ func (c *Client) sendListFlowcontrolApiserverV1beta1PriorityLevelConfiguration(c if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -33246,11 +33247,11 @@ func (c *Client) sendListFlowcontrolApiserverV1beta2FlowSchema(ctx context.Conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListFlowcontrolApiserverV1beta2FlowSchema", @@ -33263,7 +33264,7 @@ func (c *Client) sendListFlowcontrolApiserverV1beta2FlowSchema(ctx context.Conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -33523,11 +33524,11 @@ func (c *Client) sendListFlowcontrolApiserverV1beta2PriorityLevelConfiguration(c startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListFlowcontrolApiserverV1beta2PriorityLevelConfiguration", @@ -33540,7 +33541,7 @@ func (c *Client) sendListFlowcontrolApiserverV1beta2PriorityLevelConfiguration(c if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -33800,11 +33801,11 @@ func (c *Client) sendListInternalApiserverV1alpha1StorageVersion(ctx context.Con startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListInternalApiserverV1alpha1StorageVersion", @@ -33817,7 +33818,7 @@ func (c *Client) sendListInternalApiserverV1alpha1StorageVersion(ctx context.Con if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -34077,11 +34078,11 @@ func (c *Client) sendListNetworkingV1IngressClass(ctx context.Context, params Li startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListNetworkingV1IngressClass", @@ -34094,7 +34095,7 @@ func (c *Client) sendListNetworkingV1IngressClass(ctx context.Context, params Li if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -34354,11 +34355,11 @@ func (c *Client) sendListNetworkingV1IngressForAllNamespaces(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListNetworkingV1IngressForAllNamespaces", @@ -34371,7 +34372,7 @@ func (c *Client) sendListNetworkingV1IngressForAllNamespaces(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -34631,11 +34632,11 @@ func (c *Client) sendListNetworkingV1NamespacedIngress(ctx context.Context, para startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListNetworkingV1NamespacedIngress", @@ -34648,7 +34649,7 @@ func (c *Client) sendListNetworkingV1NamespacedIngress(ctx context.Context, para if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -34927,11 +34928,11 @@ func (c *Client) sendListNetworkingV1NamespacedNetworkPolicy(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListNetworkingV1NamespacedNetworkPolicy", @@ -34944,7 +34945,7 @@ func (c *Client) sendListNetworkingV1NamespacedNetworkPolicy(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -35223,11 +35224,11 @@ func (c *Client) sendListNetworkingV1NetworkPolicyForAllNamespaces(ctx context.C startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListNetworkingV1NetworkPolicyForAllNamespaces", @@ -35240,7 +35241,7 @@ func (c *Client) sendListNetworkingV1NetworkPolicyForAllNamespaces(ctx context.C if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -35500,11 +35501,11 @@ func (c *Client) sendListNodeV1RuntimeClass(ctx context.Context, params ListNode startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListNodeV1RuntimeClass", @@ -35517,7 +35518,7 @@ func (c *Client) sendListNodeV1RuntimeClass(ctx context.Context, params ListNode if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -35777,11 +35778,11 @@ func (c *Client) sendListNodeV1alpha1RuntimeClass(ctx context.Context, params Li startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListNodeV1alpha1RuntimeClass", @@ -35794,7 +35795,7 @@ func (c *Client) sendListNodeV1alpha1RuntimeClass(ctx context.Context, params Li if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -36054,11 +36055,11 @@ func (c *Client) sendListNodeV1beta1RuntimeClass(ctx context.Context, params Lis startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListNodeV1beta1RuntimeClass", @@ -36071,7 +36072,7 @@ func (c *Client) sendListNodeV1beta1RuntimeClass(ctx context.Context, params Lis if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -36331,11 +36332,11 @@ func (c *Client) sendListPolicyV1NamespacedPodDisruptionBudget(ctx context.Conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListPolicyV1NamespacedPodDisruptionBudget", @@ -36348,7 +36349,7 @@ func (c *Client) sendListPolicyV1NamespacedPodDisruptionBudget(ctx context.Conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -36627,11 +36628,11 @@ func (c *Client) sendListPolicyV1PodDisruptionBudgetForAllNamespaces(ctx context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListPolicyV1PodDisruptionBudgetForAllNamespaces", @@ -36644,7 +36645,7 @@ func (c *Client) sendListPolicyV1PodDisruptionBudgetForAllNamespaces(ctx context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -36904,11 +36905,11 @@ func (c *Client) sendListPolicyV1beta1NamespacedPodDisruptionBudget(ctx context. startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListPolicyV1beta1NamespacedPodDisruptionBudget", @@ -36921,7 +36922,7 @@ func (c *Client) sendListPolicyV1beta1NamespacedPodDisruptionBudget(ctx context. if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -37200,11 +37201,11 @@ func (c *Client) sendListPolicyV1beta1PodDisruptionBudgetForAllNamespaces(ctx co startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListPolicyV1beta1PodDisruptionBudgetForAllNamespaces", @@ -37217,7 +37218,7 @@ func (c *Client) sendListPolicyV1beta1PodDisruptionBudgetForAllNamespaces(ctx co if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -37477,11 +37478,11 @@ func (c *Client) sendListPolicyV1beta1PodSecurityPolicy(ctx context.Context, par startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListPolicyV1beta1PodSecurityPolicy", @@ -37494,7 +37495,7 @@ func (c *Client) sendListPolicyV1beta1PodSecurityPolicy(ctx context.Context, par if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -37754,11 +37755,11 @@ func (c *Client) sendListRbacAuthorizationV1ClusterRole(ctx context.Context, par startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListRbacAuthorizationV1ClusterRole", @@ -37771,7 +37772,7 @@ func (c *Client) sendListRbacAuthorizationV1ClusterRole(ctx context.Context, par if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -38031,11 +38032,11 @@ func (c *Client) sendListRbacAuthorizationV1ClusterRoleBinding(ctx context.Conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListRbacAuthorizationV1ClusterRoleBinding", @@ -38048,7 +38049,7 @@ func (c *Client) sendListRbacAuthorizationV1ClusterRoleBinding(ctx context.Conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -38308,11 +38309,11 @@ func (c *Client) sendListRbacAuthorizationV1NamespacedRole(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListRbacAuthorizationV1NamespacedRole", @@ -38325,7 +38326,7 @@ func (c *Client) sendListRbacAuthorizationV1NamespacedRole(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -38604,11 +38605,11 @@ func (c *Client) sendListRbacAuthorizationV1NamespacedRoleBinding(ctx context.Co startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListRbacAuthorizationV1NamespacedRoleBinding", @@ -38621,7 +38622,7 @@ func (c *Client) sendListRbacAuthorizationV1NamespacedRoleBinding(ctx context.Co if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -38900,11 +38901,11 @@ func (c *Client) sendListRbacAuthorizationV1RoleBindingForAllNamespaces(ctx cont startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListRbacAuthorizationV1RoleBindingForAllNamespaces", @@ -38917,7 +38918,7 @@ func (c *Client) sendListRbacAuthorizationV1RoleBindingForAllNamespaces(ctx cont if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -39177,11 +39178,11 @@ func (c *Client) sendListRbacAuthorizationV1RoleForAllNamespaces(ctx context.Con startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListRbacAuthorizationV1RoleForAllNamespaces", @@ -39194,7 +39195,7 @@ func (c *Client) sendListRbacAuthorizationV1RoleForAllNamespaces(ctx context.Con if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -39454,11 +39455,11 @@ func (c *Client) sendListSchedulingV1PriorityClass(ctx context.Context, params L startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListSchedulingV1PriorityClass", @@ -39471,7 +39472,7 @@ func (c *Client) sendListSchedulingV1PriorityClass(ctx context.Context, params L if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -39731,11 +39732,11 @@ func (c *Client) sendListStorageV1CSIDriver(ctx context.Context, params ListStor startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListStorageV1CSIDriver", @@ -39748,7 +39749,7 @@ func (c *Client) sendListStorageV1CSIDriver(ctx context.Context, params ListStor if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -40008,11 +40009,11 @@ func (c *Client) sendListStorageV1CSINode(ctx context.Context, params ListStorag startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListStorageV1CSINode", @@ -40025,7 +40026,7 @@ func (c *Client) sendListStorageV1CSINode(ctx context.Context, params ListStorag if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -40285,11 +40286,11 @@ func (c *Client) sendListStorageV1StorageClass(ctx context.Context, params ListS startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListStorageV1StorageClass", @@ -40302,7 +40303,7 @@ func (c *Client) sendListStorageV1StorageClass(ctx context.Context, params ListS if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -40562,11 +40563,11 @@ func (c *Client) sendListStorageV1VolumeAttachment(ctx context.Context, params L startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListStorageV1VolumeAttachment", @@ -40579,7 +40580,7 @@ func (c *Client) sendListStorageV1VolumeAttachment(ctx context.Context, params L if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -40839,11 +40840,11 @@ func (c *Client) sendListStorageV1alpha1CSIStorageCapacityForAllNamespaces(ctx c startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListStorageV1alpha1CSIStorageCapacityForAllNamespaces", @@ -40856,7 +40857,7 @@ func (c *Client) sendListStorageV1alpha1CSIStorageCapacityForAllNamespaces(ctx c if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -41116,11 +41117,11 @@ func (c *Client) sendListStorageV1alpha1NamespacedCSIStorageCapacity(ctx context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListStorageV1alpha1NamespacedCSIStorageCapacity", @@ -41133,7 +41134,7 @@ func (c *Client) sendListStorageV1alpha1NamespacedCSIStorageCapacity(ctx context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -41412,11 +41413,11 @@ func (c *Client) sendListStorageV1beta1CSIStorageCapacityForAllNamespaces(ctx co startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListStorageV1beta1CSIStorageCapacityForAllNamespaces", @@ -41429,7 +41430,7 @@ func (c *Client) sendListStorageV1beta1CSIStorageCapacityForAllNamespaces(ctx co if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -41689,11 +41690,11 @@ func (c *Client) sendListStorageV1beta1NamespacedCSIStorageCapacity(ctx context. startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListStorageV1beta1NamespacedCSIStorageCapacity", @@ -41706,7 +41707,7 @@ func (c *Client) sendListStorageV1beta1NamespacedCSIStorageCapacity(ctx context. if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -41983,11 +41984,11 @@ func (c *Client) sendLogFileHandler(ctx context.Context, params LogFileHandlerPa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "LogFileHandler", @@ -42000,7 +42001,7 @@ func (c *Client) sendLogFileHandler(ctx context.Context, params LogFileHandlerPa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -42102,11 +42103,11 @@ func (c *Client) sendLogFileListHandler(ctx context.Context) (res *LogFileListHa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "LogFileListHandler", @@ -42119,7 +42120,7 @@ func (c *Client) sendLogFileListHandler(ctx context.Context) (res *LogFileListHa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -42205,11 +42206,11 @@ func (c *Client) sendReadAdmissionregistrationV1MutatingWebhookConfiguration(ctx startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadAdmissionregistrationV1MutatingWebhookConfiguration", @@ -42222,7 +42223,7 @@ func (c *Client) sendReadAdmissionregistrationV1MutatingWebhookConfiguration(ctx if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -42347,11 +42348,11 @@ func (c *Client) sendReadAdmissionregistrationV1ValidatingWebhookConfiguration(c startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadAdmissionregistrationV1ValidatingWebhookConfiguration", @@ -42364,7 +42365,7 @@ func (c *Client) sendReadAdmissionregistrationV1ValidatingWebhookConfiguration(c if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -42489,11 +42490,11 @@ func (c *Client) sendReadApiextensionsV1CustomResourceDefinition(ctx context.Con startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadApiextensionsV1CustomResourceDefinition", @@ -42506,7 +42507,7 @@ func (c *Client) sendReadApiextensionsV1CustomResourceDefinition(ctx context.Con if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -42631,11 +42632,11 @@ func (c *Client) sendReadApiextensionsV1CustomResourceDefinitionStatus(ctx conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadApiextensionsV1CustomResourceDefinitionStatus", @@ -42648,7 +42649,7 @@ func (c *Client) sendReadApiextensionsV1CustomResourceDefinitionStatus(ctx conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -42774,11 +42775,11 @@ func (c *Client) sendReadApiregistrationV1APIService(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadApiregistrationV1APIService", @@ -42791,7 +42792,7 @@ func (c *Client) sendReadApiregistrationV1APIService(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -42916,11 +42917,11 @@ func (c *Client) sendReadApiregistrationV1APIServiceStatus(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadApiregistrationV1APIServiceStatus", @@ -42933,7 +42934,7 @@ func (c *Client) sendReadApiregistrationV1APIServiceStatus(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -43059,11 +43060,11 @@ func (c *Client) sendReadAppsV1NamespacedControllerRevision(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadAppsV1NamespacedControllerRevision", @@ -43076,7 +43077,7 @@ func (c *Client) sendReadAppsV1NamespacedControllerRevision(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -43220,11 +43221,11 @@ func (c *Client) sendReadAppsV1NamespacedDaemonSet(ctx context.Context, params R startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadAppsV1NamespacedDaemonSet", @@ -43237,7 +43238,7 @@ func (c *Client) sendReadAppsV1NamespacedDaemonSet(ctx context.Context, params R if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -43381,11 +43382,11 @@ func (c *Client) sendReadAppsV1NamespacedDaemonSetStatus(ctx context.Context, pa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadAppsV1NamespacedDaemonSetStatus", @@ -43398,7 +43399,7 @@ func (c *Client) sendReadAppsV1NamespacedDaemonSetStatus(ctx context.Context, pa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -43543,11 +43544,11 @@ func (c *Client) sendReadAppsV1NamespacedDeployment(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadAppsV1NamespacedDeployment", @@ -43560,7 +43561,7 @@ func (c *Client) sendReadAppsV1NamespacedDeployment(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -43704,11 +43705,11 @@ func (c *Client) sendReadAppsV1NamespacedDeploymentScale(ctx context.Context, pa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadAppsV1NamespacedDeploymentScale", @@ -43721,7 +43722,7 @@ func (c *Client) sendReadAppsV1NamespacedDeploymentScale(ctx context.Context, pa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -43866,11 +43867,11 @@ func (c *Client) sendReadAppsV1NamespacedDeploymentStatus(ctx context.Context, p startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadAppsV1NamespacedDeploymentStatus", @@ -43883,7 +43884,7 @@ func (c *Client) sendReadAppsV1NamespacedDeploymentStatus(ctx context.Context, p if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -44028,11 +44029,11 @@ func (c *Client) sendReadAppsV1NamespacedReplicaSet(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadAppsV1NamespacedReplicaSet", @@ -44045,7 +44046,7 @@ func (c *Client) sendReadAppsV1NamespacedReplicaSet(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -44189,11 +44190,11 @@ func (c *Client) sendReadAppsV1NamespacedReplicaSetScale(ctx context.Context, pa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadAppsV1NamespacedReplicaSetScale", @@ -44206,7 +44207,7 @@ func (c *Client) sendReadAppsV1NamespacedReplicaSetScale(ctx context.Context, pa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -44351,11 +44352,11 @@ func (c *Client) sendReadAppsV1NamespacedReplicaSetStatus(ctx context.Context, p startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadAppsV1NamespacedReplicaSetStatus", @@ -44368,7 +44369,7 @@ func (c *Client) sendReadAppsV1NamespacedReplicaSetStatus(ctx context.Context, p if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -44513,11 +44514,11 @@ func (c *Client) sendReadAppsV1NamespacedStatefulSet(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadAppsV1NamespacedStatefulSet", @@ -44530,7 +44531,7 @@ func (c *Client) sendReadAppsV1NamespacedStatefulSet(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -44674,11 +44675,11 @@ func (c *Client) sendReadAppsV1NamespacedStatefulSetScale(ctx context.Context, p startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadAppsV1NamespacedStatefulSetScale", @@ -44691,7 +44692,7 @@ func (c *Client) sendReadAppsV1NamespacedStatefulSetScale(ctx context.Context, p if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -44836,11 +44837,11 @@ func (c *Client) sendReadAppsV1NamespacedStatefulSetStatus(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadAppsV1NamespacedStatefulSetStatus", @@ -44853,7 +44854,7 @@ func (c *Client) sendReadAppsV1NamespacedStatefulSetStatus(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -44998,11 +44999,11 @@ func (c *Client) sendReadAutoscalingV1NamespacedHorizontalPodAutoscaler(ctx cont startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadAutoscalingV1NamespacedHorizontalPodAutoscaler", @@ -45015,7 +45016,7 @@ func (c *Client) sendReadAutoscalingV1NamespacedHorizontalPodAutoscaler(ctx cont if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -45159,11 +45160,11 @@ func (c *Client) sendReadAutoscalingV1NamespacedHorizontalPodAutoscalerStatus(ct startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadAutoscalingV1NamespacedHorizontalPodAutoscalerStatus", @@ -45176,7 +45177,7 @@ func (c *Client) sendReadAutoscalingV1NamespacedHorizontalPodAutoscalerStatus(ct if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -45321,11 +45322,11 @@ func (c *Client) sendReadAutoscalingV2beta1NamespacedHorizontalPodAutoscaler(ctx startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadAutoscalingV2beta1NamespacedHorizontalPodAutoscaler", @@ -45338,7 +45339,7 @@ func (c *Client) sendReadAutoscalingV2beta1NamespacedHorizontalPodAutoscaler(ctx if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -45482,11 +45483,11 @@ func (c *Client) sendReadAutoscalingV2beta1NamespacedHorizontalPodAutoscalerStat startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadAutoscalingV2beta1NamespacedHorizontalPodAutoscalerStatus", @@ -45499,7 +45500,7 @@ func (c *Client) sendReadAutoscalingV2beta1NamespacedHorizontalPodAutoscalerStat if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -45644,11 +45645,11 @@ func (c *Client) sendReadAutoscalingV2beta2NamespacedHorizontalPodAutoscaler(ctx startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadAutoscalingV2beta2NamespacedHorizontalPodAutoscaler", @@ -45661,7 +45662,7 @@ func (c *Client) sendReadAutoscalingV2beta2NamespacedHorizontalPodAutoscaler(ctx if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -45805,11 +45806,11 @@ func (c *Client) sendReadAutoscalingV2beta2NamespacedHorizontalPodAutoscalerStat startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadAutoscalingV2beta2NamespacedHorizontalPodAutoscalerStatus", @@ -45822,7 +45823,7 @@ func (c *Client) sendReadAutoscalingV2beta2NamespacedHorizontalPodAutoscalerStat if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -45967,11 +45968,11 @@ func (c *Client) sendReadBatchV1NamespacedCronJob(ctx context.Context, params Re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadBatchV1NamespacedCronJob", @@ -45984,7 +45985,7 @@ func (c *Client) sendReadBatchV1NamespacedCronJob(ctx context.Context, params Re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -46128,11 +46129,11 @@ func (c *Client) sendReadBatchV1NamespacedCronJobStatus(ctx context.Context, par startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadBatchV1NamespacedCronJobStatus", @@ -46145,7 +46146,7 @@ func (c *Client) sendReadBatchV1NamespacedCronJobStatus(ctx context.Context, par if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -46290,11 +46291,11 @@ func (c *Client) sendReadBatchV1NamespacedJob(ctx context.Context, params ReadBa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadBatchV1NamespacedJob", @@ -46307,7 +46308,7 @@ func (c *Client) sendReadBatchV1NamespacedJob(ctx context.Context, params ReadBa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -46451,11 +46452,11 @@ func (c *Client) sendReadBatchV1NamespacedJobStatus(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadBatchV1NamespacedJobStatus", @@ -46468,7 +46469,7 @@ func (c *Client) sendReadBatchV1NamespacedJobStatus(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -46613,11 +46614,11 @@ func (c *Client) sendReadBatchV1beta1NamespacedCronJob(ctx context.Context, para startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadBatchV1beta1NamespacedCronJob", @@ -46630,7 +46631,7 @@ func (c *Client) sendReadBatchV1beta1NamespacedCronJob(ctx context.Context, para if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -46774,11 +46775,11 @@ func (c *Client) sendReadBatchV1beta1NamespacedCronJobStatus(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadBatchV1beta1NamespacedCronJobStatus", @@ -46791,7 +46792,7 @@ func (c *Client) sendReadBatchV1beta1NamespacedCronJobStatus(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -46936,11 +46937,11 @@ func (c *Client) sendReadCertificatesV1CertificateSigningRequest(ctx context.Con startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadCertificatesV1CertificateSigningRequest", @@ -46953,7 +46954,7 @@ func (c *Client) sendReadCertificatesV1CertificateSigningRequest(ctx context.Con if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -47078,11 +47079,11 @@ func (c *Client) sendReadCertificatesV1CertificateSigningRequestApproval(ctx con startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadCertificatesV1CertificateSigningRequestApproval", @@ -47095,7 +47096,7 @@ func (c *Client) sendReadCertificatesV1CertificateSigningRequestApproval(ctx con if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -47221,11 +47222,11 @@ func (c *Client) sendReadCertificatesV1CertificateSigningRequestStatus(ctx conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadCertificatesV1CertificateSigningRequestStatus", @@ -47238,7 +47239,7 @@ func (c *Client) sendReadCertificatesV1CertificateSigningRequestStatus(ctx conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -47364,11 +47365,11 @@ func (c *Client) sendReadCoordinationV1NamespacedLease(ctx context.Context, para startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadCoordinationV1NamespacedLease", @@ -47381,7 +47382,7 @@ func (c *Client) sendReadCoordinationV1NamespacedLease(ctx context.Context, para if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -47525,11 +47526,11 @@ func (c *Client) sendReadCoreV1ComponentStatus(ctx context.Context, params ReadC startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadCoreV1ComponentStatus", @@ -47542,7 +47543,7 @@ func (c *Client) sendReadCoreV1ComponentStatus(ctx context.Context, params ReadC if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -47667,11 +47668,11 @@ func (c *Client) sendReadCoreV1Namespace(ctx context.Context, params ReadCoreV1N startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadCoreV1Namespace", @@ -47684,7 +47685,7 @@ func (c *Client) sendReadCoreV1Namespace(ctx context.Context, params ReadCoreV1N if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -47809,11 +47810,11 @@ func (c *Client) sendReadCoreV1NamespaceStatus(ctx context.Context, params ReadC startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadCoreV1NamespaceStatus", @@ -47826,7 +47827,7 @@ func (c *Client) sendReadCoreV1NamespaceStatus(ctx context.Context, params ReadC if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -47952,11 +47953,11 @@ func (c *Client) sendReadCoreV1NamespacedConfigMap(ctx context.Context, params R startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadCoreV1NamespacedConfigMap", @@ -47969,7 +47970,7 @@ func (c *Client) sendReadCoreV1NamespacedConfigMap(ctx context.Context, params R if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -48113,11 +48114,11 @@ func (c *Client) sendReadCoreV1NamespacedEndpoints(ctx context.Context, params R startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadCoreV1NamespacedEndpoints", @@ -48130,7 +48131,7 @@ func (c *Client) sendReadCoreV1NamespacedEndpoints(ctx context.Context, params R if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -48274,11 +48275,11 @@ func (c *Client) sendReadCoreV1NamespacedEvent(ctx context.Context, params ReadC startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadCoreV1NamespacedEvent", @@ -48291,7 +48292,7 @@ func (c *Client) sendReadCoreV1NamespacedEvent(ctx context.Context, params ReadC if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -48435,11 +48436,11 @@ func (c *Client) sendReadCoreV1NamespacedLimitRange(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadCoreV1NamespacedLimitRange", @@ -48452,7 +48453,7 @@ func (c *Client) sendReadCoreV1NamespacedLimitRange(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -48596,11 +48597,11 @@ func (c *Client) sendReadCoreV1NamespacedPersistentVolumeClaim(ctx context.Conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadCoreV1NamespacedPersistentVolumeClaim", @@ -48613,7 +48614,7 @@ func (c *Client) sendReadCoreV1NamespacedPersistentVolumeClaim(ctx context.Conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -48757,11 +48758,11 @@ func (c *Client) sendReadCoreV1NamespacedPersistentVolumeClaimStatus(ctx context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadCoreV1NamespacedPersistentVolumeClaimStatus", @@ -48774,7 +48775,7 @@ func (c *Client) sendReadCoreV1NamespacedPersistentVolumeClaimStatus(ctx context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -48919,11 +48920,11 @@ func (c *Client) sendReadCoreV1NamespacedPod(ctx context.Context, params ReadCor startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadCoreV1NamespacedPod", @@ -48936,7 +48937,7 @@ func (c *Client) sendReadCoreV1NamespacedPod(ctx context.Context, params ReadCor if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -49080,11 +49081,11 @@ func (c *Client) sendReadCoreV1NamespacedPodEphemeralcontainers(ctx context.Cont startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadCoreV1NamespacedPodEphemeralcontainers", @@ -49097,7 +49098,7 @@ func (c *Client) sendReadCoreV1NamespacedPodEphemeralcontainers(ctx context.Cont if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -49242,11 +49243,11 @@ func (c *Client) sendReadCoreV1NamespacedPodLog(ctx context.Context, params Read startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadCoreV1NamespacedPodLog", @@ -49259,7 +49260,7 @@ func (c *Client) sendReadCoreV1NamespacedPodLog(ctx context.Context, params Read if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -49540,11 +49541,11 @@ func (c *Client) sendReadCoreV1NamespacedPodStatus(ctx context.Context, params R startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadCoreV1NamespacedPodStatus", @@ -49557,7 +49558,7 @@ func (c *Client) sendReadCoreV1NamespacedPodStatus(ctx context.Context, params R if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -49702,11 +49703,11 @@ func (c *Client) sendReadCoreV1NamespacedPodTemplate(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadCoreV1NamespacedPodTemplate", @@ -49719,7 +49720,7 @@ func (c *Client) sendReadCoreV1NamespacedPodTemplate(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -49863,11 +49864,11 @@ func (c *Client) sendReadCoreV1NamespacedReplicationController(ctx context.Conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadCoreV1NamespacedReplicationController", @@ -49880,7 +49881,7 @@ func (c *Client) sendReadCoreV1NamespacedReplicationController(ctx context.Conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -50024,11 +50025,11 @@ func (c *Client) sendReadCoreV1NamespacedReplicationControllerScale(ctx context. startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadCoreV1NamespacedReplicationControllerScale", @@ -50041,7 +50042,7 @@ func (c *Client) sendReadCoreV1NamespacedReplicationControllerScale(ctx context. if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -50186,11 +50187,11 @@ func (c *Client) sendReadCoreV1NamespacedReplicationControllerStatus(ctx context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadCoreV1NamespacedReplicationControllerStatus", @@ -50203,7 +50204,7 @@ func (c *Client) sendReadCoreV1NamespacedReplicationControllerStatus(ctx context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -50348,11 +50349,11 @@ func (c *Client) sendReadCoreV1NamespacedResourceQuota(ctx context.Context, para startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadCoreV1NamespacedResourceQuota", @@ -50365,7 +50366,7 @@ func (c *Client) sendReadCoreV1NamespacedResourceQuota(ctx context.Context, para if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -50509,11 +50510,11 @@ func (c *Client) sendReadCoreV1NamespacedResourceQuotaStatus(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadCoreV1NamespacedResourceQuotaStatus", @@ -50526,7 +50527,7 @@ func (c *Client) sendReadCoreV1NamespacedResourceQuotaStatus(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -50671,11 +50672,11 @@ func (c *Client) sendReadCoreV1NamespacedSecret(ctx context.Context, params Read startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadCoreV1NamespacedSecret", @@ -50688,7 +50689,7 @@ func (c *Client) sendReadCoreV1NamespacedSecret(ctx context.Context, params Read if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -50832,11 +50833,11 @@ func (c *Client) sendReadCoreV1NamespacedService(ctx context.Context, params Rea startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadCoreV1NamespacedService", @@ -50849,7 +50850,7 @@ func (c *Client) sendReadCoreV1NamespacedService(ctx context.Context, params Rea if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -50993,11 +50994,11 @@ func (c *Client) sendReadCoreV1NamespacedServiceAccount(ctx context.Context, par startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadCoreV1NamespacedServiceAccount", @@ -51010,7 +51011,7 @@ func (c *Client) sendReadCoreV1NamespacedServiceAccount(ctx context.Context, par if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -51154,11 +51155,11 @@ func (c *Client) sendReadCoreV1NamespacedServiceStatus(ctx context.Context, para startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadCoreV1NamespacedServiceStatus", @@ -51171,7 +51172,7 @@ func (c *Client) sendReadCoreV1NamespacedServiceStatus(ctx context.Context, para if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -51316,11 +51317,11 @@ func (c *Client) sendReadCoreV1Node(ctx context.Context, params ReadCoreV1NodePa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadCoreV1Node", @@ -51333,7 +51334,7 @@ func (c *Client) sendReadCoreV1Node(ctx context.Context, params ReadCoreV1NodePa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -51458,11 +51459,11 @@ func (c *Client) sendReadCoreV1NodeStatus(ctx context.Context, params ReadCoreV1 startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadCoreV1NodeStatus", @@ -51475,7 +51476,7 @@ func (c *Client) sendReadCoreV1NodeStatus(ctx context.Context, params ReadCoreV1 if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -51601,11 +51602,11 @@ func (c *Client) sendReadCoreV1PersistentVolume(ctx context.Context, params Read startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadCoreV1PersistentVolume", @@ -51618,7 +51619,7 @@ func (c *Client) sendReadCoreV1PersistentVolume(ctx context.Context, params Read if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -51743,11 +51744,11 @@ func (c *Client) sendReadCoreV1PersistentVolumeStatus(ctx context.Context, param startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadCoreV1PersistentVolumeStatus", @@ -51760,7 +51761,7 @@ func (c *Client) sendReadCoreV1PersistentVolumeStatus(ctx context.Context, param if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -51886,11 +51887,11 @@ func (c *Client) sendReadDiscoveryV1NamespacedEndpointSlice(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadDiscoveryV1NamespacedEndpointSlice", @@ -51903,7 +51904,7 @@ func (c *Client) sendReadDiscoveryV1NamespacedEndpointSlice(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -52047,11 +52048,11 @@ func (c *Client) sendReadDiscoveryV1beta1NamespacedEndpointSlice(ctx context.Con startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadDiscoveryV1beta1NamespacedEndpointSlice", @@ -52064,7 +52065,7 @@ func (c *Client) sendReadDiscoveryV1beta1NamespacedEndpointSlice(ctx context.Con if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -52208,11 +52209,11 @@ func (c *Client) sendReadEventsV1NamespacedEvent(ctx context.Context, params Rea startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadEventsV1NamespacedEvent", @@ -52225,7 +52226,7 @@ func (c *Client) sendReadEventsV1NamespacedEvent(ctx context.Context, params Rea if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -52369,11 +52370,11 @@ func (c *Client) sendReadEventsV1beta1NamespacedEvent(ctx context.Context, param startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadEventsV1beta1NamespacedEvent", @@ -52386,7 +52387,7 @@ func (c *Client) sendReadEventsV1beta1NamespacedEvent(ctx context.Context, param if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -52530,11 +52531,11 @@ func (c *Client) sendReadFlowcontrolApiserverV1beta1FlowSchema(ctx context.Conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadFlowcontrolApiserverV1beta1FlowSchema", @@ -52547,7 +52548,7 @@ func (c *Client) sendReadFlowcontrolApiserverV1beta1FlowSchema(ctx context.Conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -52672,11 +52673,11 @@ func (c *Client) sendReadFlowcontrolApiserverV1beta1FlowSchemaStatus(ctx context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadFlowcontrolApiserverV1beta1FlowSchemaStatus", @@ -52689,7 +52690,7 @@ func (c *Client) sendReadFlowcontrolApiserverV1beta1FlowSchemaStatus(ctx context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -52815,11 +52816,11 @@ func (c *Client) sendReadFlowcontrolApiserverV1beta1PriorityLevelConfiguration(c startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadFlowcontrolApiserverV1beta1PriorityLevelConfiguration", @@ -52832,7 +52833,7 @@ func (c *Client) sendReadFlowcontrolApiserverV1beta1PriorityLevelConfiguration(c if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -52957,11 +52958,11 @@ func (c *Client) sendReadFlowcontrolApiserverV1beta1PriorityLevelConfigurationSt startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadFlowcontrolApiserverV1beta1PriorityLevelConfigurationStatus", @@ -52974,7 +52975,7 @@ func (c *Client) sendReadFlowcontrolApiserverV1beta1PriorityLevelConfigurationSt if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -53100,11 +53101,11 @@ func (c *Client) sendReadFlowcontrolApiserverV1beta2FlowSchema(ctx context.Conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadFlowcontrolApiserverV1beta2FlowSchema", @@ -53117,7 +53118,7 @@ func (c *Client) sendReadFlowcontrolApiserverV1beta2FlowSchema(ctx context.Conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -53242,11 +53243,11 @@ func (c *Client) sendReadFlowcontrolApiserverV1beta2FlowSchemaStatus(ctx context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadFlowcontrolApiserverV1beta2FlowSchemaStatus", @@ -53259,7 +53260,7 @@ func (c *Client) sendReadFlowcontrolApiserverV1beta2FlowSchemaStatus(ctx context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -53385,11 +53386,11 @@ func (c *Client) sendReadFlowcontrolApiserverV1beta2PriorityLevelConfiguration(c startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadFlowcontrolApiserverV1beta2PriorityLevelConfiguration", @@ -53402,7 +53403,7 @@ func (c *Client) sendReadFlowcontrolApiserverV1beta2PriorityLevelConfiguration(c if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -53527,11 +53528,11 @@ func (c *Client) sendReadFlowcontrolApiserverV1beta2PriorityLevelConfigurationSt startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadFlowcontrolApiserverV1beta2PriorityLevelConfigurationStatus", @@ -53544,7 +53545,7 @@ func (c *Client) sendReadFlowcontrolApiserverV1beta2PriorityLevelConfigurationSt if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -53670,11 +53671,11 @@ func (c *Client) sendReadInternalApiserverV1alpha1StorageVersion(ctx context.Con startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadInternalApiserverV1alpha1StorageVersion", @@ -53687,7 +53688,7 @@ func (c *Client) sendReadInternalApiserverV1alpha1StorageVersion(ctx context.Con if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -53812,11 +53813,11 @@ func (c *Client) sendReadInternalApiserverV1alpha1StorageVersionStatus(ctx conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadInternalApiserverV1alpha1StorageVersionStatus", @@ -53829,7 +53830,7 @@ func (c *Client) sendReadInternalApiserverV1alpha1StorageVersionStatus(ctx conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -53955,11 +53956,11 @@ func (c *Client) sendReadNetworkingV1IngressClass(ctx context.Context, params Re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadNetworkingV1IngressClass", @@ -53972,7 +53973,7 @@ func (c *Client) sendReadNetworkingV1IngressClass(ctx context.Context, params Re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -54097,11 +54098,11 @@ func (c *Client) sendReadNetworkingV1NamespacedIngress(ctx context.Context, para startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadNetworkingV1NamespacedIngress", @@ -54114,7 +54115,7 @@ func (c *Client) sendReadNetworkingV1NamespacedIngress(ctx context.Context, para if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -54258,11 +54259,11 @@ func (c *Client) sendReadNetworkingV1NamespacedIngressStatus(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadNetworkingV1NamespacedIngressStatus", @@ -54275,7 +54276,7 @@ func (c *Client) sendReadNetworkingV1NamespacedIngressStatus(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -54420,11 +54421,11 @@ func (c *Client) sendReadNetworkingV1NamespacedNetworkPolicy(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadNetworkingV1NamespacedNetworkPolicy", @@ -54437,7 +54438,7 @@ func (c *Client) sendReadNetworkingV1NamespacedNetworkPolicy(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -54581,11 +54582,11 @@ func (c *Client) sendReadNodeV1RuntimeClass(ctx context.Context, params ReadNode startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadNodeV1RuntimeClass", @@ -54598,7 +54599,7 @@ func (c *Client) sendReadNodeV1RuntimeClass(ctx context.Context, params ReadNode if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -54723,11 +54724,11 @@ func (c *Client) sendReadNodeV1alpha1RuntimeClass(ctx context.Context, params Re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadNodeV1alpha1RuntimeClass", @@ -54740,7 +54741,7 @@ func (c *Client) sendReadNodeV1alpha1RuntimeClass(ctx context.Context, params Re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -54865,11 +54866,11 @@ func (c *Client) sendReadNodeV1beta1RuntimeClass(ctx context.Context, params Rea startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadNodeV1beta1RuntimeClass", @@ -54882,7 +54883,7 @@ func (c *Client) sendReadNodeV1beta1RuntimeClass(ctx context.Context, params Rea if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -55007,11 +55008,11 @@ func (c *Client) sendReadPolicyV1NamespacedPodDisruptionBudget(ctx context.Conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadPolicyV1NamespacedPodDisruptionBudget", @@ -55024,7 +55025,7 @@ func (c *Client) sendReadPolicyV1NamespacedPodDisruptionBudget(ctx context.Conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -55168,11 +55169,11 @@ func (c *Client) sendReadPolicyV1NamespacedPodDisruptionBudgetStatus(ctx context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadPolicyV1NamespacedPodDisruptionBudgetStatus", @@ -55185,7 +55186,7 @@ func (c *Client) sendReadPolicyV1NamespacedPodDisruptionBudgetStatus(ctx context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -55330,11 +55331,11 @@ func (c *Client) sendReadPolicyV1beta1NamespacedPodDisruptionBudget(ctx context. startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadPolicyV1beta1NamespacedPodDisruptionBudget", @@ -55347,7 +55348,7 @@ func (c *Client) sendReadPolicyV1beta1NamespacedPodDisruptionBudget(ctx context. if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -55491,11 +55492,11 @@ func (c *Client) sendReadPolicyV1beta1NamespacedPodDisruptionBudgetStatus(ctx co startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadPolicyV1beta1NamespacedPodDisruptionBudgetStatus", @@ -55508,7 +55509,7 @@ func (c *Client) sendReadPolicyV1beta1NamespacedPodDisruptionBudgetStatus(ctx co if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -55653,11 +55654,11 @@ func (c *Client) sendReadPolicyV1beta1PodSecurityPolicy(ctx context.Context, par startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadPolicyV1beta1PodSecurityPolicy", @@ -55670,7 +55671,7 @@ func (c *Client) sendReadPolicyV1beta1PodSecurityPolicy(ctx context.Context, par if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -55795,11 +55796,11 @@ func (c *Client) sendReadRbacAuthorizationV1ClusterRole(ctx context.Context, par startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadRbacAuthorizationV1ClusterRole", @@ -55812,7 +55813,7 @@ func (c *Client) sendReadRbacAuthorizationV1ClusterRole(ctx context.Context, par if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -55937,11 +55938,11 @@ func (c *Client) sendReadRbacAuthorizationV1ClusterRoleBinding(ctx context.Conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadRbacAuthorizationV1ClusterRoleBinding", @@ -55954,7 +55955,7 @@ func (c *Client) sendReadRbacAuthorizationV1ClusterRoleBinding(ctx context.Conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -56079,11 +56080,11 @@ func (c *Client) sendReadRbacAuthorizationV1NamespacedRole(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadRbacAuthorizationV1NamespacedRole", @@ -56096,7 +56097,7 @@ func (c *Client) sendReadRbacAuthorizationV1NamespacedRole(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -56240,11 +56241,11 @@ func (c *Client) sendReadRbacAuthorizationV1NamespacedRoleBinding(ctx context.Co startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadRbacAuthorizationV1NamespacedRoleBinding", @@ -56257,7 +56258,7 @@ func (c *Client) sendReadRbacAuthorizationV1NamespacedRoleBinding(ctx context.Co if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -56401,11 +56402,11 @@ func (c *Client) sendReadSchedulingV1PriorityClass(ctx context.Context, params R startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadSchedulingV1PriorityClass", @@ -56418,7 +56419,7 @@ func (c *Client) sendReadSchedulingV1PriorityClass(ctx context.Context, params R if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -56543,11 +56544,11 @@ func (c *Client) sendReadStorageV1CSIDriver(ctx context.Context, params ReadStor startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadStorageV1CSIDriver", @@ -56560,7 +56561,7 @@ func (c *Client) sendReadStorageV1CSIDriver(ctx context.Context, params ReadStor if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -56685,11 +56686,11 @@ func (c *Client) sendReadStorageV1CSINode(ctx context.Context, params ReadStorag startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadStorageV1CSINode", @@ -56702,7 +56703,7 @@ func (c *Client) sendReadStorageV1CSINode(ctx context.Context, params ReadStorag if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -56827,11 +56828,11 @@ func (c *Client) sendReadStorageV1StorageClass(ctx context.Context, params ReadS startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadStorageV1StorageClass", @@ -56844,7 +56845,7 @@ func (c *Client) sendReadStorageV1StorageClass(ctx context.Context, params ReadS if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -56969,11 +56970,11 @@ func (c *Client) sendReadStorageV1VolumeAttachment(ctx context.Context, params R startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadStorageV1VolumeAttachment", @@ -56986,7 +56987,7 @@ func (c *Client) sendReadStorageV1VolumeAttachment(ctx context.Context, params R if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -57111,11 +57112,11 @@ func (c *Client) sendReadStorageV1VolumeAttachmentStatus(ctx context.Context, pa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadStorageV1VolumeAttachmentStatus", @@ -57128,7 +57129,7 @@ func (c *Client) sendReadStorageV1VolumeAttachmentStatus(ctx context.Context, pa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -57254,11 +57255,11 @@ func (c *Client) sendReadStorageV1alpha1NamespacedCSIStorageCapacity(ctx context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadStorageV1alpha1NamespacedCSIStorageCapacity", @@ -57271,7 +57272,7 @@ func (c *Client) sendReadStorageV1alpha1NamespacedCSIStorageCapacity(ctx context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -57415,11 +57416,11 @@ func (c *Client) sendReadStorageV1beta1NamespacedCSIStorageCapacity(ctx context. startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReadStorageV1beta1NamespacedCSIStorageCapacity", @@ -57432,7 +57433,7 @@ func (c *Client) sendReadStorageV1beta1NamespacedCSIStorageCapacity(ctx context. if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -57578,11 +57579,11 @@ func (c *Client) sendWatchAdmissionregistrationV1MutatingWebhookConfiguration(ct startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchAdmissionregistrationV1MutatingWebhookConfiguration", @@ -57595,7 +57596,7 @@ func (c *Client) sendWatchAdmissionregistrationV1MutatingWebhookConfiguration(ct if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -57874,11 +57875,11 @@ func (c *Client) sendWatchAdmissionregistrationV1MutatingWebhookConfigurationLis startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchAdmissionregistrationV1MutatingWebhookConfigurationList", @@ -57891,7 +57892,7 @@ func (c *Client) sendWatchAdmissionregistrationV1MutatingWebhookConfigurationLis if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -58153,11 +58154,11 @@ func (c *Client) sendWatchAdmissionregistrationV1ValidatingWebhookConfiguration( startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchAdmissionregistrationV1ValidatingWebhookConfiguration", @@ -58170,7 +58171,7 @@ func (c *Client) sendWatchAdmissionregistrationV1ValidatingWebhookConfiguration( if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -58449,11 +58450,11 @@ func (c *Client) sendWatchAdmissionregistrationV1ValidatingWebhookConfigurationL startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchAdmissionregistrationV1ValidatingWebhookConfigurationList", @@ -58466,7 +58467,7 @@ func (c *Client) sendWatchAdmissionregistrationV1ValidatingWebhookConfigurationL if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -58727,11 +58728,11 @@ func (c *Client) sendWatchApiextensionsV1CustomResourceDefinition(ctx context.Co startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchApiextensionsV1CustomResourceDefinition", @@ -58744,7 +58745,7 @@ func (c *Client) sendWatchApiextensionsV1CustomResourceDefinition(ctx context.Co if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -59023,11 +59024,11 @@ func (c *Client) sendWatchApiextensionsV1CustomResourceDefinitionList(ctx contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchApiextensionsV1CustomResourceDefinitionList", @@ -59040,7 +59041,7 @@ func (c *Client) sendWatchApiextensionsV1CustomResourceDefinitionList(ctx contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -59301,11 +59302,11 @@ func (c *Client) sendWatchApiregistrationV1APIService(ctx context.Context, param startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchApiregistrationV1APIService", @@ -59318,7 +59319,7 @@ func (c *Client) sendWatchApiregistrationV1APIService(ctx context.Context, param if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -59597,11 +59598,11 @@ func (c *Client) sendWatchApiregistrationV1APIServiceList(ctx context.Context, p startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchApiregistrationV1APIServiceList", @@ -59614,7 +59615,7 @@ func (c *Client) sendWatchApiregistrationV1APIServiceList(ctx context.Context, p if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -59875,11 +59876,11 @@ func (c *Client) sendWatchAppsV1ControllerRevisionListForAllNamespaces(ctx conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchAppsV1ControllerRevisionListForAllNamespaces", @@ -59892,7 +59893,7 @@ func (c *Client) sendWatchAppsV1ControllerRevisionListForAllNamespaces(ctx conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -60153,11 +60154,11 @@ func (c *Client) sendWatchAppsV1DaemonSetListForAllNamespaces(ctx context.Contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchAppsV1DaemonSetListForAllNamespaces", @@ -60170,7 +60171,7 @@ func (c *Client) sendWatchAppsV1DaemonSetListForAllNamespaces(ctx context.Contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -60431,11 +60432,11 @@ func (c *Client) sendWatchAppsV1DeploymentListForAllNamespaces(ctx context.Conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchAppsV1DeploymentListForAllNamespaces", @@ -60448,7 +60449,7 @@ func (c *Client) sendWatchAppsV1DeploymentListForAllNamespaces(ctx context.Conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -60709,11 +60710,11 @@ func (c *Client) sendWatchAppsV1NamespacedControllerRevision(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchAppsV1NamespacedControllerRevision", @@ -60726,7 +60727,7 @@ func (c *Client) sendWatchAppsV1NamespacedControllerRevision(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -61024,11 +61025,11 @@ func (c *Client) sendWatchAppsV1NamespacedControllerRevisionList(ctx context.Con startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchAppsV1NamespacedControllerRevisionList", @@ -61041,7 +61042,7 @@ func (c *Client) sendWatchAppsV1NamespacedControllerRevisionList(ctx context.Con if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -61321,11 +61322,11 @@ func (c *Client) sendWatchAppsV1NamespacedDaemonSet(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchAppsV1NamespacedDaemonSet", @@ -61338,7 +61339,7 @@ func (c *Client) sendWatchAppsV1NamespacedDaemonSet(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -61636,11 +61637,11 @@ func (c *Client) sendWatchAppsV1NamespacedDaemonSetList(ctx context.Context, par startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchAppsV1NamespacedDaemonSetList", @@ -61653,7 +61654,7 @@ func (c *Client) sendWatchAppsV1NamespacedDaemonSetList(ctx context.Context, par if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -61933,11 +61934,11 @@ func (c *Client) sendWatchAppsV1NamespacedDeployment(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchAppsV1NamespacedDeployment", @@ -61950,7 +61951,7 @@ func (c *Client) sendWatchAppsV1NamespacedDeployment(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -62248,11 +62249,11 @@ func (c *Client) sendWatchAppsV1NamespacedDeploymentList(ctx context.Context, pa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchAppsV1NamespacedDeploymentList", @@ -62265,7 +62266,7 @@ func (c *Client) sendWatchAppsV1NamespacedDeploymentList(ctx context.Context, pa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -62545,11 +62546,11 @@ func (c *Client) sendWatchAppsV1NamespacedReplicaSet(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchAppsV1NamespacedReplicaSet", @@ -62562,7 +62563,7 @@ func (c *Client) sendWatchAppsV1NamespacedReplicaSet(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -62860,11 +62861,11 @@ func (c *Client) sendWatchAppsV1NamespacedReplicaSetList(ctx context.Context, pa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchAppsV1NamespacedReplicaSetList", @@ -62877,7 +62878,7 @@ func (c *Client) sendWatchAppsV1NamespacedReplicaSetList(ctx context.Context, pa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -63157,11 +63158,11 @@ func (c *Client) sendWatchAppsV1NamespacedStatefulSet(ctx context.Context, param startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchAppsV1NamespacedStatefulSet", @@ -63174,7 +63175,7 @@ func (c *Client) sendWatchAppsV1NamespacedStatefulSet(ctx context.Context, param if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -63472,11 +63473,11 @@ func (c *Client) sendWatchAppsV1NamespacedStatefulSetList(ctx context.Context, p startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchAppsV1NamespacedStatefulSetList", @@ -63489,7 +63490,7 @@ func (c *Client) sendWatchAppsV1NamespacedStatefulSetList(ctx context.Context, p if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -63769,11 +63770,11 @@ func (c *Client) sendWatchAppsV1ReplicaSetListForAllNamespaces(ctx context.Conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchAppsV1ReplicaSetListForAllNamespaces", @@ -63786,7 +63787,7 @@ func (c *Client) sendWatchAppsV1ReplicaSetListForAllNamespaces(ctx context.Conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -64047,11 +64048,11 @@ func (c *Client) sendWatchAppsV1StatefulSetListForAllNamespaces(ctx context.Cont startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchAppsV1StatefulSetListForAllNamespaces", @@ -64064,7 +64065,7 @@ func (c *Client) sendWatchAppsV1StatefulSetListForAllNamespaces(ctx context.Cont if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -64325,11 +64326,11 @@ func (c *Client) sendWatchAutoscalingV1HorizontalPodAutoscalerListForAllNamespac startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchAutoscalingV1HorizontalPodAutoscalerListForAllNamespaces", @@ -64342,7 +64343,7 @@ func (c *Client) sendWatchAutoscalingV1HorizontalPodAutoscalerListForAllNamespac if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -64603,11 +64604,11 @@ func (c *Client) sendWatchAutoscalingV1NamespacedHorizontalPodAutoscaler(ctx con startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchAutoscalingV1NamespacedHorizontalPodAutoscaler", @@ -64620,7 +64621,7 @@ func (c *Client) sendWatchAutoscalingV1NamespacedHorizontalPodAutoscaler(ctx con if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -64918,11 +64919,11 @@ func (c *Client) sendWatchAutoscalingV1NamespacedHorizontalPodAutoscalerList(ctx startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchAutoscalingV1NamespacedHorizontalPodAutoscalerList", @@ -64935,7 +64936,7 @@ func (c *Client) sendWatchAutoscalingV1NamespacedHorizontalPodAutoscalerList(ctx if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -65215,11 +65216,11 @@ func (c *Client) sendWatchAutoscalingV2beta1HorizontalPodAutoscalerListForAllNam startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchAutoscalingV2beta1HorizontalPodAutoscalerListForAllNamespaces", @@ -65232,7 +65233,7 @@ func (c *Client) sendWatchAutoscalingV2beta1HorizontalPodAutoscalerListForAllNam if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -65493,11 +65494,11 @@ func (c *Client) sendWatchAutoscalingV2beta1NamespacedHorizontalPodAutoscaler(ct startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchAutoscalingV2beta1NamespacedHorizontalPodAutoscaler", @@ -65510,7 +65511,7 @@ func (c *Client) sendWatchAutoscalingV2beta1NamespacedHorizontalPodAutoscaler(ct if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -65808,11 +65809,11 @@ func (c *Client) sendWatchAutoscalingV2beta1NamespacedHorizontalPodAutoscalerLis startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchAutoscalingV2beta1NamespacedHorizontalPodAutoscalerList", @@ -65825,7 +65826,7 @@ func (c *Client) sendWatchAutoscalingV2beta1NamespacedHorizontalPodAutoscalerLis if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -66105,11 +66106,11 @@ func (c *Client) sendWatchAutoscalingV2beta2HorizontalPodAutoscalerListForAllNam startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchAutoscalingV2beta2HorizontalPodAutoscalerListForAllNamespaces", @@ -66122,7 +66123,7 @@ func (c *Client) sendWatchAutoscalingV2beta2HorizontalPodAutoscalerListForAllNam if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -66383,11 +66384,11 @@ func (c *Client) sendWatchAutoscalingV2beta2NamespacedHorizontalPodAutoscaler(ct startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchAutoscalingV2beta2NamespacedHorizontalPodAutoscaler", @@ -66400,7 +66401,7 @@ func (c *Client) sendWatchAutoscalingV2beta2NamespacedHorizontalPodAutoscaler(ct if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -66698,11 +66699,11 @@ func (c *Client) sendWatchAutoscalingV2beta2NamespacedHorizontalPodAutoscalerLis startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchAutoscalingV2beta2NamespacedHorizontalPodAutoscalerList", @@ -66715,7 +66716,7 @@ func (c *Client) sendWatchAutoscalingV2beta2NamespacedHorizontalPodAutoscalerLis if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -66995,11 +66996,11 @@ func (c *Client) sendWatchBatchV1CronJobListForAllNamespaces(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchBatchV1CronJobListForAllNamespaces", @@ -67012,7 +67013,7 @@ func (c *Client) sendWatchBatchV1CronJobListForAllNamespaces(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -67273,11 +67274,11 @@ func (c *Client) sendWatchBatchV1JobListForAllNamespaces(ctx context.Context, pa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchBatchV1JobListForAllNamespaces", @@ -67290,7 +67291,7 @@ func (c *Client) sendWatchBatchV1JobListForAllNamespaces(ctx context.Context, pa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -67551,11 +67552,11 @@ func (c *Client) sendWatchBatchV1NamespacedCronJob(ctx context.Context, params W startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchBatchV1NamespacedCronJob", @@ -67568,7 +67569,7 @@ func (c *Client) sendWatchBatchV1NamespacedCronJob(ctx context.Context, params W if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -67866,11 +67867,11 @@ func (c *Client) sendWatchBatchV1NamespacedCronJobList(ctx context.Context, para startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchBatchV1NamespacedCronJobList", @@ -67883,7 +67884,7 @@ func (c *Client) sendWatchBatchV1NamespacedCronJobList(ctx context.Context, para if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -68163,11 +68164,11 @@ func (c *Client) sendWatchBatchV1NamespacedJob(ctx context.Context, params Watch startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchBatchV1NamespacedJob", @@ -68180,7 +68181,7 @@ func (c *Client) sendWatchBatchV1NamespacedJob(ctx context.Context, params Watch if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -68478,11 +68479,11 @@ func (c *Client) sendWatchBatchV1NamespacedJobList(ctx context.Context, params W startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchBatchV1NamespacedJobList", @@ -68495,7 +68496,7 @@ func (c *Client) sendWatchBatchV1NamespacedJobList(ctx context.Context, params W if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -68775,11 +68776,11 @@ func (c *Client) sendWatchBatchV1beta1CronJobListForAllNamespaces(ctx context.Co startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchBatchV1beta1CronJobListForAllNamespaces", @@ -68792,7 +68793,7 @@ func (c *Client) sendWatchBatchV1beta1CronJobListForAllNamespaces(ctx context.Co if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -69053,11 +69054,11 @@ func (c *Client) sendWatchBatchV1beta1NamespacedCronJob(ctx context.Context, par startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchBatchV1beta1NamespacedCronJob", @@ -69070,7 +69071,7 @@ func (c *Client) sendWatchBatchV1beta1NamespacedCronJob(ctx context.Context, par if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -69368,11 +69369,11 @@ func (c *Client) sendWatchBatchV1beta1NamespacedCronJobList(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchBatchV1beta1NamespacedCronJobList", @@ -69385,7 +69386,7 @@ func (c *Client) sendWatchBatchV1beta1NamespacedCronJobList(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -69666,11 +69667,11 @@ func (c *Client) sendWatchCertificatesV1CertificateSigningRequest(ctx context.Co startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchCertificatesV1CertificateSigningRequest", @@ -69683,7 +69684,7 @@ func (c *Client) sendWatchCertificatesV1CertificateSigningRequest(ctx context.Co if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -69962,11 +69963,11 @@ func (c *Client) sendWatchCertificatesV1CertificateSigningRequestList(ctx contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchCertificatesV1CertificateSigningRequestList", @@ -69979,7 +69980,7 @@ func (c *Client) sendWatchCertificatesV1CertificateSigningRequestList(ctx contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -70240,11 +70241,11 @@ func (c *Client) sendWatchCoordinationV1LeaseListForAllNamespaces(ctx context.Co startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchCoordinationV1LeaseListForAllNamespaces", @@ -70257,7 +70258,7 @@ func (c *Client) sendWatchCoordinationV1LeaseListForAllNamespaces(ctx context.Co if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -70518,11 +70519,11 @@ func (c *Client) sendWatchCoordinationV1NamespacedLease(ctx context.Context, par startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchCoordinationV1NamespacedLease", @@ -70535,7 +70536,7 @@ func (c *Client) sendWatchCoordinationV1NamespacedLease(ctx context.Context, par if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -70833,11 +70834,11 @@ func (c *Client) sendWatchCoordinationV1NamespacedLeaseList(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchCoordinationV1NamespacedLeaseList", @@ -70850,7 +70851,7 @@ func (c *Client) sendWatchCoordinationV1NamespacedLeaseList(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -71130,11 +71131,11 @@ func (c *Client) sendWatchCoreV1ConfigMapListForAllNamespaces(ctx context.Contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchCoreV1ConfigMapListForAllNamespaces", @@ -71147,7 +71148,7 @@ func (c *Client) sendWatchCoreV1ConfigMapListForAllNamespaces(ctx context.Contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -71408,11 +71409,11 @@ func (c *Client) sendWatchCoreV1EndpointsListForAllNamespaces(ctx context.Contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchCoreV1EndpointsListForAllNamespaces", @@ -71425,7 +71426,7 @@ func (c *Client) sendWatchCoreV1EndpointsListForAllNamespaces(ctx context.Contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -71686,11 +71687,11 @@ func (c *Client) sendWatchCoreV1EventListForAllNamespaces(ctx context.Context, p startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchCoreV1EventListForAllNamespaces", @@ -71703,7 +71704,7 @@ func (c *Client) sendWatchCoreV1EventListForAllNamespaces(ctx context.Context, p if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -71964,11 +71965,11 @@ func (c *Client) sendWatchCoreV1LimitRangeListForAllNamespaces(ctx context.Conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchCoreV1LimitRangeListForAllNamespaces", @@ -71981,7 +71982,7 @@ func (c *Client) sendWatchCoreV1LimitRangeListForAllNamespaces(ctx context.Conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -72242,11 +72243,11 @@ func (c *Client) sendWatchCoreV1Namespace(ctx context.Context, params WatchCoreV startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchCoreV1Namespace", @@ -72259,7 +72260,7 @@ func (c *Client) sendWatchCoreV1Namespace(ctx context.Context, params WatchCoreV if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -72538,11 +72539,11 @@ func (c *Client) sendWatchCoreV1NamespaceList(ctx context.Context, params WatchC startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchCoreV1NamespaceList", @@ -72555,7 +72556,7 @@ func (c *Client) sendWatchCoreV1NamespaceList(ctx context.Context, params WatchC if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -72816,11 +72817,11 @@ func (c *Client) sendWatchCoreV1NamespacedConfigMap(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchCoreV1NamespacedConfigMap", @@ -72833,7 +72834,7 @@ func (c *Client) sendWatchCoreV1NamespacedConfigMap(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -73131,11 +73132,11 @@ func (c *Client) sendWatchCoreV1NamespacedConfigMapList(ctx context.Context, par startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchCoreV1NamespacedConfigMapList", @@ -73148,7 +73149,7 @@ func (c *Client) sendWatchCoreV1NamespacedConfigMapList(ctx context.Context, par if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -73428,11 +73429,11 @@ func (c *Client) sendWatchCoreV1NamespacedEndpoints(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchCoreV1NamespacedEndpoints", @@ -73445,7 +73446,7 @@ func (c *Client) sendWatchCoreV1NamespacedEndpoints(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -73743,11 +73744,11 @@ func (c *Client) sendWatchCoreV1NamespacedEndpointsList(ctx context.Context, par startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchCoreV1NamespacedEndpointsList", @@ -73760,7 +73761,7 @@ func (c *Client) sendWatchCoreV1NamespacedEndpointsList(ctx context.Context, par if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -74040,11 +74041,11 @@ func (c *Client) sendWatchCoreV1NamespacedEvent(ctx context.Context, params Watc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchCoreV1NamespacedEvent", @@ -74057,7 +74058,7 @@ func (c *Client) sendWatchCoreV1NamespacedEvent(ctx context.Context, params Watc if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -74355,11 +74356,11 @@ func (c *Client) sendWatchCoreV1NamespacedEventList(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchCoreV1NamespacedEventList", @@ -74372,7 +74373,7 @@ func (c *Client) sendWatchCoreV1NamespacedEventList(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -74652,11 +74653,11 @@ func (c *Client) sendWatchCoreV1NamespacedLimitRange(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchCoreV1NamespacedLimitRange", @@ -74669,7 +74670,7 @@ func (c *Client) sendWatchCoreV1NamespacedLimitRange(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -74967,11 +74968,11 @@ func (c *Client) sendWatchCoreV1NamespacedLimitRangeList(ctx context.Context, pa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchCoreV1NamespacedLimitRangeList", @@ -74984,7 +74985,7 @@ func (c *Client) sendWatchCoreV1NamespacedLimitRangeList(ctx context.Context, pa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -75264,11 +75265,11 @@ func (c *Client) sendWatchCoreV1NamespacedPersistentVolumeClaim(ctx context.Cont startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchCoreV1NamespacedPersistentVolumeClaim", @@ -75281,7 +75282,7 @@ func (c *Client) sendWatchCoreV1NamespacedPersistentVolumeClaim(ctx context.Cont if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -75579,11 +75580,11 @@ func (c *Client) sendWatchCoreV1NamespacedPersistentVolumeClaimList(ctx context. startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchCoreV1NamespacedPersistentVolumeClaimList", @@ -75596,7 +75597,7 @@ func (c *Client) sendWatchCoreV1NamespacedPersistentVolumeClaimList(ctx context. if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -75876,11 +75877,11 @@ func (c *Client) sendWatchCoreV1NamespacedPod(ctx context.Context, params WatchC startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchCoreV1NamespacedPod", @@ -75893,7 +75894,7 @@ func (c *Client) sendWatchCoreV1NamespacedPod(ctx context.Context, params WatchC if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -76191,11 +76192,11 @@ func (c *Client) sendWatchCoreV1NamespacedPodList(ctx context.Context, params Wa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchCoreV1NamespacedPodList", @@ -76208,7 +76209,7 @@ func (c *Client) sendWatchCoreV1NamespacedPodList(ctx context.Context, params Wa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -76488,11 +76489,11 @@ func (c *Client) sendWatchCoreV1NamespacedPodTemplate(ctx context.Context, param startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchCoreV1NamespacedPodTemplate", @@ -76505,7 +76506,7 @@ func (c *Client) sendWatchCoreV1NamespacedPodTemplate(ctx context.Context, param if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -76803,11 +76804,11 @@ func (c *Client) sendWatchCoreV1NamespacedPodTemplateList(ctx context.Context, p startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchCoreV1NamespacedPodTemplateList", @@ -76820,7 +76821,7 @@ func (c *Client) sendWatchCoreV1NamespacedPodTemplateList(ctx context.Context, p if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -77100,11 +77101,11 @@ func (c *Client) sendWatchCoreV1NamespacedReplicationController(ctx context.Cont startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchCoreV1NamespacedReplicationController", @@ -77117,7 +77118,7 @@ func (c *Client) sendWatchCoreV1NamespacedReplicationController(ctx context.Cont if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -77415,11 +77416,11 @@ func (c *Client) sendWatchCoreV1NamespacedReplicationControllerList(ctx context. startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchCoreV1NamespacedReplicationControllerList", @@ -77432,7 +77433,7 @@ func (c *Client) sendWatchCoreV1NamespacedReplicationControllerList(ctx context. if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -77712,11 +77713,11 @@ func (c *Client) sendWatchCoreV1NamespacedResourceQuota(ctx context.Context, par startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchCoreV1NamespacedResourceQuota", @@ -77729,7 +77730,7 @@ func (c *Client) sendWatchCoreV1NamespacedResourceQuota(ctx context.Context, par if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -78027,11 +78028,11 @@ func (c *Client) sendWatchCoreV1NamespacedResourceQuotaList(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchCoreV1NamespacedResourceQuotaList", @@ -78044,7 +78045,7 @@ func (c *Client) sendWatchCoreV1NamespacedResourceQuotaList(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -78324,11 +78325,11 @@ func (c *Client) sendWatchCoreV1NamespacedSecret(ctx context.Context, params Wat startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchCoreV1NamespacedSecret", @@ -78341,7 +78342,7 @@ func (c *Client) sendWatchCoreV1NamespacedSecret(ctx context.Context, params Wat if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -78639,11 +78640,11 @@ func (c *Client) sendWatchCoreV1NamespacedSecretList(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchCoreV1NamespacedSecretList", @@ -78656,7 +78657,7 @@ func (c *Client) sendWatchCoreV1NamespacedSecretList(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -78936,11 +78937,11 @@ func (c *Client) sendWatchCoreV1NamespacedService(ctx context.Context, params Wa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchCoreV1NamespacedService", @@ -78953,7 +78954,7 @@ func (c *Client) sendWatchCoreV1NamespacedService(ctx context.Context, params Wa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -79251,11 +79252,11 @@ func (c *Client) sendWatchCoreV1NamespacedServiceAccount(ctx context.Context, pa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchCoreV1NamespacedServiceAccount", @@ -79268,7 +79269,7 @@ func (c *Client) sendWatchCoreV1NamespacedServiceAccount(ctx context.Context, pa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -79566,11 +79567,11 @@ func (c *Client) sendWatchCoreV1NamespacedServiceAccountList(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchCoreV1NamespacedServiceAccountList", @@ -79583,7 +79584,7 @@ func (c *Client) sendWatchCoreV1NamespacedServiceAccountList(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -79863,11 +79864,11 @@ func (c *Client) sendWatchCoreV1NamespacedServiceList(ctx context.Context, param startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchCoreV1NamespacedServiceList", @@ -79880,7 +79881,7 @@ func (c *Client) sendWatchCoreV1NamespacedServiceList(ctx context.Context, param if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -80160,11 +80161,11 @@ func (c *Client) sendWatchCoreV1Node(ctx context.Context, params WatchCoreV1Node startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchCoreV1Node", @@ -80177,7 +80178,7 @@ func (c *Client) sendWatchCoreV1Node(ctx context.Context, params WatchCoreV1Node if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -80456,11 +80457,11 @@ func (c *Client) sendWatchCoreV1NodeList(ctx context.Context, params WatchCoreV1 startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchCoreV1NodeList", @@ -80473,7 +80474,7 @@ func (c *Client) sendWatchCoreV1NodeList(ctx context.Context, params WatchCoreV1 if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -80734,11 +80735,11 @@ func (c *Client) sendWatchCoreV1PersistentVolume(ctx context.Context, params Wat startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchCoreV1PersistentVolume", @@ -80751,7 +80752,7 @@ func (c *Client) sendWatchCoreV1PersistentVolume(ctx context.Context, params Wat if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -81030,11 +81031,11 @@ func (c *Client) sendWatchCoreV1PersistentVolumeClaimListForAllNamespaces(ctx co startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchCoreV1PersistentVolumeClaimListForAllNamespaces", @@ -81047,7 +81048,7 @@ func (c *Client) sendWatchCoreV1PersistentVolumeClaimListForAllNamespaces(ctx co if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -81308,11 +81309,11 @@ func (c *Client) sendWatchCoreV1PersistentVolumeList(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchCoreV1PersistentVolumeList", @@ -81325,7 +81326,7 @@ func (c *Client) sendWatchCoreV1PersistentVolumeList(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -81586,11 +81587,11 @@ func (c *Client) sendWatchCoreV1PodListForAllNamespaces(ctx context.Context, par startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchCoreV1PodListForAllNamespaces", @@ -81603,7 +81604,7 @@ func (c *Client) sendWatchCoreV1PodListForAllNamespaces(ctx context.Context, par if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -81864,11 +81865,11 @@ func (c *Client) sendWatchCoreV1PodTemplateListForAllNamespaces(ctx context.Cont startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchCoreV1PodTemplateListForAllNamespaces", @@ -81881,7 +81882,7 @@ func (c *Client) sendWatchCoreV1PodTemplateListForAllNamespaces(ctx context.Cont if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -82142,11 +82143,11 @@ func (c *Client) sendWatchCoreV1ReplicationControllerListForAllNamespaces(ctx co startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchCoreV1ReplicationControllerListForAllNamespaces", @@ -82159,7 +82160,7 @@ func (c *Client) sendWatchCoreV1ReplicationControllerListForAllNamespaces(ctx co if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -82420,11 +82421,11 @@ func (c *Client) sendWatchCoreV1ResourceQuotaListForAllNamespaces(ctx context.Co startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchCoreV1ResourceQuotaListForAllNamespaces", @@ -82437,7 +82438,7 @@ func (c *Client) sendWatchCoreV1ResourceQuotaListForAllNamespaces(ctx context.Co if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -82698,11 +82699,11 @@ func (c *Client) sendWatchCoreV1SecretListForAllNamespaces(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchCoreV1SecretListForAllNamespaces", @@ -82715,7 +82716,7 @@ func (c *Client) sendWatchCoreV1SecretListForAllNamespaces(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -82976,11 +82977,11 @@ func (c *Client) sendWatchCoreV1ServiceAccountListForAllNamespaces(ctx context.C startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchCoreV1ServiceAccountListForAllNamespaces", @@ -82993,7 +82994,7 @@ func (c *Client) sendWatchCoreV1ServiceAccountListForAllNamespaces(ctx context.C if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -83254,11 +83255,11 @@ func (c *Client) sendWatchCoreV1ServiceListForAllNamespaces(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchCoreV1ServiceListForAllNamespaces", @@ -83271,7 +83272,7 @@ func (c *Client) sendWatchCoreV1ServiceListForAllNamespaces(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -83532,11 +83533,11 @@ func (c *Client) sendWatchDiscoveryV1EndpointSliceListForAllNamespaces(ctx conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchDiscoveryV1EndpointSliceListForAllNamespaces", @@ -83549,7 +83550,7 @@ func (c *Client) sendWatchDiscoveryV1EndpointSliceListForAllNamespaces(ctx conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -83810,11 +83811,11 @@ func (c *Client) sendWatchDiscoveryV1NamespacedEndpointSlice(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchDiscoveryV1NamespacedEndpointSlice", @@ -83827,7 +83828,7 @@ func (c *Client) sendWatchDiscoveryV1NamespacedEndpointSlice(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -84125,11 +84126,11 @@ func (c *Client) sendWatchDiscoveryV1NamespacedEndpointSliceList(ctx context.Con startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchDiscoveryV1NamespacedEndpointSliceList", @@ -84142,7 +84143,7 @@ func (c *Client) sendWatchDiscoveryV1NamespacedEndpointSliceList(ctx context.Con if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -84422,11 +84423,11 @@ func (c *Client) sendWatchDiscoveryV1beta1EndpointSliceListForAllNamespaces(ctx startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchDiscoveryV1beta1EndpointSliceListForAllNamespaces", @@ -84439,7 +84440,7 @@ func (c *Client) sendWatchDiscoveryV1beta1EndpointSliceListForAllNamespaces(ctx if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -84700,11 +84701,11 @@ func (c *Client) sendWatchDiscoveryV1beta1NamespacedEndpointSlice(ctx context.Co startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchDiscoveryV1beta1NamespacedEndpointSlice", @@ -84717,7 +84718,7 @@ func (c *Client) sendWatchDiscoveryV1beta1NamespacedEndpointSlice(ctx context.Co if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -85015,11 +85016,11 @@ func (c *Client) sendWatchDiscoveryV1beta1NamespacedEndpointSliceList(ctx contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchDiscoveryV1beta1NamespacedEndpointSliceList", @@ -85032,7 +85033,7 @@ func (c *Client) sendWatchDiscoveryV1beta1NamespacedEndpointSliceList(ctx contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -85312,11 +85313,11 @@ func (c *Client) sendWatchEventsV1EventListForAllNamespaces(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchEventsV1EventListForAllNamespaces", @@ -85329,7 +85330,7 @@ func (c *Client) sendWatchEventsV1EventListForAllNamespaces(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -85590,11 +85591,11 @@ func (c *Client) sendWatchEventsV1NamespacedEvent(ctx context.Context, params Wa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchEventsV1NamespacedEvent", @@ -85607,7 +85608,7 @@ func (c *Client) sendWatchEventsV1NamespacedEvent(ctx context.Context, params Wa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -85905,11 +85906,11 @@ func (c *Client) sendWatchEventsV1NamespacedEventList(ctx context.Context, param startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchEventsV1NamespacedEventList", @@ -85922,7 +85923,7 @@ func (c *Client) sendWatchEventsV1NamespacedEventList(ctx context.Context, param if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -86202,11 +86203,11 @@ func (c *Client) sendWatchEventsV1beta1EventListForAllNamespaces(ctx context.Con startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchEventsV1beta1EventListForAllNamespaces", @@ -86219,7 +86220,7 @@ func (c *Client) sendWatchEventsV1beta1EventListForAllNamespaces(ctx context.Con if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -86480,11 +86481,11 @@ func (c *Client) sendWatchEventsV1beta1NamespacedEvent(ctx context.Context, para startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchEventsV1beta1NamespacedEvent", @@ -86497,7 +86498,7 @@ func (c *Client) sendWatchEventsV1beta1NamespacedEvent(ctx context.Context, para if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -86795,11 +86796,11 @@ func (c *Client) sendWatchEventsV1beta1NamespacedEventList(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchEventsV1beta1NamespacedEventList", @@ -86812,7 +86813,7 @@ func (c *Client) sendWatchEventsV1beta1NamespacedEventList(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -87092,11 +87093,11 @@ func (c *Client) sendWatchFlowcontrolApiserverV1beta1FlowSchema(ctx context.Cont startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchFlowcontrolApiserverV1beta1FlowSchema", @@ -87109,7 +87110,7 @@ func (c *Client) sendWatchFlowcontrolApiserverV1beta1FlowSchema(ctx context.Cont if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -87388,11 +87389,11 @@ func (c *Client) sendWatchFlowcontrolApiserverV1beta1FlowSchemaList(ctx context. startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchFlowcontrolApiserverV1beta1FlowSchemaList", @@ -87405,7 +87406,7 @@ func (c *Client) sendWatchFlowcontrolApiserverV1beta1FlowSchemaList(ctx context. if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -87667,11 +87668,11 @@ func (c *Client) sendWatchFlowcontrolApiserverV1beta1PriorityLevelConfiguration( startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchFlowcontrolApiserverV1beta1PriorityLevelConfiguration", @@ -87684,7 +87685,7 @@ func (c *Client) sendWatchFlowcontrolApiserverV1beta1PriorityLevelConfiguration( if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -87963,11 +87964,11 @@ func (c *Client) sendWatchFlowcontrolApiserverV1beta1PriorityLevelConfigurationL startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchFlowcontrolApiserverV1beta1PriorityLevelConfigurationList", @@ -87980,7 +87981,7 @@ func (c *Client) sendWatchFlowcontrolApiserverV1beta1PriorityLevelConfigurationL if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -88241,11 +88242,11 @@ func (c *Client) sendWatchFlowcontrolApiserverV1beta2FlowSchema(ctx context.Cont startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchFlowcontrolApiserverV1beta2FlowSchema", @@ -88258,7 +88259,7 @@ func (c *Client) sendWatchFlowcontrolApiserverV1beta2FlowSchema(ctx context.Cont if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -88537,11 +88538,11 @@ func (c *Client) sendWatchFlowcontrolApiserverV1beta2FlowSchemaList(ctx context. startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchFlowcontrolApiserverV1beta2FlowSchemaList", @@ -88554,7 +88555,7 @@ func (c *Client) sendWatchFlowcontrolApiserverV1beta2FlowSchemaList(ctx context. if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -88816,11 +88817,11 @@ func (c *Client) sendWatchFlowcontrolApiserverV1beta2PriorityLevelConfiguration( startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchFlowcontrolApiserverV1beta2PriorityLevelConfiguration", @@ -88833,7 +88834,7 @@ func (c *Client) sendWatchFlowcontrolApiserverV1beta2PriorityLevelConfiguration( if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -89112,11 +89113,11 @@ func (c *Client) sendWatchFlowcontrolApiserverV1beta2PriorityLevelConfigurationL startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchFlowcontrolApiserverV1beta2PriorityLevelConfigurationList", @@ -89129,7 +89130,7 @@ func (c *Client) sendWatchFlowcontrolApiserverV1beta2PriorityLevelConfigurationL if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -89390,11 +89391,11 @@ func (c *Client) sendWatchInternalApiserverV1alpha1StorageVersion(ctx context.Co startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchInternalApiserverV1alpha1StorageVersion", @@ -89407,7 +89408,7 @@ func (c *Client) sendWatchInternalApiserverV1alpha1StorageVersion(ctx context.Co if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -89686,11 +89687,11 @@ func (c *Client) sendWatchInternalApiserverV1alpha1StorageVersionList(ctx contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchInternalApiserverV1alpha1StorageVersionList", @@ -89703,7 +89704,7 @@ func (c *Client) sendWatchInternalApiserverV1alpha1StorageVersionList(ctx contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -89964,11 +89965,11 @@ func (c *Client) sendWatchNetworkingV1IngressClass(ctx context.Context, params W startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchNetworkingV1IngressClass", @@ -89981,7 +89982,7 @@ func (c *Client) sendWatchNetworkingV1IngressClass(ctx context.Context, params W if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -90260,11 +90261,11 @@ func (c *Client) sendWatchNetworkingV1IngressClassList(ctx context.Context, para startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchNetworkingV1IngressClassList", @@ -90277,7 +90278,7 @@ func (c *Client) sendWatchNetworkingV1IngressClassList(ctx context.Context, para if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -90538,11 +90539,11 @@ func (c *Client) sendWatchNetworkingV1IngressListForAllNamespaces(ctx context.Co startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchNetworkingV1IngressListForAllNamespaces", @@ -90555,7 +90556,7 @@ func (c *Client) sendWatchNetworkingV1IngressListForAllNamespaces(ctx context.Co if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -90816,11 +90817,11 @@ func (c *Client) sendWatchNetworkingV1NamespacedIngress(ctx context.Context, par startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchNetworkingV1NamespacedIngress", @@ -90833,7 +90834,7 @@ func (c *Client) sendWatchNetworkingV1NamespacedIngress(ctx context.Context, par if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -91131,11 +91132,11 @@ func (c *Client) sendWatchNetworkingV1NamespacedIngressList(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchNetworkingV1NamespacedIngressList", @@ -91148,7 +91149,7 @@ func (c *Client) sendWatchNetworkingV1NamespacedIngressList(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -91428,11 +91429,11 @@ func (c *Client) sendWatchNetworkingV1NamespacedNetworkPolicy(ctx context.Contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchNetworkingV1NamespacedNetworkPolicy", @@ -91445,7 +91446,7 @@ func (c *Client) sendWatchNetworkingV1NamespacedNetworkPolicy(ctx context.Contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -91743,11 +91744,11 @@ func (c *Client) sendWatchNetworkingV1NamespacedNetworkPolicyList(ctx context.Co startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchNetworkingV1NamespacedNetworkPolicyList", @@ -91760,7 +91761,7 @@ func (c *Client) sendWatchNetworkingV1NamespacedNetworkPolicyList(ctx context.Co if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -92040,11 +92041,11 @@ func (c *Client) sendWatchNetworkingV1NetworkPolicyListForAllNamespaces(ctx cont startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchNetworkingV1NetworkPolicyListForAllNamespaces", @@ -92057,7 +92058,7 @@ func (c *Client) sendWatchNetworkingV1NetworkPolicyListForAllNamespaces(ctx cont if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -92318,11 +92319,11 @@ func (c *Client) sendWatchNodeV1RuntimeClass(ctx context.Context, params WatchNo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchNodeV1RuntimeClass", @@ -92335,7 +92336,7 @@ func (c *Client) sendWatchNodeV1RuntimeClass(ctx context.Context, params WatchNo if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -92614,11 +92615,11 @@ func (c *Client) sendWatchNodeV1RuntimeClassList(ctx context.Context, params Wat startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchNodeV1RuntimeClassList", @@ -92631,7 +92632,7 @@ func (c *Client) sendWatchNodeV1RuntimeClassList(ctx context.Context, params Wat if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -92892,11 +92893,11 @@ func (c *Client) sendWatchNodeV1alpha1RuntimeClass(ctx context.Context, params W startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchNodeV1alpha1RuntimeClass", @@ -92909,7 +92910,7 @@ func (c *Client) sendWatchNodeV1alpha1RuntimeClass(ctx context.Context, params W if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -93188,11 +93189,11 @@ func (c *Client) sendWatchNodeV1alpha1RuntimeClassList(ctx context.Context, para startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchNodeV1alpha1RuntimeClassList", @@ -93205,7 +93206,7 @@ func (c *Client) sendWatchNodeV1alpha1RuntimeClassList(ctx context.Context, para if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -93466,11 +93467,11 @@ func (c *Client) sendWatchNodeV1beta1RuntimeClass(ctx context.Context, params Wa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchNodeV1beta1RuntimeClass", @@ -93483,7 +93484,7 @@ func (c *Client) sendWatchNodeV1beta1RuntimeClass(ctx context.Context, params Wa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -93762,11 +93763,11 @@ func (c *Client) sendWatchNodeV1beta1RuntimeClassList(ctx context.Context, param startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchNodeV1beta1RuntimeClassList", @@ -93779,7 +93780,7 @@ func (c *Client) sendWatchNodeV1beta1RuntimeClassList(ctx context.Context, param if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -94040,11 +94041,11 @@ func (c *Client) sendWatchPolicyV1NamespacedPodDisruptionBudget(ctx context.Cont startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchPolicyV1NamespacedPodDisruptionBudget", @@ -94057,7 +94058,7 @@ func (c *Client) sendWatchPolicyV1NamespacedPodDisruptionBudget(ctx context.Cont if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -94355,11 +94356,11 @@ func (c *Client) sendWatchPolicyV1NamespacedPodDisruptionBudgetList(ctx context. startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchPolicyV1NamespacedPodDisruptionBudgetList", @@ -94372,7 +94373,7 @@ func (c *Client) sendWatchPolicyV1NamespacedPodDisruptionBudgetList(ctx context. if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -94652,11 +94653,11 @@ func (c *Client) sendWatchPolicyV1PodDisruptionBudgetListForAllNamespaces(ctx co startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchPolicyV1PodDisruptionBudgetListForAllNamespaces", @@ -94669,7 +94670,7 @@ func (c *Client) sendWatchPolicyV1PodDisruptionBudgetListForAllNamespaces(ctx co if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -94930,11 +94931,11 @@ func (c *Client) sendWatchPolicyV1beta1NamespacedPodDisruptionBudget(ctx context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchPolicyV1beta1NamespacedPodDisruptionBudget", @@ -94947,7 +94948,7 @@ func (c *Client) sendWatchPolicyV1beta1NamespacedPodDisruptionBudget(ctx context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -95245,11 +95246,11 @@ func (c *Client) sendWatchPolicyV1beta1NamespacedPodDisruptionBudgetList(ctx con startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchPolicyV1beta1NamespacedPodDisruptionBudgetList", @@ -95262,7 +95263,7 @@ func (c *Client) sendWatchPolicyV1beta1NamespacedPodDisruptionBudgetList(ctx con if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -95542,11 +95543,11 @@ func (c *Client) sendWatchPolicyV1beta1PodDisruptionBudgetListForAllNamespaces(c startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchPolicyV1beta1PodDisruptionBudgetListForAllNamespaces", @@ -95559,7 +95560,7 @@ func (c *Client) sendWatchPolicyV1beta1PodDisruptionBudgetListForAllNamespaces(c if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -95820,11 +95821,11 @@ func (c *Client) sendWatchPolicyV1beta1PodSecurityPolicy(ctx context.Context, pa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchPolicyV1beta1PodSecurityPolicy", @@ -95837,7 +95838,7 @@ func (c *Client) sendWatchPolicyV1beta1PodSecurityPolicy(ctx context.Context, pa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -96116,11 +96117,11 @@ func (c *Client) sendWatchPolicyV1beta1PodSecurityPolicyList(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchPolicyV1beta1PodSecurityPolicyList", @@ -96133,7 +96134,7 @@ func (c *Client) sendWatchPolicyV1beta1PodSecurityPolicyList(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -96394,11 +96395,11 @@ func (c *Client) sendWatchRbacAuthorizationV1ClusterRole(ctx context.Context, pa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchRbacAuthorizationV1ClusterRole", @@ -96411,7 +96412,7 @@ func (c *Client) sendWatchRbacAuthorizationV1ClusterRole(ctx context.Context, pa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -96690,11 +96691,11 @@ func (c *Client) sendWatchRbacAuthorizationV1ClusterRoleBinding(ctx context.Cont startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchRbacAuthorizationV1ClusterRoleBinding", @@ -96707,7 +96708,7 @@ func (c *Client) sendWatchRbacAuthorizationV1ClusterRoleBinding(ctx context.Cont if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -96986,11 +96987,11 @@ func (c *Client) sendWatchRbacAuthorizationV1ClusterRoleBindingList(ctx context. startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchRbacAuthorizationV1ClusterRoleBindingList", @@ -97003,7 +97004,7 @@ func (c *Client) sendWatchRbacAuthorizationV1ClusterRoleBindingList(ctx context. if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -97264,11 +97265,11 @@ func (c *Client) sendWatchRbacAuthorizationV1ClusterRoleList(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchRbacAuthorizationV1ClusterRoleList", @@ -97281,7 +97282,7 @@ func (c *Client) sendWatchRbacAuthorizationV1ClusterRoleList(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -97542,11 +97543,11 @@ func (c *Client) sendWatchRbacAuthorizationV1NamespacedRole(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchRbacAuthorizationV1NamespacedRole", @@ -97559,7 +97560,7 @@ func (c *Client) sendWatchRbacAuthorizationV1NamespacedRole(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -97857,11 +97858,11 @@ func (c *Client) sendWatchRbacAuthorizationV1NamespacedRoleBinding(ctx context.C startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchRbacAuthorizationV1NamespacedRoleBinding", @@ -97874,7 +97875,7 @@ func (c *Client) sendWatchRbacAuthorizationV1NamespacedRoleBinding(ctx context.C if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -98172,11 +98173,11 @@ func (c *Client) sendWatchRbacAuthorizationV1NamespacedRoleBindingList(ctx conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchRbacAuthorizationV1NamespacedRoleBindingList", @@ -98189,7 +98190,7 @@ func (c *Client) sendWatchRbacAuthorizationV1NamespacedRoleBindingList(ctx conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -98469,11 +98470,11 @@ func (c *Client) sendWatchRbacAuthorizationV1NamespacedRoleList(ctx context.Cont startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchRbacAuthorizationV1NamespacedRoleList", @@ -98486,7 +98487,7 @@ func (c *Client) sendWatchRbacAuthorizationV1NamespacedRoleList(ctx context.Cont if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -98766,11 +98767,11 @@ func (c *Client) sendWatchRbacAuthorizationV1RoleBindingListForAllNamespaces(ctx startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchRbacAuthorizationV1RoleBindingListForAllNamespaces", @@ -98783,7 +98784,7 @@ func (c *Client) sendWatchRbacAuthorizationV1RoleBindingListForAllNamespaces(ctx if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -99044,11 +99045,11 @@ func (c *Client) sendWatchRbacAuthorizationV1RoleListForAllNamespaces(ctx contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchRbacAuthorizationV1RoleListForAllNamespaces", @@ -99061,7 +99062,7 @@ func (c *Client) sendWatchRbacAuthorizationV1RoleListForAllNamespaces(ctx contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -99322,11 +99323,11 @@ func (c *Client) sendWatchSchedulingV1PriorityClass(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchSchedulingV1PriorityClass", @@ -99339,7 +99340,7 @@ func (c *Client) sendWatchSchedulingV1PriorityClass(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -99618,11 +99619,11 @@ func (c *Client) sendWatchSchedulingV1PriorityClassList(ctx context.Context, par startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchSchedulingV1PriorityClassList", @@ -99635,7 +99636,7 @@ func (c *Client) sendWatchSchedulingV1PriorityClassList(ctx context.Context, par if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -99896,11 +99897,11 @@ func (c *Client) sendWatchStorageV1CSIDriver(ctx context.Context, params WatchSt startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchStorageV1CSIDriver", @@ -99913,7 +99914,7 @@ func (c *Client) sendWatchStorageV1CSIDriver(ctx context.Context, params WatchSt if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -100192,11 +100193,11 @@ func (c *Client) sendWatchStorageV1CSIDriverList(ctx context.Context, params Wat startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchStorageV1CSIDriverList", @@ -100209,7 +100210,7 @@ func (c *Client) sendWatchStorageV1CSIDriverList(ctx context.Context, params Wat if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -100470,11 +100471,11 @@ func (c *Client) sendWatchStorageV1CSINode(ctx context.Context, params WatchStor startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchStorageV1CSINode", @@ -100487,7 +100488,7 @@ func (c *Client) sendWatchStorageV1CSINode(ctx context.Context, params WatchStor if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -100766,11 +100767,11 @@ func (c *Client) sendWatchStorageV1CSINodeList(ctx context.Context, params Watch startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchStorageV1CSINodeList", @@ -100783,7 +100784,7 @@ func (c *Client) sendWatchStorageV1CSINodeList(ctx context.Context, params Watch if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -101044,11 +101045,11 @@ func (c *Client) sendWatchStorageV1StorageClass(ctx context.Context, params Watc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchStorageV1StorageClass", @@ -101061,7 +101062,7 @@ func (c *Client) sendWatchStorageV1StorageClass(ctx context.Context, params Watc if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -101340,11 +101341,11 @@ func (c *Client) sendWatchStorageV1StorageClassList(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchStorageV1StorageClassList", @@ -101357,7 +101358,7 @@ func (c *Client) sendWatchStorageV1StorageClassList(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -101618,11 +101619,11 @@ func (c *Client) sendWatchStorageV1VolumeAttachment(ctx context.Context, params startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchStorageV1VolumeAttachment", @@ -101635,7 +101636,7 @@ func (c *Client) sendWatchStorageV1VolumeAttachment(ctx context.Context, params if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -101914,11 +101915,11 @@ func (c *Client) sendWatchStorageV1VolumeAttachmentList(ctx context.Context, par startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchStorageV1VolumeAttachmentList", @@ -101931,7 +101932,7 @@ func (c *Client) sendWatchStorageV1VolumeAttachmentList(ctx context.Context, par if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -102192,11 +102193,11 @@ func (c *Client) sendWatchStorageV1alpha1CSIStorageCapacityListForAllNamespaces( startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchStorageV1alpha1CSIStorageCapacityListForAllNamespaces", @@ -102209,7 +102210,7 @@ func (c *Client) sendWatchStorageV1alpha1CSIStorageCapacityListForAllNamespaces( if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -102470,11 +102471,11 @@ func (c *Client) sendWatchStorageV1alpha1NamespacedCSIStorageCapacity(ctx contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchStorageV1alpha1NamespacedCSIStorageCapacity", @@ -102487,7 +102488,7 @@ func (c *Client) sendWatchStorageV1alpha1NamespacedCSIStorageCapacity(ctx contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -102785,11 +102786,11 @@ func (c *Client) sendWatchStorageV1alpha1NamespacedCSIStorageCapacityList(ctx co startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchStorageV1alpha1NamespacedCSIStorageCapacityList", @@ -102802,7 +102803,7 @@ func (c *Client) sendWatchStorageV1alpha1NamespacedCSIStorageCapacityList(ctx co if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -103082,11 +103083,11 @@ func (c *Client) sendWatchStorageV1beta1CSIStorageCapacityListForAllNamespaces(c startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchStorageV1beta1CSIStorageCapacityListForAllNamespaces", @@ -103099,7 +103100,7 @@ func (c *Client) sendWatchStorageV1beta1CSIStorageCapacityListForAllNamespaces(c if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -103360,11 +103361,11 @@ func (c *Client) sendWatchStorageV1beta1NamespacedCSIStorageCapacity(ctx context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchStorageV1beta1NamespacedCSIStorageCapacity", @@ -103377,7 +103378,7 @@ func (c *Client) sendWatchStorageV1beta1NamespacedCSIStorageCapacity(ctx context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -103675,11 +103676,11 @@ func (c *Client) sendWatchStorageV1beta1NamespacedCSIStorageCapacityList(ctx con startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "WatchStorageV1beta1NamespacedCSIStorageCapacityList", @@ -103692,7 +103693,7 @@ func (c *Client) sendWatchStorageV1beta1NamespacedCSIStorageCapacityList(ctx con if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() diff --git a/examples/ex_k8s/oas_handlers_gen.go b/examples/ex_k8s/oas_handlers_gen.go index d0d1c5c58..19784d562 100644 --- a/examples/ex_k8s/oas_handlers_gen.go +++ b/examples/ex_k8s/oas_handlers_gen.go @@ -9,6 +9,7 @@ import ( "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" semconv "go.opentelemetry.io/otel/semconv/v1.17.0" "go.opentelemetry.io/otel/trace" @@ -40,17 +41,17 @@ func (s *Server) handleConnectCoreV1DeleteNamespacedPodProxyRequest(args [2]stri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -194,17 +195,17 @@ func (s *Server) handleConnectCoreV1DeleteNamespacedPodProxyWithPathRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -352,17 +353,17 @@ func (s *Server) handleConnectCoreV1DeleteNamespacedServiceProxyRequest(args [2] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -506,17 +507,17 @@ func (s *Server) handleConnectCoreV1DeleteNamespacedServiceProxyWithPathRequest( startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -664,17 +665,17 @@ func (s *Server) handleConnectCoreV1DeleteNodeProxyRequest(args [1]string, argsE startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -814,17 +815,17 @@ func (s *Server) handleConnectCoreV1DeleteNodeProxyWithPathRequest(args [2]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -968,17 +969,17 @@ func (s *Server) handleConnectCoreV1GetNamespacedPodAttachRequest(args [2]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1138,17 +1139,17 @@ func (s *Server) handleConnectCoreV1GetNamespacedPodExecRequest(args [2]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1312,17 +1313,17 @@ func (s *Server) handleConnectCoreV1GetNamespacedPodPortforwardRequest(args [2]s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1466,17 +1467,17 @@ func (s *Server) handleConnectCoreV1GetNamespacedPodProxyRequest(args [2]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1620,17 +1621,17 @@ func (s *Server) handleConnectCoreV1GetNamespacedPodProxyWithPathRequest(args [3 startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1778,17 +1779,17 @@ func (s *Server) handleConnectCoreV1GetNamespacedServiceProxyRequest(args [2]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1932,17 +1933,17 @@ func (s *Server) handleConnectCoreV1GetNamespacedServiceProxyWithPathRequest(arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2090,17 +2091,17 @@ func (s *Server) handleConnectCoreV1GetNodeProxyRequest(args [1]string, argsEsca startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2240,17 +2241,17 @@ func (s *Server) handleConnectCoreV1GetNodeProxyWithPathRequest(args [2]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2394,17 +2395,17 @@ func (s *Server) handleConnectCoreV1HeadNamespacedPodProxyRequest(args [2]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2548,17 +2549,17 @@ func (s *Server) handleConnectCoreV1HeadNamespacedPodProxyWithPathRequest(args [ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2706,17 +2707,17 @@ func (s *Server) handleConnectCoreV1HeadNamespacedServiceProxyRequest(args [2]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2860,17 +2861,17 @@ func (s *Server) handleConnectCoreV1HeadNamespacedServiceProxyWithPathRequest(ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -3018,17 +3019,17 @@ func (s *Server) handleConnectCoreV1HeadNodeProxyRequest(args [1]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -3168,17 +3169,17 @@ func (s *Server) handleConnectCoreV1HeadNodeProxyWithPathRequest(args [2]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -3322,17 +3323,17 @@ func (s *Server) handleConnectCoreV1OptionsNamespacedPodProxyRequest(args [2]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -3476,17 +3477,17 @@ func (s *Server) handleConnectCoreV1OptionsNamespacedPodProxyWithPathRequest(arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -3634,17 +3635,17 @@ func (s *Server) handleConnectCoreV1OptionsNamespacedServiceProxyRequest(args [2 startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -3788,17 +3789,17 @@ func (s *Server) handleConnectCoreV1OptionsNamespacedServiceProxyWithPathRequest startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -3946,17 +3947,17 @@ func (s *Server) handleConnectCoreV1OptionsNodeProxyRequest(args [1]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -4096,17 +4097,17 @@ func (s *Server) handleConnectCoreV1OptionsNodeProxyWithPathRequest(args [2]stri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -4250,17 +4251,17 @@ func (s *Server) handleConnectCoreV1PatchNamespacedPodProxyRequest(args [2]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -4404,17 +4405,17 @@ func (s *Server) handleConnectCoreV1PatchNamespacedPodProxyWithPathRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -4562,17 +4563,17 @@ func (s *Server) handleConnectCoreV1PatchNamespacedServiceProxyRequest(args [2]s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -4716,17 +4717,17 @@ func (s *Server) handleConnectCoreV1PatchNamespacedServiceProxyWithPathRequest(a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -4874,17 +4875,17 @@ func (s *Server) handleConnectCoreV1PatchNodeProxyRequest(args [1]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -5024,17 +5025,17 @@ func (s *Server) handleConnectCoreV1PatchNodeProxyWithPathRequest(args [2]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -5178,17 +5179,17 @@ func (s *Server) handleConnectCoreV1PostNamespacedPodAttachRequest(args [2]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -5348,17 +5349,17 @@ func (s *Server) handleConnectCoreV1PostNamespacedPodExecRequest(args [2]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -5522,17 +5523,17 @@ func (s *Server) handleConnectCoreV1PostNamespacedPodPortforwardRequest(args [2] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -5676,17 +5677,17 @@ func (s *Server) handleConnectCoreV1PostNamespacedPodProxyRequest(args [2]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -5830,17 +5831,17 @@ func (s *Server) handleConnectCoreV1PostNamespacedPodProxyWithPathRequest(args [ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -5988,17 +5989,17 @@ func (s *Server) handleConnectCoreV1PostNamespacedServiceProxyRequest(args [2]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -6142,17 +6143,17 @@ func (s *Server) handleConnectCoreV1PostNamespacedServiceProxyWithPathRequest(ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -6300,17 +6301,17 @@ func (s *Server) handleConnectCoreV1PostNodeProxyRequest(args [1]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -6450,17 +6451,17 @@ func (s *Server) handleConnectCoreV1PostNodeProxyWithPathRequest(args [2]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -6604,17 +6605,17 @@ func (s *Server) handleConnectCoreV1PutNamespacedPodProxyRequest(args [2]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -6758,17 +6759,17 @@ func (s *Server) handleConnectCoreV1PutNamespacedPodProxyWithPathRequest(args [3 startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -6916,17 +6917,17 @@ func (s *Server) handleConnectCoreV1PutNamespacedServiceProxyRequest(args [2]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -7070,17 +7071,17 @@ func (s *Server) handleConnectCoreV1PutNamespacedServiceProxyWithPathRequest(arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -7228,17 +7229,17 @@ func (s *Server) handleConnectCoreV1PutNodeProxyRequest(args [1]string, argsEsca startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -7378,17 +7379,17 @@ func (s *Server) handleConnectCoreV1PutNodeProxyWithPathRequest(args [2]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -7532,17 +7533,17 @@ func (s *Server) handleGetAPIVersionsRequest(args [0]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -7663,17 +7664,17 @@ func (s *Server) handleGetAdmissionregistrationAPIGroupRequest(args [0]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -7794,17 +7795,17 @@ func (s *Server) handleGetAdmissionregistrationV1APIResourcesRequest(args [0]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -7925,17 +7926,17 @@ func (s *Server) handleGetApiextensionsAPIGroupRequest(args [0]string, argsEscap startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -8056,17 +8057,17 @@ func (s *Server) handleGetApiextensionsV1APIResourcesRequest(args [0]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -8187,17 +8188,17 @@ func (s *Server) handleGetApiregistrationAPIGroupRequest(args [0]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -8318,17 +8319,17 @@ func (s *Server) handleGetApiregistrationV1APIResourcesRequest(args [0]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -8449,17 +8450,17 @@ func (s *Server) handleGetAppsAPIGroupRequest(args [0]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -8580,17 +8581,17 @@ func (s *Server) handleGetAppsV1APIResourcesRequest(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -8711,17 +8712,17 @@ func (s *Server) handleGetAuthenticationAPIGroupRequest(args [0]string, argsEsca startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -8842,17 +8843,17 @@ func (s *Server) handleGetAuthenticationV1APIResourcesRequest(args [0]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -8973,17 +8974,17 @@ func (s *Server) handleGetAuthorizationAPIGroupRequest(args [0]string, argsEscap startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -9104,17 +9105,17 @@ func (s *Server) handleGetAuthorizationV1APIResourcesRequest(args [0]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -9235,17 +9236,17 @@ func (s *Server) handleGetAutoscalingAPIGroupRequest(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -9366,17 +9367,17 @@ func (s *Server) handleGetAutoscalingV1APIResourcesRequest(args [0]string, argsE startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -9497,17 +9498,17 @@ func (s *Server) handleGetAutoscalingV2beta1APIResourcesRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -9628,17 +9629,17 @@ func (s *Server) handleGetAutoscalingV2beta2APIResourcesRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -9759,17 +9760,17 @@ func (s *Server) handleGetBatchAPIGroupRequest(args [0]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -9890,17 +9891,17 @@ func (s *Server) handleGetBatchV1APIResourcesRequest(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -10021,17 +10022,17 @@ func (s *Server) handleGetBatchV1beta1APIResourcesRequest(args [0]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -10152,17 +10153,17 @@ func (s *Server) handleGetCertificatesAPIGroupRequest(args [0]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -10283,17 +10284,17 @@ func (s *Server) handleGetCertificatesV1APIResourcesRequest(args [0]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -10414,17 +10415,17 @@ func (s *Server) handleGetCodeVersionRequest(args [0]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -10545,17 +10546,17 @@ func (s *Server) handleGetCoordinationAPIGroupRequest(args [0]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -10676,17 +10677,17 @@ func (s *Server) handleGetCoordinationV1APIResourcesRequest(args [0]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -10807,17 +10808,17 @@ func (s *Server) handleGetCoreAPIVersionsRequest(args [0]string, argsEscaped boo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -10938,17 +10939,17 @@ func (s *Server) handleGetCoreV1APIResourcesRequest(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -11069,17 +11070,17 @@ func (s *Server) handleGetDiscoveryAPIGroupRequest(args [0]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -11200,17 +11201,17 @@ func (s *Server) handleGetDiscoveryV1APIResourcesRequest(args [0]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -11331,17 +11332,17 @@ func (s *Server) handleGetDiscoveryV1beta1APIResourcesRequest(args [0]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -11462,17 +11463,17 @@ func (s *Server) handleGetEventsAPIGroupRequest(args [0]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -11593,17 +11594,17 @@ func (s *Server) handleGetEventsV1APIResourcesRequest(args [0]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -11724,17 +11725,17 @@ func (s *Server) handleGetEventsV1beta1APIResourcesRequest(args [0]string, argsE startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -11855,17 +11856,17 @@ func (s *Server) handleGetFlowcontrolApiserverAPIGroupRequest(args [0]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -11986,17 +11987,17 @@ func (s *Server) handleGetFlowcontrolApiserverV1beta1APIResourcesRequest(args [0 startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -12117,17 +12118,17 @@ func (s *Server) handleGetFlowcontrolApiserverV1beta2APIResourcesRequest(args [0 startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -12248,17 +12249,17 @@ func (s *Server) handleGetInternalApiserverAPIGroupRequest(args [0]string, argsE startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -12379,17 +12380,17 @@ func (s *Server) handleGetInternalApiserverV1alpha1APIResourcesRequest(args [0]s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -12510,17 +12511,17 @@ func (s *Server) handleGetNetworkingAPIGroupRequest(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -12641,17 +12642,17 @@ func (s *Server) handleGetNetworkingV1APIResourcesRequest(args [0]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -12772,17 +12773,17 @@ func (s *Server) handleGetNodeAPIGroupRequest(args [0]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -12903,17 +12904,17 @@ func (s *Server) handleGetNodeV1APIResourcesRequest(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -13034,17 +13035,17 @@ func (s *Server) handleGetNodeV1alpha1APIResourcesRequest(args [0]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -13165,17 +13166,17 @@ func (s *Server) handleGetNodeV1beta1APIResourcesRequest(args [0]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -13296,17 +13297,17 @@ func (s *Server) handleGetPolicyAPIGroupRequest(args [0]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -13427,17 +13428,17 @@ func (s *Server) handleGetPolicyV1APIResourcesRequest(args [0]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -13558,17 +13559,17 @@ func (s *Server) handleGetPolicyV1beta1APIResourcesRequest(args [0]string, argsE startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -13689,17 +13690,17 @@ func (s *Server) handleGetRbacAuthorizationAPIGroupRequest(args [0]string, argsE startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -13820,17 +13821,17 @@ func (s *Server) handleGetRbacAuthorizationV1APIResourcesRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -13951,17 +13952,17 @@ func (s *Server) handleGetSchedulingAPIGroupRequest(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -14082,17 +14083,17 @@ func (s *Server) handleGetSchedulingV1APIResourcesRequest(args [0]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -14213,17 +14214,17 @@ func (s *Server) handleGetServiceAccountIssuerOpenIDConfigurationRequest(args [0 startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -14344,17 +14345,17 @@ func (s *Server) handleGetServiceAccountIssuerOpenIDKeysetRequest(args [0]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -14475,17 +14476,17 @@ func (s *Server) handleGetStorageAPIGroupRequest(args [0]string, argsEscaped boo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -14606,17 +14607,17 @@ func (s *Server) handleGetStorageV1APIResourcesRequest(args [0]string, argsEscap startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -14737,17 +14738,17 @@ func (s *Server) handleGetStorageV1alpha1APIResourcesRequest(args [0]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -14868,17 +14869,17 @@ func (s *Server) handleGetStorageV1beta1APIResourcesRequest(args [0]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -14999,17 +15000,17 @@ func (s *Server) handleListAdmissionregistrationV1MutatingWebhookConfigurationRe startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -15181,17 +15182,17 @@ func (s *Server) handleListAdmissionregistrationV1ValidatingWebhookConfiguration startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -15363,17 +15364,17 @@ func (s *Server) handleListApiextensionsV1CustomResourceDefinitionRequest(args [ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -15545,17 +15546,17 @@ func (s *Server) handleListApiregistrationV1APIServiceRequest(args [0]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -15727,17 +15728,17 @@ func (s *Server) handleListAppsV1ControllerRevisionForAllNamespacesRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -15909,17 +15910,17 @@ func (s *Server) handleListAppsV1DaemonSetForAllNamespacesRequest(args [0]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -16091,17 +16092,17 @@ func (s *Server) handleListAppsV1DeploymentForAllNamespacesRequest(args [0]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -16273,17 +16274,17 @@ func (s *Server) handleListAppsV1NamespacedControllerRevisionRequest(args [1]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -16459,17 +16460,17 @@ func (s *Server) handleListAppsV1NamespacedDaemonSetRequest(args [1]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -16645,17 +16646,17 @@ func (s *Server) handleListAppsV1NamespacedDeploymentRequest(args [1]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -16831,17 +16832,17 @@ func (s *Server) handleListAppsV1NamespacedReplicaSetRequest(args [1]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -17017,17 +17018,17 @@ func (s *Server) handleListAppsV1NamespacedStatefulSetRequest(args [1]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -17203,17 +17204,17 @@ func (s *Server) handleListAppsV1ReplicaSetForAllNamespacesRequest(args [0]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -17385,17 +17386,17 @@ func (s *Server) handleListAppsV1StatefulSetForAllNamespacesRequest(args [0]stri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -17567,17 +17568,17 @@ func (s *Server) handleListAutoscalingV1HorizontalPodAutoscalerForAllNamespacesR startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -17749,17 +17750,17 @@ func (s *Server) handleListAutoscalingV1NamespacedHorizontalPodAutoscalerRequest startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -17935,17 +17936,17 @@ func (s *Server) handleListAutoscalingV2beta1HorizontalPodAutoscalerForAllNamesp startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -18117,17 +18118,17 @@ func (s *Server) handleListAutoscalingV2beta1NamespacedHorizontalPodAutoscalerRe startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -18303,17 +18304,17 @@ func (s *Server) handleListAutoscalingV2beta2HorizontalPodAutoscalerForAllNamesp startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -18485,17 +18486,17 @@ func (s *Server) handleListAutoscalingV2beta2NamespacedHorizontalPodAutoscalerRe startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -18671,17 +18672,17 @@ func (s *Server) handleListBatchV1CronJobForAllNamespacesRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -18853,17 +18854,17 @@ func (s *Server) handleListBatchV1JobForAllNamespacesRequest(args [0]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -19035,17 +19036,17 @@ func (s *Server) handleListBatchV1NamespacedCronJobRequest(args [1]string, argsE startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -19221,17 +19222,17 @@ func (s *Server) handleListBatchV1NamespacedJobRequest(args [1]string, argsEscap startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -19407,17 +19408,17 @@ func (s *Server) handleListBatchV1beta1CronJobForAllNamespacesRequest(args [0]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -19589,17 +19590,17 @@ func (s *Server) handleListBatchV1beta1NamespacedCronJobRequest(args [1]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -19775,17 +19776,17 @@ func (s *Server) handleListCertificatesV1CertificateSigningRequestRequest(args [ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -19957,17 +19958,17 @@ func (s *Server) handleListCoordinationV1LeaseForAllNamespacesRequest(args [0]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -20139,17 +20140,17 @@ func (s *Server) handleListCoordinationV1NamespacedLeaseRequest(args [1]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -20325,17 +20326,17 @@ func (s *Server) handleListCoreV1ComponentStatusRequest(args [0]string, argsEsca startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -20507,17 +20508,17 @@ func (s *Server) handleListCoreV1ConfigMapForAllNamespacesRequest(args [0]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -20689,17 +20690,17 @@ func (s *Server) handleListCoreV1EndpointsForAllNamespacesRequest(args [0]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -20871,17 +20872,17 @@ func (s *Server) handleListCoreV1EventForAllNamespacesRequest(args [0]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -21053,17 +21054,17 @@ func (s *Server) handleListCoreV1LimitRangeForAllNamespacesRequest(args [0]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -21235,17 +21236,17 @@ func (s *Server) handleListCoreV1NamespaceRequest(args [0]string, argsEscaped bo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -21417,17 +21418,17 @@ func (s *Server) handleListCoreV1NamespacedConfigMapRequest(args [1]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -21603,17 +21604,17 @@ func (s *Server) handleListCoreV1NamespacedEndpointsRequest(args [1]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -21789,17 +21790,17 @@ func (s *Server) handleListCoreV1NamespacedEventRequest(args [1]string, argsEsca startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -21975,17 +21976,17 @@ func (s *Server) handleListCoreV1NamespacedLimitRangeRequest(args [1]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -22161,17 +22162,17 @@ func (s *Server) handleListCoreV1NamespacedPersistentVolumeClaimRequest(args [1] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -22347,17 +22348,17 @@ func (s *Server) handleListCoreV1NamespacedPodRequest(args [1]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -22533,17 +22534,17 @@ func (s *Server) handleListCoreV1NamespacedPodTemplateRequest(args [1]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -22719,17 +22720,17 @@ func (s *Server) handleListCoreV1NamespacedReplicationControllerRequest(args [1] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -22905,17 +22906,17 @@ func (s *Server) handleListCoreV1NamespacedResourceQuotaRequest(args [1]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -23091,17 +23092,17 @@ func (s *Server) handleListCoreV1NamespacedSecretRequest(args [1]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -23277,17 +23278,17 @@ func (s *Server) handleListCoreV1NamespacedServiceRequest(args [1]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -23463,17 +23464,17 @@ func (s *Server) handleListCoreV1NamespacedServiceAccountRequest(args [1]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -23649,17 +23650,17 @@ func (s *Server) handleListCoreV1NodeRequest(args [0]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -23831,17 +23832,17 @@ func (s *Server) handleListCoreV1PersistentVolumeRequest(args [0]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -24013,17 +24014,17 @@ func (s *Server) handleListCoreV1PersistentVolumeClaimForAllNamespacesRequest(ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -24195,17 +24196,17 @@ func (s *Server) handleListCoreV1PodForAllNamespacesRequest(args [0]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -24377,17 +24378,17 @@ func (s *Server) handleListCoreV1PodTemplateForAllNamespacesRequest(args [0]stri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -24559,17 +24560,17 @@ func (s *Server) handleListCoreV1ReplicationControllerForAllNamespacesRequest(ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -24741,17 +24742,17 @@ func (s *Server) handleListCoreV1ResourceQuotaForAllNamespacesRequest(args [0]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -24923,17 +24924,17 @@ func (s *Server) handleListCoreV1SecretForAllNamespacesRequest(args [0]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -25105,17 +25106,17 @@ func (s *Server) handleListCoreV1ServiceAccountForAllNamespacesRequest(args [0]s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -25287,17 +25288,17 @@ func (s *Server) handleListCoreV1ServiceForAllNamespacesRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -25469,17 +25470,17 @@ func (s *Server) handleListDiscoveryV1EndpointSliceForAllNamespacesRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -25651,17 +25652,17 @@ func (s *Server) handleListDiscoveryV1NamespacedEndpointSliceRequest(args [1]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -25837,17 +25838,17 @@ func (s *Server) handleListDiscoveryV1beta1EndpointSliceForAllNamespacesRequest( startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -26019,17 +26020,17 @@ func (s *Server) handleListDiscoveryV1beta1NamespacedEndpointSliceRequest(args [ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -26205,17 +26206,17 @@ func (s *Server) handleListEventsV1EventForAllNamespacesRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -26387,17 +26388,17 @@ func (s *Server) handleListEventsV1NamespacedEventRequest(args [1]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -26573,17 +26574,17 @@ func (s *Server) handleListEventsV1beta1EventForAllNamespacesRequest(args [0]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -26755,17 +26756,17 @@ func (s *Server) handleListEventsV1beta1NamespacedEventRequest(args [1]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -26941,17 +26942,17 @@ func (s *Server) handleListFlowcontrolApiserverV1beta1FlowSchemaRequest(args [0] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -27123,17 +27124,17 @@ func (s *Server) handleListFlowcontrolApiserverV1beta1PriorityLevelConfiguration startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -27305,17 +27306,17 @@ func (s *Server) handleListFlowcontrolApiserverV1beta2FlowSchemaRequest(args [0] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -27487,17 +27488,17 @@ func (s *Server) handleListFlowcontrolApiserverV1beta2PriorityLevelConfiguration startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -27669,17 +27670,17 @@ func (s *Server) handleListInternalApiserverV1alpha1StorageVersionRequest(args [ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -27851,17 +27852,17 @@ func (s *Server) handleListNetworkingV1IngressClassRequest(args [0]string, argsE startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -28033,17 +28034,17 @@ func (s *Server) handleListNetworkingV1IngressForAllNamespacesRequest(args [0]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -28215,17 +28216,17 @@ func (s *Server) handleListNetworkingV1NamespacedIngressRequest(args [1]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -28401,17 +28402,17 @@ func (s *Server) handleListNetworkingV1NamespacedNetworkPolicyRequest(args [1]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -28587,17 +28588,17 @@ func (s *Server) handleListNetworkingV1NetworkPolicyForAllNamespacesRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -28769,17 +28770,17 @@ func (s *Server) handleListNodeV1RuntimeClassRequest(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -28951,17 +28952,17 @@ func (s *Server) handleListNodeV1alpha1RuntimeClassRequest(args [0]string, argsE startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -29133,17 +29134,17 @@ func (s *Server) handleListNodeV1beta1RuntimeClassRequest(args [0]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -29315,17 +29316,17 @@ func (s *Server) handleListPolicyV1NamespacedPodDisruptionBudgetRequest(args [1] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -29501,17 +29502,17 @@ func (s *Server) handleListPolicyV1PodDisruptionBudgetForAllNamespacesRequest(ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -29683,17 +29684,17 @@ func (s *Server) handleListPolicyV1beta1NamespacedPodDisruptionBudgetRequest(arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -29869,17 +29870,17 @@ func (s *Server) handleListPolicyV1beta1PodDisruptionBudgetForAllNamespacesReque startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -30051,17 +30052,17 @@ func (s *Server) handleListPolicyV1beta1PodSecurityPolicyRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -30233,17 +30234,17 @@ func (s *Server) handleListRbacAuthorizationV1ClusterRoleRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -30415,17 +30416,17 @@ func (s *Server) handleListRbacAuthorizationV1ClusterRoleBindingRequest(args [0] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -30597,17 +30598,17 @@ func (s *Server) handleListRbacAuthorizationV1NamespacedRoleRequest(args [1]stri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -30783,17 +30784,17 @@ func (s *Server) handleListRbacAuthorizationV1NamespacedRoleBindingRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -30969,17 +30970,17 @@ func (s *Server) handleListRbacAuthorizationV1RoleBindingForAllNamespacesRequest startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -31151,17 +31152,17 @@ func (s *Server) handleListRbacAuthorizationV1RoleForAllNamespacesRequest(args [ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -31333,17 +31334,17 @@ func (s *Server) handleListSchedulingV1PriorityClassRequest(args [0]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -31515,17 +31516,17 @@ func (s *Server) handleListStorageV1CSIDriverRequest(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -31697,17 +31698,17 @@ func (s *Server) handleListStorageV1CSINodeRequest(args [0]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -31879,17 +31880,17 @@ func (s *Server) handleListStorageV1StorageClassRequest(args [0]string, argsEsca startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -32061,17 +32062,17 @@ func (s *Server) handleListStorageV1VolumeAttachmentRequest(args [0]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -32243,17 +32244,17 @@ func (s *Server) handleListStorageV1alpha1CSIStorageCapacityForAllNamespacesRequ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -32425,17 +32426,17 @@ func (s *Server) handleListStorageV1alpha1NamespacedCSIStorageCapacityRequest(ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -32611,17 +32612,17 @@ func (s *Server) handleListStorageV1beta1CSIStorageCapacityForAllNamespacesReque startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -32793,17 +32794,17 @@ func (s *Server) handleListStorageV1beta1NamespacedCSIStorageCapacityRequest(arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -32977,17 +32978,17 @@ func (s *Server) handleLogFileHandlerRequest(args [1]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -33121,17 +33122,17 @@ func (s *Server) handleLogFileListHandlerRequest(args [0]string, argsEscaped boo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -33252,17 +33253,17 @@ func (s *Server) handleReadAdmissionregistrationV1MutatingWebhookConfigurationRe startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -33402,17 +33403,17 @@ func (s *Server) handleReadAdmissionregistrationV1ValidatingWebhookConfiguration startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -33552,17 +33553,17 @@ func (s *Server) handleReadApiextensionsV1CustomResourceDefinitionRequest(args [ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -33702,17 +33703,17 @@ func (s *Server) handleReadApiextensionsV1CustomResourceDefinitionStatusRequest( startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -33852,17 +33853,17 @@ func (s *Server) handleReadApiregistrationV1APIServiceRequest(args [1]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -34002,17 +34003,17 @@ func (s *Server) handleReadApiregistrationV1APIServiceStatusRequest(args [1]stri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -34152,17 +34153,17 @@ func (s *Server) handleReadAppsV1NamespacedControllerRevisionRequest(args [2]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -34306,17 +34307,17 @@ func (s *Server) handleReadAppsV1NamespacedDaemonSetRequest(args [2]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -34460,17 +34461,17 @@ func (s *Server) handleReadAppsV1NamespacedDaemonSetStatusRequest(args [2]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -34614,17 +34615,17 @@ func (s *Server) handleReadAppsV1NamespacedDeploymentRequest(args [2]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -34768,17 +34769,17 @@ func (s *Server) handleReadAppsV1NamespacedDeploymentScaleRequest(args [2]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -34922,17 +34923,17 @@ func (s *Server) handleReadAppsV1NamespacedDeploymentStatusRequest(args [2]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -35076,17 +35077,17 @@ func (s *Server) handleReadAppsV1NamespacedReplicaSetRequest(args [2]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -35230,17 +35231,17 @@ func (s *Server) handleReadAppsV1NamespacedReplicaSetScaleRequest(args [2]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -35384,17 +35385,17 @@ func (s *Server) handleReadAppsV1NamespacedReplicaSetStatusRequest(args [2]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -35538,17 +35539,17 @@ func (s *Server) handleReadAppsV1NamespacedStatefulSetRequest(args [2]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -35692,17 +35693,17 @@ func (s *Server) handleReadAppsV1NamespacedStatefulSetScaleRequest(args [2]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -35846,17 +35847,17 @@ func (s *Server) handleReadAppsV1NamespacedStatefulSetStatusRequest(args [2]stri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -36000,17 +36001,17 @@ func (s *Server) handleReadAutoscalingV1NamespacedHorizontalPodAutoscalerRequest startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -36154,17 +36155,17 @@ func (s *Server) handleReadAutoscalingV1NamespacedHorizontalPodAutoscalerStatusR startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -36308,17 +36309,17 @@ func (s *Server) handleReadAutoscalingV2beta1NamespacedHorizontalPodAutoscalerRe startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -36462,17 +36463,17 @@ func (s *Server) handleReadAutoscalingV2beta1NamespacedHorizontalPodAutoscalerSt startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -36616,17 +36617,17 @@ func (s *Server) handleReadAutoscalingV2beta2NamespacedHorizontalPodAutoscalerRe startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -36770,17 +36771,17 @@ func (s *Server) handleReadAutoscalingV2beta2NamespacedHorizontalPodAutoscalerSt startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -36924,17 +36925,17 @@ func (s *Server) handleReadBatchV1NamespacedCronJobRequest(args [2]string, argsE startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -37078,17 +37079,17 @@ func (s *Server) handleReadBatchV1NamespacedCronJobStatusRequest(args [2]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -37232,17 +37233,17 @@ func (s *Server) handleReadBatchV1NamespacedJobRequest(args [2]string, argsEscap startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -37386,17 +37387,17 @@ func (s *Server) handleReadBatchV1NamespacedJobStatusRequest(args [2]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -37540,17 +37541,17 @@ func (s *Server) handleReadBatchV1beta1NamespacedCronJobRequest(args [2]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -37694,17 +37695,17 @@ func (s *Server) handleReadBatchV1beta1NamespacedCronJobStatusRequest(args [2]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -37848,17 +37849,17 @@ func (s *Server) handleReadCertificatesV1CertificateSigningRequestRequest(args [ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -37998,17 +37999,17 @@ func (s *Server) handleReadCertificatesV1CertificateSigningRequestApprovalReques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -38148,17 +38149,17 @@ func (s *Server) handleReadCertificatesV1CertificateSigningRequestStatusRequest( startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -38298,17 +38299,17 @@ func (s *Server) handleReadCoordinationV1NamespacedLeaseRequest(args [2]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -38452,17 +38453,17 @@ func (s *Server) handleReadCoreV1ComponentStatusRequest(args [1]string, argsEsca startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -38602,17 +38603,17 @@ func (s *Server) handleReadCoreV1NamespaceRequest(args [1]string, argsEscaped bo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -38752,17 +38753,17 @@ func (s *Server) handleReadCoreV1NamespaceStatusRequest(args [1]string, argsEsca startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -38902,17 +38903,17 @@ func (s *Server) handleReadCoreV1NamespacedConfigMapRequest(args [2]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -39056,17 +39057,17 @@ func (s *Server) handleReadCoreV1NamespacedEndpointsRequest(args [2]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -39210,17 +39211,17 @@ func (s *Server) handleReadCoreV1NamespacedEventRequest(args [2]string, argsEsca startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -39364,17 +39365,17 @@ func (s *Server) handleReadCoreV1NamespacedLimitRangeRequest(args [2]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -39518,17 +39519,17 @@ func (s *Server) handleReadCoreV1NamespacedPersistentVolumeClaimRequest(args [2] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -39672,17 +39673,17 @@ func (s *Server) handleReadCoreV1NamespacedPersistentVolumeClaimStatusRequest(ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -39826,17 +39827,17 @@ func (s *Server) handleReadCoreV1NamespacedPodRequest(args [2]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -39980,17 +39981,17 @@ func (s *Server) handleReadCoreV1NamespacedPodEphemeralcontainersRequest(args [2 startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -40134,17 +40135,17 @@ func (s *Server) handleReadCoreV1NamespacedPodLogRequest(args [2]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -40320,17 +40321,17 @@ func (s *Server) handleReadCoreV1NamespacedPodStatusRequest(args [2]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -40474,17 +40475,17 @@ func (s *Server) handleReadCoreV1NamespacedPodTemplateRequest(args [2]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -40628,17 +40629,17 @@ func (s *Server) handleReadCoreV1NamespacedReplicationControllerRequest(args [2] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -40782,17 +40783,17 @@ func (s *Server) handleReadCoreV1NamespacedReplicationControllerScaleRequest(arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -40936,17 +40937,17 @@ func (s *Server) handleReadCoreV1NamespacedReplicationControllerStatusRequest(ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -41090,17 +41091,17 @@ func (s *Server) handleReadCoreV1NamespacedResourceQuotaRequest(args [2]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -41244,17 +41245,17 @@ func (s *Server) handleReadCoreV1NamespacedResourceQuotaStatusRequest(args [2]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -41398,17 +41399,17 @@ func (s *Server) handleReadCoreV1NamespacedSecretRequest(args [2]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -41552,17 +41553,17 @@ func (s *Server) handleReadCoreV1NamespacedServiceRequest(args [2]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -41706,17 +41707,17 @@ func (s *Server) handleReadCoreV1NamespacedServiceAccountRequest(args [2]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -41860,17 +41861,17 @@ func (s *Server) handleReadCoreV1NamespacedServiceStatusRequest(args [2]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -42014,17 +42015,17 @@ func (s *Server) handleReadCoreV1NodeRequest(args [1]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -42164,17 +42165,17 @@ func (s *Server) handleReadCoreV1NodeStatusRequest(args [1]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -42314,17 +42315,17 @@ func (s *Server) handleReadCoreV1PersistentVolumeRequest(args [1]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -42464,17 +42465,17 @@ func (s *Server) handleReadCoreV1PersistentVolumeStatusRequest(args [1]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -42614,17 +42615,17 @@ func (s *Server) handleReadDiscoveryV1NamespacedEndpointSliceRequest(args [2]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -42768,17 +42769,17 @@ func (s *Server) handleReadDiscoveryV1beta1NamespacedEndpointSliceRequest(args [ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -42922,17 +42923,17 @@ func (s *Server) handleReadEventsV1NamespacedEventRequest(args [2]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -43076,17 +43077,17 @@ func (s *Server) handleReadEventsV1beta1NamespacedEventRequest(args [2]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -43230,17 +43231,17 @@ func (s *Server) handleReadFlowcontrolApiserverV1beta1FlowSchemaRequest(args [1] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -43380,17 +43381,17 @@ func (s *Server) handleReadFlowcontrolApiserverV1beta1FlowSchemaStatusRequest(ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -43530,17 +43531,17 @@ func (s *Server) handleReadFlowcontrolApiserverV1beta1PriorityLevelConfiguration startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -43680,17 +43681,17 @@ func (s *Server) handleReadFlowcontrolApiserverV1beta1PriorityLevelConfiguration startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -43830,17 +43831,17 @@ func (s *Server) handleReadFlowcontrolApiserverV1beta2FlowSchemaRequest(args [1] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -43980,17 +43981,17 @@ func (s *Server) handleReadFlowcontrolApiserverV1beta2FlowSchemaStatusRequest(ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -44130,17 +44131,17 @@ func (s *Server) handleReadFlowcontrolApiserverV1beta2PriorityLevelConfiguration startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -44280,17 +44281,17 @@ func (s *Server) handleReadFlowcontrolApiserverV1beta2PriorityLevelConfiguration startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -44430,17 +44431,17 @@ func (s *Server) handleReadInternalApiserverV1alpha1StorageVersionRequest(args [ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -44580,17 +44581,17 @@ func (s *Server) handleReadInternalApiserverV1alpha1StorageVersionStatusRequest( startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -44730,17 +44731,17 @@ func (s *Server) handleReadNetworkingV1IngressClassRequest(args [1]string, argsE startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -44880,17 +44881,17 @@ func (s *Server) handleReadNetworkingV1NamespacedIngressRequest(args [2]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -45034,17 +45035,17 @@ func (s *Server) handleReadNetworkingV1NamespacedIngressStatusRequest(args [2]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -45188,17 +45189,17 @@ func (s *Server) handleReadNetworkingV1NamespacedNetworkPolicyRequest(args [2]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -45342,17 +45343,17 @@ func (s *Server) handleReadNodeV1RuntimeClassRequest(args [1]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -45492,17 +45493,17 @@ func (s *Server) handleReadNodeV1alpha1RuntimeClassRequest(args [1]string, argsE startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -45642,17 +45643,17 @@ func (s *Server) handleReadNodeV1beta1RuntimeClassRequest(args [1]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -45792,17 +45793,17 @@ func (s *Server) handleReadPolicyV1NamespacedPodDisruptionBudgetRequest(args [2] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -45946,17 +45947,17 @@ func (s *Server) handleReadPolicyV1NamespacedPodDisruptionBudgetStatusRequest(ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -46100,17 +46101,17 @@ func (s *Server) handleReadPolicyV1beta1NamespacedPodDisruptionBudgetRequest(arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -46254,17 +46255,17 @@ func (s *Server) handleReadPolicyV1beta1NamespacedPodDisruptionBudgetStatusReque startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -46408,17 +46409,17 @@ func (s *Server) handleReadPolicyV1beta1PodSecurityPolicyRequest(args [1]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -46558,17 +46559,17 @@ func (s *Server) handleReadRbacAuthorizationV1ClusterRoleRequest(args [1]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -46708,17 +46709,17 @@ func (s *Server) handleReadRbacAuthorizationV1ClusterRoleBindingRequest(args [1] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -46858,17 +46859,17 @@ func (s *Server) handleReadRbacAuthorizationV1NamespacedRoleRequest(args [2]stri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -47012,17 +47013,17 @@ func (s *Server) handleReadRbacAuthorizationV1NamespacedRoleBindingRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -47166,17 +47167,17 @@ func (s *Server) handleReadSchedulingV1PriorityClassRequest(args [1]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -47316,17 +47317,17 @@ func (s *Server) handleReadStorageV1CSIDriverRequest(args [1]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -47466,17 +47467,17 @@ func (s *Server) handleReadStorageV1CSINodeRequest(args [1]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -47616,17 +47617,17 @@ func (s *Server) handleReadStorageV1StorageClassRequest(args [1]string, argsEsca startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -47766,17 +47767,17 @@ func (s *Server) handleReadStorageV1VolumeAttachmentRequest(args [1]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -47916,17 +47917,17 @@ func (s *Server) handleReadStorageV1VolumeAttachmentStatusRequest(args [1]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -48066,17 +48067,17 @@ func (s *Server) handleReadStorageV1alpha1NamespacedCSIStorageCapacityRequest(ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -48220,17 +48221,17 @@ func (s *Server) handleReadStorageV1beta1NamespacedCSIStorageCapacityRequest(arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -48376,17 +48377,17 @@ func (s *Server) handleWatchAdmissionregistrationV1MutatingWebhookConfigurationR startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -48563,17 +48564,17 @@ func (s *Server) handleWatchAdmissionregistrationV1MutatingWebhookConfigurationL startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -48747,17 +48748,17 @@ func (s *Server) handleWatchAdmissionregistrationV1ValidatingWebhookConfiguratio startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -48934,17 +48935,17 @@ func (s *Server) handleWatchAdmissionregistrationV1ValidatingWebhookConfiguratio startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -49117,17 +49118,17 @@ func (s *Server) handleWatchApiextensionsV1CustomResourceDefinitionRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -49304,17 +49305,17 @@ func (s *Server) handleWatchApiextensionsV1CustomResourceDefinitionListRequest(a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -49487,17 +49488,17 @@ func (s *Server) handleWatchApiregistrationV1APIServiceRequest(args [1]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -49674,17 +49675,17 @@ func (s *Server) handleWatchApiregistrationV1APIServiceListRequest(args [0]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -49857,17 +49858,17 @@ func (s *Server) handleWatchAppsV1ControllerRevisionListForAllNamespacesRequest( startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -50040,17 +50041,17 @@ func (s *Server) handleWatchAppsV1DaemonSetListForAllNamespacesRequest(args [0]s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -50223,17 +50224,17 @@ func (s *Server) handleWatchAppsV1DeploymentListForAllNamespacesRequest(args [0] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -50406,17 +50407,17 @@ func (s *Server) handleWatchAppsV1NamespacedControllerRevisionRequest(args [2]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -50597,17 +50598,17 @@ func (s *Server) handleWatchAppsV1NamespacedControllerRevisionListRequest(args [ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -50784,17 +50785,17 @@ func (s *Server) handleWatchAppsV1NamespacedDaemonSetRequest(args [2]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -50975,17 +50976,17 @@ func (s *Server) handleWatchAppsV1NamespacedDaemonSetListRequest(args [1]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -51162,17 +51163,17 @@ func (s *Server) handleWatchAppsV1NamespacedDeploymentRequest(args [2]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -51353,17 +51354,17 @@ func (s *Server) handleWatchAppsV1NamespacedDeploymentListRequest(args [1]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -51540,17 +51541,17 @@ func (s *Server) handleWatchAppsV1NamespacedReplicaSetRequest(args [2]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -51731,17 +51732,17 @@ func (s *Server) handleWatchAppsV1NamespacedReplicaSetListRequest(args [1]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -51918,17 +51919,17 @@ func (s *Server) handleWatchAppsV1NamespacedStatefulSetRequest(args [2]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -52109,17 +52110,17 @@ func (s *Server) handleWatchAppsV1NamespacedStatefulSetListRequest(args [1]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -52296,17 +52297,17 @@ func (s *Server) handleWatchAppsV1ReplicaSetListForAllNamespacesRequest(args [0] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -52479,17 +52480,17 @@ func (s *Server) handleWatchAppsV1StatefulSetListForAllNamespacesRequest(args [0 startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -52662,17 +52663,17 @@ func (s *Server) handleWatchAutoscalingV1HorizontalPodAutoscalerListForAllNamesp startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -52845,17 +52846,17 @@ func (s *Server) handleWatchAutoscalingV1NamespacedHorizontalPodAutoscalerReques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -53036,17 +53037,17 @@ func (s *Server) handleWatchAutoscalingV1NamespacedHorizontalPodAutoscalerListRe startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -53223,17 +53224,17 @@ func (s *Server) handleWatchAutoscalingV2beta1HorizontalPodAutoscalerListForAllN startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -53406,17 +53407,17 @@ func (s *Server) handleWatchAutoscalingV2beta1NamespacedHorizontalPodAutoscalerR startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -53597,17 +53598,17 @@ func (s *Server) handleWatchAutoscalingV2beta1NamespacedHorizontalPodAutoscalerL startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -53784,17 +53785,17 @@ func (s *Server) handleWatchAutoscalingV2beta2HorizontalPodAutoscalerListForAllN startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -53967,17 +53968,17 @@ func (s *Server) handleWatchAutoscalingV2beta2NamespacedHorizontalPodAutoscalerR startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -54158,17 +54159,17 @@ func (s *Server) handleWatchAutoscalingV2beta2NamespacedHorizontalPodAutoscalerL startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -54345,17 +54346,17 @@ func (s *Server) handleWatchBatchV1CronJobListForAllNamespacesRequest(args [0]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -54528,17 +54529,17 @@ func (s *Server) handleWatchBatchV1JobListForAllNamespacesRequest(args [0]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -54711,17 +54712,17 @@ func (s *Server) handleWatchBatchV1NamespacedCronJobRequest(args [2]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -54902,17 +54903,17 @@ func (s *Server) handleWatchBatchV1NamespacedCronJobListRequest(args [1]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -55089,17 +55090,17 @@ func (s *Server) handleWatchBatchV1NamespacedJobRequest(args [2]string, argsEsca startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -55280,17 +55281,17 @@ func (s *Server) handleWatchBatchV1NamespacedJobListRequest(args [1]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -55467,17 +55468,17 @@ func (s *Server) handleWatchBatchV1beta1CronJobListForAllNamespacesRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -55650,17 +55651,17 @@ func (s *Server) handleWatchBatchV1beta1NamespacedCronJobRequest(args [2]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -55841,17 +55842,17 @@ func (s *Server) handleWatchBatchV1beta1NamespacedCronJobListRequest(args [1]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -56029,17 +56030,17 @@ func (s *Server) handleWatchCertificatesV1CertificateSigningRequestRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -56216,17 +56217,17 @@ func (s *Server) handleWatchCertificatesV1CertificateSigningRequestListRequest(a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -56399,17 +56400,17 @@ func (s *Server) handleWatchCoordinationV1LeaseListForAllNamespacesRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -56582,17 +56583,17 @@ func (s *Server) handleWatchCoordinationV1NamespacedLeaseRequest(args [2]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -56773,17 +56774,17 @@ func (s *Server) handleWatchCoordinationV1NamespacedLeaseListRequest(args [1]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -56960,17 +56961,17 @@ func (s *Server) handleWatchCoreV1ConfigMapListForAllNamespacesRequest(args [0]s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -57143,17 +57144,17 @@ func (s *Server) handleWatchCoreV1EndpointsListForAllNamespacesRequest(args [0]s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -57326,17 +57327,17 @@ func (s *Server) handleWatchCoreV1EventListForAllNamespacesRequest(args [0]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -57509,17 +57510,17 @@ func (s *Server) handleWatchCoreV1LimitRangeListForAllNamespacesRequest(args [0] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -57692,17 +57693,17 @@ func (s *Server) handleWatchCoreV1NamespaceRequest(args [1]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -57879,17 +57880,17 @@ func (s *Server) handleWatchCoreV1NamespaceListRequest(args [0]string, argsEscap startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -58062,17 +58063,17 @@ func (s *Server) handleWatchCoreV1NamespacedConfigMapRequest(args [2]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -58253,17 +58254,17 @@ func (s *Server) handleWatchCoreV1NamespacedConfigMapListRequest(args [1]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -58440,17 +58441,17 @@ func (s *Server) handleWatchCoreV1NamespacedEndpointsRequest(args [2]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -58631,17 +58632,17 @@ func (s *Server) handleWatchCoreV1NamespacedEndpointsListRequest(args [1]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -58818,17 +58819,17 @@ func (s *Server) handleWatchCoreV1NamespacedEventRequest(args [2]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -59009,17 +59010,17 @@ func (s *Server) handleWatchCoreV1NamespacedEventListRequest(args [1]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -59196,17 +59197,17 @@ func (s *Server) handleWatchCoreV1NamespacedLimitRangeRequest(args [2]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -59387,17 +59388,17 @@ func (s *Server) handleWatchCoreV1NamespacedLimitRangeListRequest(args [1]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -59574,17 +59575,17 @@ func (s *Server) handleWatchCoreV1NamespacedPersistentVolumeClaimRequest(args [2 startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -59765,17 +59766,17 @@ func (s *Server) handleWatchCoreV1NamespacedPersistentVolumeClaimListRequest(arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -59952,17 +59953,17 @@ func (s *Server) handleWatchCoreV1NamespacedPodRequest(args [2]string, argsEscap startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -60143,17 +60144,17 @@ func (s *Server) handleWatchCoreV1NamespacedPodListRequest(args [1]string, argsE startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -60330,17 +60331,17 @@ func (s *Server) handleWatchCoreV1NamespacedPodTemplateRequest(args [2]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -60521,17 +60522,17 @@ func (s *Server) handleWatchCoreV1NamespacedPodTemplateListRequest(args [1]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -60708,17 +60709,17 @@ func (s *Server) handleWatchCoreV1NamespacedReplicationControllerRequest(args [2 startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -60899,17 +60900,17 @@ func (s *Server) handleWatchCoreV1NamespacedReplicationControllerListRequest(arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -61086,17 +61087,17 @@ func (s *Server) handleWatchCoreV1NamespacedResourceQuotaRequest(args [2]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -61277,17 +61278,17 @@ func (s *Server) handleWatchCoreV1NamespacedResourceQuotaListRequest(args [1]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -61464,17 +61465,17 @@ func (s *Server) handleWatchCoreV1NamespacedSecretRequest(args [2]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -61655,17 +61656,17 @@ func (s *Server) handleWatchCoreV1NamespacedSecretListRequest(args [1]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -61842,17 +61843,17 @@ func (s *Server) handleWatchCoreV1NamespacedServiceRequest(args [2]string, argsE startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -62033,17 +62034,17 @@ func (s *Server) handleWatchCoreV1NamespacedServiceAccountRequest(args [2]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -62224,17 +62225,17 @@ func (s *Server) handleWatchCoreV1NamespacedServiceAccountListRequest(args [1]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -62411,17 +62412,17 @@ func (s *Server) handleWatchCoreV1NamespacedServiceListRequest(args [1]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -62598,17 +62599,17 @@ func (s *Server) handleWatchCoreV1NodeRequest(args [1]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -62785,17 +62786,17 @@ func (s *Server) handleWatchCoreV1NodeListRequest(args [0]string, argsEscaped bo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -62968,17 +62969,17 @@ func (s *Server) handleWatchCoreV1PersistentVolumeRequest(args [1]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -63155,17 +63156,17 @@ func (s *Server) handleWatchCoreV1PersistentVolumeClaimListForAllNamespacesReque startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -63338,17 +63339,17 @@ func (s *Server) handleWatchCoreV1PersistentVolumeListRequest(args [0]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -63521,17 +63522,17 @@ func (s *Server) handleWatchCoreV1PodListForAllNamespacesRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -63704,17 +63705,17 @@ func (s *Server) handleWatchCoreV1PodTemplateListForAllNamespacesRequest(args [0 startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -63887,17 +63888,17 @@ func (s *Server) handleWatchCoreV1ReplicationControllerListForAllNamespacesReque startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -64070,17 +64071,17 @@ func (s *Server) handleWatchCoreV1ResourceQuotaListForAllNamespacesRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -64253,17 +64254,17 @@ func (s *Server) handleWatchCoreV1SecretListForAllNamespacesRequest(args [0]stri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -64436,17 +64437,17 @@ func (s *Server) handleWatchCoreV1ServiceAccountListForAllNamespacesRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -64619,17 +64620,17 @@ func (s *Server) handleWatchCoreV1ServiceListForAllNamespacesRequest(args [0]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -64802,17 +64803,17 @@ func (s *Server) handleWatchDiscoveryV1EndpointSliceListForAllNamespacesRequest( startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -64985,17 +64986,17 @@ func (s *Server) handleWatchDiscoveryV1NamespacedEndpointSliceRequest(args [2]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -65176,17 +65177,17 @@ func (s *Server) handleWatchDiscoveryV1NamespacedEndpointSliceListRequest(args [ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -65363,17 +65364,17 @@ func (s *Server) handleWatchDiscoveryV1beta1EndpointSliceListForAllNamespacesReq startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -65546,17 +65547,17 @@ func (s *Server) handleWatchDiscoveryV1beta1NamespacedEndpointSliceRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -65737,17 +65738,17 @@ func (s *Server) handleWatchDiscoveryV1beta1NamespacedEndpointSliceListRequest(a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -65924,17 +65925,17 @@ func (s *Server) handleWatchEventsV1EventListForAllNamespacesRequest(args [0]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -66107,17 +66108,17 @@ func (s *Server) handleWatchEventsV1NamespacedEventRequest(args [2]string, argsE startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -66298,17 +66299,17 @@ func (s *Server) handleWatchEventsV1NamespacedEventListRequest(args [1]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -66485,17 +66486,17 @@ func (s *Server) handleWatchEventsV1beta1EventListForAllNamespacesRequest(args [ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -66668,17 +66669,17 @@ func (s *Server) handleWatchEventsV1beta1NamespacedEventRequest(args [2]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -66859,17 +66860,17 @@ func (s *Server) handleWatchEventsV1beta1NamespacedEventListRequest(args [1]stri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -67046,17 +67047,17 @@ func (s *Server) handleWatchFlowcontrolApiserverV1beta1FlowSchemaRequest(args [1 startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -67233,17 +67234,17 @@ func (s *Server) handleWatchFlowcontrolApiserverV1beta1FlowSchemaListRequest(arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -67417,17 +67418,17 @@ func (s *Server) handleWatchFlowcontrolApiserverV1beta1PriorityLevelConfiguratio startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -67604,17 +67605,17 @@ func (s *Server) handleWatchFlowcontrolApiserverV1beta1PriorityLevelConfiguratio startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -67787,17 +67788,17 @@ func (s *Server) handleWatchFlowcontrolApiserverV1beta2FlowSchemaRequest(args [1 startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -67974,17 +67975,17 @@ func (s *Server) handleWatchFlowcontrolApiserverV1beta2FlowSchemaListRequest(arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -68158,17 +68159,17 @@ func (s *Server) handleWatchFlowcontrolApiserverV1beta2PriorityLevelConfiguratio startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -68345,17 +68346,17 @@ func (s *Server) handleWatchFlowcontrolApiserverV1beta2PriorityLevelConfiguratio startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -68528,17 +68529,17 @@ func (s *Server) handleWatchInternalApiserverV1alpha1StorageVersionRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -68715,17 +68716,17 @@ func (s *Server) handleWatchInternalApiserverV1alpha1StorageVersionListRequest(a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -68898,17 +68899,17 @@ func (s *Server) handleWatchNetworkingV1IngressClassRequest(args [1]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -69085,17 +69086,17 @@ func (s *Server) handleWatchNetworkingV1IngressClassListRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -69268,17 +69269,17 @@ func (s *Server) handleWatchNetworkingV1IngressListForAllNamespacesRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -69451,17 +69452,17 @@ func (s *Server) handleWatchNetworkingV1NamespacedIngressRequest(args [2]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -69642,17 +69643,17 @@ func (s *Server) handleWatchNetworkingV1NamespacedIngressListRequest(args [1]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -69829,17 +69830,17 @@ func (s *Server) handleWatchNetworkingV1NamespacedNetworkPolicyRequest(args [2]s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -70020,17 +70021,17 @@ func (s *Server) handleWatchNetworkingV1NamespacedNetworkPolicyListRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -70207,17 +70208,17 @@ func (s *Server) handleWatchNetworkingV1NetworkPolicyListForAllNamespacesRequest startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -70390,17 +70391,17 @@ func (s *Server) handleWatchNodeV1RuntimeClassRequest(args [1]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -70577,17 +70578,17 @@ func (s *Server) handleWatchNodeV1RuntimeClassListRequest(args [0]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -70760,17 +70761,17 @@ func (s *Server) handleWatchNodeV1alpha1RuntimeClassRequest(args [1]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -70947,17 +70948,17 @@ func (s *Server) handleWatchNodeV1alpha1RuntimeClassListRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -71130,17 +71131,17 @@ func (s *Server) handleWatchNodeV1beta1RuntimeClassRequest(args [1]string, argsE startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -71317,17 +71318,17 @@ func (s *Server) handleWatchNodeV1beta1RuntimeClassListRequest(args [0]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -71500,17 +71501,17 @@ func (s *Server) handleWatchPolicyV1NamespacedPodDisruptionBudgetRequest(args [2 startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -71691,17 +71692,17 @@ func (s *Server) handleWatchPolicyV1NamespacedPodDisruptionBudgetListRequest(arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -71878,17 +71879,17 @@ func (s *Server) handleWatchPolicyV1PodDisruptionBudgetListForAllNamespacesReque startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -72061,17 +72062,17 @@ func (s *Server) handleWatchPolicyV1beta1NamespacedPodDisruptionBudgetRequest(ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -72252,17 +72253,17 @@ func (s *Server) handleWatchPolicyV1beta1NamespacedPodDisruptionBudgetListReques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -72439,17 +72440,17 @@ func (s *Server) handleWatchPolicyV1beta1PodDisruptionBudgetListForAllNamespaces startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -72622,17 +72623,17 @@ func (s *Server) handleWatchPolicyV1beta1PodSecurityPolicyRequest(args [1]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -72809,17 +72810,17 @@ func (s *Server) handleWatchPolicyV1beta1PodSecurityPolicyListRequest(args [0]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -72992,17 +72993,17 @@ func (s *Server) handleWatchRbacAuthorizationV1ClusterRoleRequest(args [1]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -73179,17 +73180,17 @@ func (s *Server) handleWatchRbacAuthorizationV1ClusterRoleBindingRequest(args [1 startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -73366,17 +73367,17 @@ func (s *Server) handleWatchRbacAuthorizationV1ClusterRoleBindingListRequest(arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -73549,17 +73550,17 @@ func (s *Server) handleWatchRbacAuthorizationV1ClusterRoleListRequest(args [0]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -73732,17 +73733,17 @@ func (s *Server) handleWatchRbacAuthorizationV1NamespacedRoleRequest(args [2]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -73923,17 +73924,17 @@ func (s *Server) handleWatchRbacAuthorizationV1NamespacedRoleBindingRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -74114,17 +74115,17 @@ func (s *Server) handleWatchRbacAuthorizationV1NamespacedRoleBindingListRequest( startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -74301,17 +74302,17 @@ func (s *Server) handleWatchRbacAuthorizationV1NamespacedRoleListRequest(args [1 startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -74488,17 +74489,17 @@ func (s *Server) handleWatchRbacAuthorizationV1RoleBindingListForAllNamespacesRe startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -74671,17 +74672,17 @@ func (s *Server) handleWatchRbacAuthorizationV1RoleListForAllNamespacesRequest(a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -74854,17 +74855,17 @@ func (s *Server) handleWatchSchedulingV1PriorityClassRequest(args [1]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -75041,17 +75042,17 @@ func (s *Server) handleWatchSchedulingV1PriorityClassListRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -75224,17 +75225,17 @@ func (s *Server) handleWatchStorageV1CSIDriverRequest(args [1]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -75411,17 +75412,17 @@ func (s *Server) handleWatchStorageV1CSIDriverListRequest(args [0]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -75594,17 +75595,17 @@ func (s *Server) handleWatchStorageV1CSINodeRequest(args [1]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -75781,17 +75782,17 @@ func (s *Server) handleWatchStorageV1CSINodeListRequest(args [0]string, argsEsca startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -75964,17 +75965,17 @@ func (s *Server) handleWatchStorageV1StorageClassRequest(args [1]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -76151,17 +76152,17 @@ func (s *Server) handleWatchStorageV1StorageClassListRequest(args [0]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -76334,17 +76335,17 @@ func (s *Server) handleWatchStorageV1VolumeAttachmentRequest(args [1]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -76521,17 +76522,17 @@ func (s *Server) handleWatchStorageV1VolumeAttachmentListRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -76704,17 +76705,17 @@ func (s *Server) handleWatchStorageV1alpha1CSIStorageCapacityListForAllNamespace startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -76887,17 +76888,17 @@ func (s *Server) handleWatchStorageV1alpha1NamespacedCSIStorageCapacityRequest(a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -77078,17 +77079,17 @@ func (s *Server) handleWatchStorageV1alpha1NamespacedCSIStorageCapacityListReque startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -77265,17 +77266,17 @@ func (s *Server) handleWatchStorageV1beta1CSIStorageCapacityListForAllNamespaces startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -77448,17 +77449,17 @@ func (s *Server) handleWatchStorageV1beta1NamespacedCSIStorageCapacityRequest(ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -77639,17 +77640,17 @@ func (s *Server) handleWatchStorageV1beta1NamespacedCSIStorageCapacityListReques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ diff --git a/examples/ex_manga/oas_cfg_gen.go b/examples/ex_manga/oas_cfg_gen.go index 200975a4a..2674bd0c4 100644 --- a/examples/ex_manga/oas_cfg_gen.go +++ b/examples/ex_manga/oas_cfg_gen.go @@ -7,6 +7,7 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/global" "go.opentelemetry.io/otel/metric/instrument" "go.opentelemetry.io/otel/trace" @@ -40,7 +41,7 @@ func (cfg *otelConfig) initOTEL() { cfg.TracerProvider = otel.GetTracerProvider() } if cfg.MeterProvider == nil { - cfg.MeterProvider = metric.NewNoopMeterProvider() + cfg.MeterProvider = global.MeterProvider() } cfg.Tracer = cfg.TracerProvider.Tracer(otelogen.Name, trace.WithInstrumentationVersion(otelogen.SemVersion()), @@ -200,7 +201,7 @@ func WithTracerProvider(provider trace.TracerProvider) Option { // WithMeterProvider specifies a meter provider to use for creating a meter. // -// If none is specified, the metric.NewNoopMeterProvider is used. +// If none is specified, the global.MeterProvider() is used. func WithMeterProvider(provider metric.MeterProvider) Option { return otelOptionFunc(func(cfg *otelConfig) { if provider != nil { diff --git a/examples/ex_manga/oas_client_gen.go b/examples/ex_manga/oas_client_gen.go index b7442d7db..e27f60c8b 100644 --- a/examples/ex_manga/oas_client_gen.go +++ b/examples/ex_manga/oas_client_gen.go @@ -11,6 +11,7 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" "go.opentelemetry.io/otel/trace" "github.com/ogen-go/ogen/conv" @@ -87,11 +88,11 @@ func (c *Client) sendGetBook(ctx context.Context, params GetBookParams) (res Get startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetBook", @@ -104,7 +105,7 @@ func (c *Client) sendGetBook(ctx context.Context, params GetBookParams) (res Get if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -175,11 +176,11 @@ func (c *Client) sendGetPageCoverImage(ctx context.Context, params GetPageCoverI startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetPageCoverImage", @@ -192,7 +193,7 @@ func (c *Client) sendGetPageCoverImage(ctx context.Context, params GetPageCoverI if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -282,11 +283,11 @@ func (c *Client) sendGetPageImage(ctx context.Context, params GetPageImageParams startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetPageImage", @@ -299,7 +300,7 @@ func (c *Client) sendGetPageImage(ctx context.Context, params GetPageImageParams if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -408,11 +409,11 @@ func (c *Client) sendGetPageThumbnailImage(ctx context.Context, params GetPageTh startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetPageThumbnailImage", @@ -425,7 +426,7 @@ func (c *Client) sendGetPageThumbnailImage(ctx context.Context, params GetPageTh if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -534,11 +535,11 @@ func (c *Client) sendSearch(ctx context.Context, params SearchParams) (res Searc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "Search", @@ -551,7 +552,7 @@ func (c *Client) sendSearch(ctx context.Context, params SearchParams) (res Searc if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -639,11 +640,11 @@ func (c *Client) sendSearchByTagID(ctx context.Context, params SearchByTagIDPara startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SearchByTagID", @@ -656,7 +657,7 @@ func (c *Client) sendSearchByTagID(ctx context.Context, params SearchByTagIDPara if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() diff --git a/examples/ex_manga/oas_handlers_gen.go b/examples/ex_manga/oas_handlers_gen.go index acce36da0..51d82f094 100644 --- a/examples/ex_manga/oas_handlers_gen.go +++ b/examples/ex_manga/oas_handlers_gen.go @@ -9,6 +9,7 @@ import ( "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" semconv "go.opentelemetry.io/otel/semconv/v1.17.0" "go.opentelemetry.io/otel/trace" @@ -40,17 +41,17 @@ func (s *Server) handleGetBookRequest(args [1]string, argsEscaped bool, w http.R startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -142,17 +143,17 @@ func (s *Server) handleGetPageCoverImageRequest(args [2]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -248,17 +249,17 @@ func (s *Server) handleGetPageImageRequest(args [3]string, argsEscaped bool, w h startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -358,17 +359,17 @@ func (s *Server) handleGetPageThumbnailImageRequest(args [3]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -468,17 +469,17 @@ func (s *Server) handleSearchRequest(args [0]string, argsEscaped bool, w http.Re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -574,17 +575,17 @@ func (s *Server) handleSearchByTagIDRequest(args [0]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ diff --git a/examples/ex_openai/oas_cfg_gen.go b/examples/ex_openai/oas_cfg_gen.go index 200975a4a..2674bd0c4 100644 --- a/examples/ex_openai/oas_cfg_gen.go +++ b/examples/ex_openai/oas_cfg_gen.go @@ -7,6 +7,7 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/global" "go.opentelemetry.io/otel/metric/instrument" "go.opentelemetry.io/otel/trace" @@ -40,7 +41,7 @@ func (cfg *otelConfig) initOTEL() { cfg.TracerProvider = otel.GetTracerProvider() } if cfg.MeterProvider == nil { - cfg.MeterProvider = metric.NewNoopMeterProvider() + cfg.MeterProvider = global.MeterProvider() } cfg.Tracer = cfg.TracerProvider.Tracer(otelogen.Name, trace.WithInstrumentationVersion(otelogen.SemVersion()), @@ -200,7 +201,7 @@ func WithTracerProvider(provider trace.TracerProvider) Option { // WithMeterProvider specifies a meter provider to use for creating a meter. // -// If none is specified, the metric.NewNoopMeterProvider is used. +// If none is specified, the global.MeterProvider() is used. func WithMeterProvider(provider metric.MeterProvider) Option { return otelOptionFunc(func(cfg *otelConfig) { if provider != nil { diff --git a/examples/ex_openai/oas_client_gen.go b/examples/ex_openai/oas_client_gen.go index 594339acc..b12994617 100644 --- a/examples/ex_openai/oas_client_gen.go +++ b/examples/ex_openai/oas_client_gen.go @@ -11,6 +11,7 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" "go.opentelemetry.io/otel/trace" "github.com/ogen-go/ogen/conv" @@ -87,11 +88,11 @@ func (c *Client) sendCancelFineTune(ctx context.Context, params CancelFineTunePa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "CancelFineTune", @@ -104,7 +105,7 @@ func (c *Client) sendCancelFineTune(ctx context.Context, params CancelFineTunePa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -190,11 +191,11 @@ func (c *Client) sendCreateAnswer(ctx context.Context, request *CreateAnswerRequ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "CreateAnswer", @@ -207,7 +208,7 @@ func (c *Client) sendCreateAnswer(ctx context.Context, request *CreateAnswerRequ if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -272,11 +273,11 @@ func (c *Client) sendCreateChatCompletion(ctx context.Context, request *CreateCh startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "CreateChatCompletion", @@ -289,7 +290,7 @@ func (c *Client) sendCreateChatCompletion(ctx context.Context, request *CreateCh if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -362,11 +363,11 @@ func (c *Client) sendCreateClassification(ctx context.Context, request *CreateCl startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "CreateClassification", @@ -379,7 +380,7 @@ func (c *Client) sendCreateClassification(ctx context.Context, request *CreateCl if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -444,11 +445,11 @@ func (c *Client) sendCreateCompletion(ctx context.Context, request *CreateComple startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "CreateCompletion", @@ -461,7 +462,7 @@ func (c *Client) sendCreateCompletion(ctx context.Context, request *CreateComple if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -526,11 +527,11 @@ func (c *Client) sendCreateEdit(ctx context.Context, request *CreateEditRequest) startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "CreateEdit", @@ -543,7 +544,7 @@ func (c *Client) sendCreateEdit(ctx context.Context, request *CreateEditRequest) if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -608,11 +609,11 @@ func (c *Client) sendCreateEmbedding(ctx context.Context, request *CreateEmbeddi startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "CreateEmbedding", @@ -625,7 +626,7 @@ func (c *Client) sendCreateEmbedding(ctx context.Context, request *CreateEmbeddi if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -683,11 +684,11 @@ func (c *Client) sendCreateFile(ctx context.Context, request *CreateFileRequestM startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "CreateFile", @@ -700,7 +701,7 @@ func (c *Client) sendCreateFile(ctx context.Context, request *CreateFileRequestM if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -768,11 +769,11 @@ func (c *Client) sendCreateFineTune(ctx context.Context, request *CreateFineTune startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "CreateFineTune", @@ -785,7 +786,7 @@ func (c *Client) sendCreateFineTune(ctx context.Context, request *CreateFineTune if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -850,11 +851,11 @@ func (c *Client) sendCreateImage(ctx context.Context, request *CreateImageReques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "CreateImage", @@ -867,7 +868,7 @@ func (c *Client) sendCreateImage(ctx context.Context, request *CreateImageReques if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -932,11 +933,11 @@ func (c *Client) sendCreateImageEdit(ctx context.Context, request *CreateImageEd startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "CreateImageEdit", @@ -949,7 +950,7 @@ func (c *Client) sendCreateImageEdit(ctx context.Context, request *CreateImageEd if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1014,11 +1015,11 @@ func (c *Client) sendCreateImageVariation(ctx context.Context, request *CreateIm startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "CreateImageVariation", @@ -1031,7 +1032,7 @@ func (c *Client) sendCreateImageVariation(ctx context.Context, request *CreateIm if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1096,11 +1097,11 @@ func (c *Client) sendCreateModeration(ctx context.Context, request *CreateModera startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "CreateModeration", @@ -1113,7 +1114,7 @@ func (c *Client) sendCreateModeration(ctx context.Context, request *CreateModera if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1187,11 +1188,11 @@ func (c *Client) sendCreateSearch(ctx context.Context, request *CreateSearchRequ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "CreateSearch", @@ -1204,7 +1205,7 @@ func (c *Client) sendCreateSearch(ctx context.Context, request *CreateSearchRequ if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1288,11 +1289,11 @@ func (c *Client) sendCreateTranscription(ctx context.Context, request *CreateTra startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "CreateTranscription", @@ -1305,7 +1306,7 @@ func (c *Client) sendCreateTranscription(ctx context.Context, request *CreateTra if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1370,11 +1371,11 @@ func (c *Client) sendCreateTranslation(ctx context.Context, request *CreateTrans startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "CreateTranslation", @@ -1387,7 +1388,7 @@ func (c *Client) sendCreateTranslation(ctx context.Context, request *CreateTrans if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1443,11 +1444,11 @@ func (c *Client) sendDeleteFile(ctx context.Context, params DeleteFileParams) (r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "DeleteFile", @@ -1460,7 +1461,7 @@ func (c *Client) sendDeleteFile(ctx context.Context, params DeleteFileParams) (r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1531,11 +1532,11 @@ func (c *Client) sendDeleteModel(ctx context.Context, params DeleteModelParams) startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "DeleteModel", @@ -1548,7 +1549,7 @@ func (c *Client) sendDeleteModel(ctx context.Context, params DeleteModelParams) if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1619,11 +1620,11 @@ func (c *Client) sendDownloadFile(ctx context.Context, params DownloadFileParams startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "DownloadFile", @@ -1636,7 +1637,7 @@ func (c *Client) sendDownloadFile(ctx context.Context, params DownloadFileParams if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1711,11 +1712,11 @@ func (c *Client) sendListEngines(ctx context.Context) (res *ListEnginesResponse, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListEngines", @@ -1728,7 +1729,7 @@ func (c *Client) sendListEngines(ctx context.Context) (res *ListEnginesResponse, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1781,11 +1782,11 @@ func (c *Client) sendListFiles(ctx context.Context) (res *ListFilesResponse, err startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListFiles", @@ -1798,7 +1799,7 @@ func (c *Client) sendListFiles(ctx context.Context) (res *ListFilesResponse, err if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1851,11 +1852,11 @@ func (c *Client) sendListFineTuneEvents(ctx context.Context, params ListFineTune startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListFineTuneEvents", @@ -1868,7 +1869,7 @@ func (c *Client) sendListFineTuneEvents(ctx context.Context, params ListFineTune if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1961,11 +1962,11 @@ func (c *Client) sendListFineTunes(ctx context.Context) (res *ListFineTunesRespo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListFineTunes", @@ -1978,7 +1979,7 @@ func (c *Client) sendListFineTunes(ctx context.Context) (res *ListFineTunesRespo if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2032,11 +2033,11 @@ func (c *Client) sendListModels(ctx context.Context) (res *ListModelsResponse, e startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListModels", @@ -2049,7 +2050,7 @@ func (c *Client) sendListModels(ctx context.Context) (res *ListModelsResponse, e if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2105,11 +2106,11 @@ func (c *Client) sendRetrieveEngine(ctx context.Context, params RetrieveEnginePa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "RetrieveEngine", @@ -2122,7 +2123,7 @@ func (c *Client) sendRetrieveEngine(ctx context.Context, params RetrieveEnginePa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2193,11 +2194,11 @@ func (c *Client) sendRetrieveFile(ctx context.Context, params RetrieveFileParams startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "RetrieveFile", @@ -2210,7 +2211,7 @@ func (c *Client) sendRetrieveFile(ctx context.Context, params RetrieveFileParams if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2282,11 +2283,11 @@ func (c *Client) sendRetrieveFineTune(ctx context.Context, params RetrieveFineTu startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "RetrieveFineTune", @@ -2299,7 +2300,7 @@ func (c *Client) sendRetrieveFineTune(ctx context.Context, params RetrieveFineTu if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2371,11 +2372,11 @@ func (c *Client) sendRetrieveModel(ctx context.Context, params RetrieveModelPara startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "RetrieveModel", @@ -2388,7 +2389,7 @@ func (c *Client) sendRetrieveModel(ctx context.Context, params RetrieveModelPara if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() diff --git a/examples/ex_openai/oas_handlers_gen.go b/examples/ex_openai/oas_handlers_gen.go index d3db57236..0ea691a9c 100644 --- a/examples/ex_openai/oas_handlers_gen.go +++ b/examples/ex_openai/oas_handlers_gen.go @@ -9,6 +9,7 @@ import ( "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" semconv "go.opentelemetry.io/otel/semconv/v1.17.0" "go.opentelemetry.io/otel/trace" @@ -40,17 +41,17 @@ func (s *Server) handleCancelFineTuneRequest(args [1]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -147,17 +148,17 @@ func (s *Server) handleCreateAnswerRequest(args [0]string, argsEscaped bool, w h startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -249,17 +250,17 @@ func (s *Server) handleCreateChatCompletionRequest(args [0]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -359,17 +360,17 @@ func (s *Server) handleCreateClassificationRequest(args [0]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -461,17 +462,17 @@ func (s *Server) handleCreateCompletionRequest(args [0]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -563,17 +564,17 @@ func (s *Server) handleCreateEditRequest(args [0]string, argsEscaped bool, w htt startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -665,17 +666,17 @@ func (s *Server) handleCreateEmbeddingRequest(args [0]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -769,17 +770,17 @@ func (s *Server) handleCreateFileRequest(args [0]string, argsEscaped bool, w htt startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -874,17 +875,17 @@ func (s *Server) handleCreateFineTuneRequest(args [0]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -976,17 +977,17 @@ func (s *Server) handleCreateImageRequest(args [0]string, argsEscaped bool, w ht startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1078,17 +1079,17 @@ func (s *Server) handleCreateImageEditRequest(args [0]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1180,17 +1181,17 @@ func (s *Server) handleCreateImageVariationRequest(args [0]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1282,17 +1283,17 @@ func (s *Server) handleCreateModerationRequest(args [0]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1393,17 +1394,17 @@ func (s *Server) handleCreateSearchRequest(args [1]string, argsEscaped bool, w h startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1510,17 +1511,17 @@ func (s *Server) handleCreateTranscriptionRequest(args [0]string, argsEscaped bo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1612,17 +1613,17 @@ func (s *Server) handleCreateTranslationRequest(args [0]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1714,17 +1715,17 @@ func (s *Server) handleDeleteFileRequest(args [1]string, argsEscaped bool, w htt startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1816,17 +1817,17 @@ func (s *Server) handleDeleteModelRequest(args [1]string, argsEscaped bool, w ht startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1918,17 +1919,17 @@ func (s *Server) handleDownloadFileRequest(args [1]string, argsEscaped bool, w h startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2023,17 +2024,17 @@ func (s *Server) handleListEnginesRequest(args [0]string, argsEscaped bool, w ht startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -2106,17 +2107,17 @@ func (s *Server) handleListFilesRequest(args [0]string, argsEscaped bool, w http startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -2189,17 +2190,17 @@ func (s *Server) handleListFineTuneEventsRequest(args [1]string, argsEscaped boo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2295,17 +2296,17 @@ func (s *Server) handleListFineTunesRequest(args [0]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -2379,17 +2380,17 @@ func (s *Server) handleListModelsRequest(args [0]string, argsEscaped bool, w htt startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -2465,17 +2466,17 @@ func (s *Server) handleRetrieveEngineRequest(args [1]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2567,17 +2568,17 @@ func (s *Server) handleRetrieveFileRequest(args [1]string, argsEscaped bool, w h startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2670,17 +2671,17 @@ func (s *Server) handleRetrieveFineTuneRequest(args [1]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2773,17 +2774,17 @@ func (s *Server) handleRetrieveModelRequest(args [1]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ diff --git a/examples/ex_petstore/oas_cfg_gen.go b/examples/ex_petstore/oas_cfg_gen.go index 200975a4a..2674bd0c4 100644 --- a/examples/ex_petstore/oas_cfg_gen.go +++ b/examples/ex_petstore/oas_cfg_gen.go @@ -7,6 +7,7 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/global" "go.opentelemetry.io/otel/metric/instrument" "go.opentelemetry.io/otel/trace" @@ -40,7 +41,7 @@ func (cfg *otelConfig) initOTEL() { cfg.TracerProvider = otel.GetTracerProvider() } if cfg.MeterProvider == nil { - cfg.MeterProvider = metric.NewNoopMeterProvider() + cfg.MeterProvider = global.MeterProvider() } cfg.Tracer = cfg.TracerProvider.Tracer(otelogen.Name, trace.WithInstrumentationVersion(otelogen.SemVersion()), @@ -200,7 +201,7 @@ func WithTracerProvider(provider trace.TracerProvider) Option { // WithMeterProvider specifies a meter provider to use for creating a meter. // -// If none is specified, the metric.NewNoopMeterProvider is used. +// If none is specified, the global.MeterProvider() is used. func WithMeterProvider(provider metric.MeterProvider) Option { return otelOptionFunc(func(cfg *otelConfig) { if provider != nil { diff --git a/examples/ex_petstore/oas_client_gen.go b/examples/ex_petstore/oas_client_gen.go index 0468bdece..032dac144 100644 --- a/examples/ex_petstore/oas_client_gen.go +++ b/examples/ex_petstore/oas_client_gen.go @@ -11,6 +11,7 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" "go.opentelemetry.io/otel/trace" "github.com/ogen-go/ogen/conv" @@ -91,11 +92,11 @@ func (c *Client) sendCreatePets(ctx context.Context) (res *CreatePetsCreated, er startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "CreatePets", @@ -108,7 +109,7 @@ func (c *Client) sendCreatePets(ctx context.Context) (res *CreatePetsCreated, er if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -161,11 +162,11 @@ func (c *Client) sendListPets(ctx context.Context, params ListPetsParams) (res * startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ListPets", @@ -178,7 +179,7 @@ func (c *Client) sendListPets(ctx context.Context, params ListPetsParams) (res * if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -252,11 +253,11 @@ func (c *Client) sendShowPetById(ctx context.Context, params ShowPetByIdParams) startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ShowPetById", @@ -269,7 +270,7 @@ func (c *Client) sendShowPetById(ctx context.Context, params ShowPetByIdParams) if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() diff --git a/examples/ex_petstore/oas_handlers_gen.go b/examples/ex_petstore/oas_handlers_gen.go index dfc38aaf8..7c8db2435 100644 --- a/examples/ex_petstore/oas_handlers_gen.go +++ b/examples/ex_petstore/oas_handlers_gen.go @@ -10,6 +10,7 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" semconv "go.opentelemetry.io/otel/semconv/v1.17.0" "go.opentelemetry.io/otel/trace" @@ -42,17 +43,17 @@ func (s *Server) handleCreatePetsRequest(args [0]string, argsEscaped bool, w htt startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -133,17 +134,17 @@ func (s *Server) handleListPetsRequest(args [0]string, argsEscaped bool, w http. startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -243,17 +244,17 @@ func (s *Server) handleShowPetByIdRequest(args [1]string, argsEscaped bool, w ht startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ diff --git a/examples/ex_petstore_expanded/oas_cfg_gen.go b/examples/ex_petstore_expanded/oas_cfg_gen.go index 200975a4a..2674bd0c4 100644 --- a/examples/ex_petstore_expanded/oas_cfg_gen.go +++ b/examples/ex_petstore_expanded/oas_cfg_gen.go @@ -7,6 +7,7 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/global" "go.opentelemetry.io/otel/metric/instrument" "go.opentelemetry.io/otel/trace" @@ -40,7 +41,7 @@ func (cfg *otelConfig) initOTEL() { cfg.TracerProvider = otel.GetTracerProvider() } if cfg.MeterProvider == nil { - cfg.MeterProvider = metric.NewNoopMeterProvider() + cfg.MeterProvider = global.MeterProvider() } cfg.Tracer = cfg.TracerProvider.Tracer(otelogen.Name, trace.WithInstrumentationVersion(otelogen.SemVersion()), @@ -200,7 +201,7 @@ func WithTracerProvider(provider trace.TracerProvider) Option { // WithMeterProvider specifies a meter provider to use for creating a meter. // -// If none is specified, the metric.NewNoopMeterProvider is used. +// If none is specified, the global.MeterProvider() is used. func WithMeterProvider(provider metric.MeterProvider) Option { return otelOptionFunc(func(cfg *otelConfig) { if provider != nil { diff --git a/examples/ex_petstore_expanded/oas_client_gen.go b/examples/ex_petstore_expanded/oas_client_gen.go index 95df2f509..97814d187 100644 --- a/examples/ex_petstore_expanded/oas_client_gen.go +++ b/examples/ex_petstore_expanded/oas_client_gen.go @@ -11,6 +11,7 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" "go.opentelemetry.io/otel/trace" "github.com/ogen-go/ogen/conv" @@ -91,11 +92,11 @@ func (c *Client) sendAddPet(ctx context.Context, request *NewPet) (res *Pet, err startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "AddPet", @@ -108,7 +109,7 @@ func (c *Client) sendAddPet(ctx context.Context, request *NewPet) (res *Pet, err if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -164,11 +165,11 @@ func (c *Client) sendDeletePet(ctx context.Context, params DeletePetParams) (res startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "DeletePet", @@ -181,7 +182,7 @@ func (c *Client) sendDeletePet(ctx context.Context, params DeletePetParams) (res if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -252,11 +253,11 @@ func (c *Client) sendFindPetByID(ctx context.Context, params FindPetByIDParams) startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "FindPetByID", @@ -269,7 +270,7 @@ func (c *Client) sendFindPetByID(ctx context.Context, params FindPetByIDParams) if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -358,11 +359,11 @@ func (c *Client) sendFindPets(ctx context.Context, params FindPetsParams) (res [ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "FindPets", @@ -375,7 +376,7 @@ func (c *Client) sendFindPets(ctx context.Context, params FindPetsParams) (res [ if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() diff --git a/examples/ex_petstore_expanded/oas_handlers_gen.go b/examples/ex_petstore_expanded/oas_handlers_gen.go index b6a40c195..c2a816f90 100644 --- a/examples/ex_petstore_expanded/oas_handlers_gen.go +++ b/examples/ex_petstore_expanded/oas_handlers_gen.go @@ -10,6 +10,7 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" semconv "go.opentelemetry.io/otel/semconv/v1.17.0" "go.opentelemetry.io/otel/trace" @@ -42,17 +43,17 @@ func (s *Server) handleAddPetRequest(args [0]string, argsEscaped bool, w http.Re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -152,17 +153,17 @@ func (s *Server) handleDeletePetRequest(args [1]string, argsEscaped bool, w http startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -262,17 +263,17 @@ func (s *Server) handleFindPetByIDRequest(args [1]string, argsEscaped bool, w ht startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -390,17 +391,17 @@ func (s *Server) handleFindPetsRequest(args [0]string, argsEscaped bool, w http. startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ diff --git a/examples/ex_route_params/oas_cfg_gen.go b/examples/ex_route_params/oas_cfg_gen.go index 200975a4a..2674bd0c4 100644 --- a/examples/ex_route_params/oas_cfg_gen.go +++ b/examples/ex_route_params/oas_cfg_gen.go @@ -7,6 +7,7 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/global" "go.opentelemetry.io/otel/metric/instrument" "go.opentelemetry.io/otel/trace" @@ -40,7 +41,7 @@ func (cfg *otelConfig) initOTEL() { cfg.TracerProvider = otel.GetTracerProvider() } if cfg.MeterProvider == nil { - cfg.MeterProvider = metric.NewNoopMeterProvider() + cfg.MeterProvider = global.MeterProvider() } cfg.Tracer = cfg.TracerProvider.Tracer(otelogen.Name, trace.WithInstrumentationVersion(otelogen.SemVersion()), @@ -200,7 +201,7 @@ func WithTracerProvider(provider trace.TracerProvider) Option { // WithMeterProvider specifies a meter provider to use for creating a meter. // -// If none is specified, the metric.NewNoopMeterProvider is used. +// If none is specified, the global.MeterProvider() is used. func WithMeterProvider(provider metric.MeterProvider) Option { return otelOptionFunc(func(cfg *otelConfig) { if provider != nil { diff --git a/examples/ex_route_params/oas_client_gen.go b/examples/ex_route_params/oas_client_gen.go index 7a813703b..17066b15c 100644 --- a/examples/ex_route_params/oas_client_gen.go +++ b/examples/ex_route_params/oas_client_gen.go @@ -11,6 +11,7 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" "go.opentelemetry.io/otel/trace" "github.com/ogen-go/ogen/conv" @@ -87,11 +88,11 @@ func (c *Client) sendDataGet(ctx context.Context, params DataGetParams) (res str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "DataGet", @@ -104,7 +105,7 @@ func (c *Client) sendDataGet(ctx context.Context, params DataGetParams) (res str if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -194,11 +195,11 @@ func (c *Client) sendDataGetAny(ctx context.Context) (res string, err error) { startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "DataGetAny", @@ -211,7 +212,7 @@ func (c *Client) sendDataGetAny(ctx context.Context) (res string, err error) { if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -264,11 +265,11 @@ func (c *Client) sendDataGetID(ctx context.Context, params DataGetIDParams) (res startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "DataGetID", @@ -281,7 +282,7 @@ func (c *Client) sendDataGetID(ctx context.Context, params DataGetIDParams) (res if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() diff --git a/examples/ex_route_params/oas_handlers_gen.go b/examples/ex_route_params/oas_handlers_gen.go index bb2d8c1f4..186040801 100644 --- a/examples/ex_route_params/oas_handlers_gen.go +++ b/examples/ex_route_params/oas_handlers_gen.go @@ -9,6 +9,7 @@ import ( "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" semconv "go.opentelemetry.io/otel/semconv/v1.17.0" "go.opentelemetry.io/otel/trace" @@ -40,17 +41,17 @@ func (s *Server) handleDataGetRequest(args [2]string, argsEscaped bool, w http.R startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -146,17 +147,17 @@ func (s *Server) handleDataGetAnyRequest(args [0]string, argsEscaped bool, w htt startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -229,17 +230,17 @@ func (s *Server) handleDataGetIDRequest(args [1]string, argsEscaped bool, w http startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ diff --git a/examples/ex_telegram/oas_cfg_gen.go b/examples/ex_telegram/oas_cfg_gen.go index 200975a4a..2674bd0c4 100644 --- a/examples/ex_telegram/oas_cfg_gen.go +++ b/examples/ex_telegram/oas_cfg_gen.go @@ -7,6 +7,7 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/global" "go.opentelemetry.io/otel/metric/instrument" "go.opentelemetry.io/otel/trace" @@ -40,7 +41,7 @@ func (cfg *otelConfig) initOTEL() { cfg.TracerProvider = otel.GetTracerProvider() } if cfg.MeterProvider == nil { - cfg.MeterProvider = metric.NewNoopMeterProvider() + cfg.MeterProvider = global.MeterProvider() } cfg.Tracer = cfg.TracerProvider.Tracer(otelogen.Name, trace.WithInstrumentationVersion(otelogen.SemVersion()), @@ -200,7 +201,7 @@ func WithTracerProvider(provider trace.TracerProvider) Option { // WithMeterProvider specifies a meter provider to use for creating a meter. // -// If none is specified, the metric.NewNoopMeterProvider is used. +// If none is specified, the global.MeterProvider() is used. func WithMeterProvider(provider metric.MeterProvider) Option { return otelOptionFunc(func(cfg *otelConfig) { if provider != nil { diff --git a/examples/ex_telegram/oas_client_gen.go b/examples/ex_telegram/oas_client_gen.go index 1ce1d606d..581e0093b 100644 --- a/examples/ex_telegram/oas_client_gen.go +++ b/examples/ex_telegram/oas_client_gen.go @@ -11,6 +11,7 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" "go.opentelemetry.io/otel/trace" ht "github.com/ogen-go/ogen/http" @@ -97,11 +98,11 @@ func (c *Client) sendAddStickerToSet(ctx context.Context, request *AddStickerToS startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "AddStickerToSet", @@ -114,7 +115,7 @@ func (c *Client) sendAddStickerToSet(ctx context.Context, request *AddStickerToS if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -177,11 +178,11 @@ func (c *Client) sendAnswerCallbackQuery(ctx context.Context, request *AnswerCal startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "AnswerCallbackQuery", @@ -194,7 +195,7 @@ func (c *Client) sendAnswerCallbackQuery(ctx context.Context, request *AnswerCal if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -257,11 +258,11 @@ func (c *Client) sendAnswerInlineQuery(ctx context.Context, request *AnswerInlin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "AnswerInlineQuery", @@ -274,7 +275,7 @@ func (c *Client) sendAnswerInlineQuery(ctx context.Context, request *AnswerInlin if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -328,11 +329,11 @@ func (c *Client) sendAnswerPreCheckoutQuery(ctx context.Context, request *Answer startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "AnswerPreCheckoutQuery", @@ -345,7 +346,7 @@ func (c *Client) sendAnswerPreCheckoutQuery(ctx context.Context, request *Answer if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -408,11 +409,11 @@ func (c *Client) sendAnswerShippingQuery(ctx context.Context, request *AnswerShi startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "AnswerShippingQuery", @@ -425,7 +426,7 @@ func (c *Client) sendAnswerShippingQuery(ctx context.Context, request *AnswerShi if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -479,11 +480,11 @@ func (c *Client) sendApproveChatJoinRequest(ctx context.Context, request *Approv startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ApproveChatJoinRequest", @@ -496,7 +497,7 @@ func (c *Client) sendApproveChatJoinRequest(ctx context.Context, request *Approv if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -550,11 +551,11 @@ func (c *Client) sendBanChatMember(ctx context.Context, request *BanChatMember) startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "BanChatMember", @@ -567,7 +568,7 @@ func (c *Client) sendBanChatMember(ctx context.Context, request *BanChatMember) if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -621,11 +622,11 @@ func (c *Client) sendBanChatSenderChat(ctx context.Context, request *BanChatSend startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "BanChatSenderChat", @@ -638,7 +639,7 @@ func (c *Client) sendBanChatSenderChat(ctx context.Context, request *BanChatSend if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -692,11 +693,11 @@ func (c *Client) sendClose(ctx context.Context) (res *Result, err error) { startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "Close", @@ -709,7 +710,7 @@ func (c *Client) sendClose(ctx context.Context) (res *Result, err error) { if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -769,11 +770,11 @@ func (c *Client) sendCopyMessage(ctx context.Context, request *CopyMessage) (res startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "CopyMessage", @@ -786,7 +787,7 @@ func (c *Client) sendCopyMessage(ctx context.Context, request *CopyMessage) (res if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -849,11 +850,11 @@ func (c *Client) sendCreateChatInviteLink(ctx context.Context, request *CreateCh startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "CreateChatInviteLink", @@ -866,7 +867,7 @@ func (c *Client) sendCreateChatInviteLink(ctx context.Context, request *CreateCh if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -929,11 +930,11 @@ func (c *Client) sendCreateNewStickerSet(ctx context.Context, request *CreateNew startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "CreateNewStickerSet", @@ -946,7 +947,7 @@ func (c *Client) sendCreateNewStickerSet(ctx context.Context, request *CreateNew if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1000,11 +1001,11 @@ func (c *Client) sendDeclineChatJoinRequest(ctx context.Context, request *Declin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "DeclineChatJoinRequest", @@ -1017,7 +1018,7 @@ func (c *Client) sendDeclineChatJoinRequest(ctx context.Context, request *Declin if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1071,11 +1072,11 @@ func (c *Client) sendDeleteChatPhoto(ctx context.Context, request *DeleteChatPho startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "DeleteChatPhoto", @@ -1088,7 +1089,7 @@ func (c *Client) sendDeleteChatPhoto(ctx context.Context, request *DeleteChatPho if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1142,11 +1143,11 @@ func (c *Client) sendDeleteChatStickerSet(ctx context.Context, request *DeleteCh startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "DeleteChatStickerSet", @@ -1159,7 +1160,7 @@ func (c *Client) sendDeleteChatStickerSet(ctx context.Context, request *DeleteCh if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1213,11 +1214,11 @@ func (c *Client) sendDeleteMessage(ctx context.Context, request *DeleteMessage) startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "DeleteMessage", @@ -1230,7 +1231,7 @@ func (c *Client) sendDeleteMessage(ctx context.Context, request *DeleteMessage) if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1284,11 +1285,11 @@ func (c *Client) sendDeleteMyCommands(ctx context.Context, request OptDeleteMyCo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "DeleteMyCommands", @@ -1301,7 +1302,7 @@ func (c *Client) sendDeleteMyCommands(ctx context.Context, request OptDeleteMyCo if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1355,11 +1356,11 @@ func (c *Client) sendDeleteStickerFromSet(ctx context.Context, request *DeleteSt startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "DeleteStickerFromSet", @@ -1372,7 +1373,7 @@ func (c *Client) sendDeleteStickerFromSet(ctx context.Context, request *DeleteSt if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1426,11 +1427,11 @@ func (c *Client) sendDeleteWebhook(ctx context.Context, request OptDeleteWebhook startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "DeleteWebhook", @@ -1443,7 +1444,7 @@ func (c *Client) sendDeleteWebhook(ctx context.Context, request OptDeleteWebhook if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1506,11 +1507,11 @@ func (c *Client) sendEditChatInviteLink(ctx context.Context, request *EditChatIn startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "EditChatInviteLink", @@ -1523,7 +1524,7 @@ func (c *Client) sendEditChatInviteLink(ctx context.Context, request *EditChatIn if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1586,11 +1587,11 @@ func (c *Client) sendEditMessageCaption(ctx context.Context, request *EditMessag startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "EditMessageCaption", @@ -1603,7 +1604,7 @@ func (c *Client) sendEditMessageCaption(ctx context.Context, request *EditMessag if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1666,11 +1667,11 @@ func (c *Client) sendEditMessageLiveLocation(ctx context.Context, request *EditM startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "EditMessageLiveLocation", @@ -1683,7 +1684,7 @@ func (c *Client) sendEditMessageLiveLocation(ctx context.Context, request *EditM if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1746,11 +1747,11 @@ func (c *Client) sendEditMessageMedia(ctx context.Context, request *EditMessageM startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "EditMessageMedia", @@ -1763,7 +1764,7 @@ func (c *Client) sendEditMessageMedia(ctx context.Context, request *EditMessageM if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1826,11 +1827,11 @@ func (c *Client) sendEditMessageReplyMarkup(ctx context.Context, request *EditMe startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "EditMessageReplyMarkup", @@ -1843,7 +1844,7 @@ func (c *Client) sendEditMessageReplyMarkup(ctx context.Context, request *EditMe if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1906,11 +1907,11 @@ func (c *Client) sendEditMessageText(ctx context.Context, request *EditMessageTe startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "EditMessageText", @@ -1923,7 +1924,7 @@ func (c *Client) sendEditMessageText(ctx context.Context, request *EditMessageTe if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1977,11 +1978,11 @@ func (c *Client) sendExportChatInviteLink(ctx context.Context, request *ExportCh startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ExportChatInviteLink", @@ -1994,7 +1995,7 @@ func (c *Client) sendExportChatInviteLink(ctx context.Context, request *ExportCh if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2048,11 +2049,11 @@ func (c *Client) sendForwardMessage(ctx context.Context, request *ForwardMessage startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ForwardMessage", @@ -2065,7 +2066,7 @@ func (c *Client) sendForwardMessage(ctx context.Context, request *ForwardMessage if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2119,11 +2120,11 @@ func (c *Client) sendGetChat(ctx context.Context, request *GetChat) (res *Result startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetChat", @@ -2136,7 +2137,7 @@ func (c *Client) sendGetChat(ctx context.Context, request *GetChat) (res *Result if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2190,11 +2191,11 @@ func (c *Client) sendGetChatAdministrators(ctx context.Context, request *GetChat startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetChatAdministrators", @@ -2207,7 +2208,7 @@ func (c *Client) sendGetChatAdministrators(ctx context.Context, request *GetChat if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2261,11 +2262,11 @@ func (c *Client) sendGetChatMember(ctx context.Context, request *GetChatMember) startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetChatMember", @@ -2278,7 +2279,7 @@ func (c *Client) sendGetChatMember(ctx context.Context, request *GetChatMember) if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2332,11 +2333,11 @@ func (c *Client) sendGetChatMemberCount(ctx context.Context, request *GetChatMem startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetChatMemberCount", @@ -2349,7 +2350,7 @@ func (c *Client) sendGetChatMemberCount(ctx context.Context, request *GetChatMem if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2403,11 +2404,11 @@ func (c *Client) sendGetFile(ctx context.Context, request *GetFile) (res *Result startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetFile", @@ -2420,7 +2421,7 @@ func (c *Client) sendGetFile(ctx context.Context, request *GetFile) (res *Result if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2474,11 +2475,11 @@ func (c *Client) sendGetGameHighScores(ctx context.Context, request *GetGameHigh startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetGameHighScores", @@ -2491,7 +2492,7 @@ func (c *Client) sendGetGameHighScores(ctx context.Context, request *GetGameHigh if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2545,11 +2546,11 @@ func (c *Client) sendGetMe(ctx context.Context) (res *ResultUser, err error) { startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetMe", @@ -2562,7 +2563,7 @@ func (c *Client) sendGetMe(ctx context.Context) (res *ResultUser, err error) { if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2613,11 +2614,11 @@ func (c *Client) sendGetMyCommands(ctx context.Context, request OptGetMyCommands startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetMyCommands", @@ -2630,7 +2631,7 @@ func (c *Client) sendGetMyCommands(ctx context.Context, request OptGetMyCommands if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2684,11 +2685,11 @@ func (c *Client) sendGetStickerSet(ctx context.Context, request *GetStickerSet) startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetStickerSet", @@ -2701,7 +2702,7 @@ func (c *Client) sendGetStickerSet(ctx context.Context, request *GetStickerSet) if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2771,11 +2772,11 @@ func (c *Client) sendGetUpdates(ctx context.Context, request OptGetUpdates) (res startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetUpdates", @@ -2788,7 +2789,7 @@ func (c *Client) sendGetUpdates(ctx context.Context, request OptGetUpdates) (res if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2851,11 +2852,11 @@ func (c *Client) sendGetUserProfilePhotos(ctx context.Context, request *GetUserP startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetUserProfilePhotos", @@ -2868,7 +2869,7 @@ func (c *Client) sendGetUserProfilePhotos(ctx context.Context, request *GetUserP if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2922,11 +2923,11 @@ func (c *Client) sendGetWebhookInfo(ctx context.Context) (res *ResultWebhookInfo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "GetWebhookInfo", @@ -2939,7 +2940,7 @@ func (c *Client) sendGetWebhookInfo(ctx context.Context) (res *ResultWebhookInfo if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2990,11 +2991,11 @@ func (c *Client) sendLeaveChat(ctx context.Context, request *LeaveChat) (res *Re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "LeaveChat", @@ -3007,7 +3008,7 @@ func (c *Client) sendLeaveChat(ctx context.Context, request *LeaveChat) (res *Re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -3061,11 +3062,11 @@ func (c *Client) sendLogOut(ctx context.Context) (res *Result, err error) { startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "LogOut", @@ -3078,7 +3079,7 @@ func (c *Client) sendLogOut(ctx context.Context) (res *Result, err error) { if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -3129,11 +3130,11 @@ func (c *Client) sendPinChatMessage(ctx context.Context, request *PinChatMessage startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PinChatMessage", @@ -3146,7 +3147,7 @@ func (c *Client) sendPinChatMessage(ctx context.Context, request *PinChatMessage if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -3200,11 +3201,11 @@ func (c *Client) sendPromoteChatMember(ctx context.Context, request *PromoteChat startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PromoteChatMember", @@ -3217,7 +3218,7 @@ func (c *Client) sendPromoteChatMember(ctx context.Context, request *PromoteChat if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -3271,11 +3272,11 @@ func (c *Client) sendRestrictChatMember(ctx context.Context, request *RestrictCh startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "RestrictChatMember", @@ -3288,7 +3289,7 @@ func (c *Client) sendRestrictChatMember(ctx context.Context, request *RestrictCh if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -3342,11 +3343,11 @@ func (c *Client) sendRevokeChatInviteLink(ctx context.Context, request *RevokeCh startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "RevokeChatInviteLink", @@ -3359,7 +3360,7 @@ func (c *Client) sendRevokeChatInviteLink(ctx context.Context, request *RevokeCh if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -3422,11 +3423,11 @@ func (c *Client) sendSendAnimation(ctx context.Context, request *SendAnimation) startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SendAnimation", @@ -3439,7 +3440,7 @@ func (c *Client) sendSendAnimation(ctx context.Context, request *SendAnimation) if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -3502,11 +3503,11 @@ func (c *Client) sendSendAudio(ctx context.Context, request *SendAudio) (res *Re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SendAudio", @@ -3519,7 +3520,7 @@ func (c *Client) sendSendAudio(ctx context.Context, request *SendAudio) (res *Re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -3573,11 +3574,11 @@ func (c *Client) sendSendChatAction(ctx context.Context, request *SendChatAction startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SendChatAction", @@ -3590,7 +3591,7 @@ func (c *Client) sendSendChatAction(ctx context.Context, request *SendChatAction if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -3653,11 +3654,11 @@ func (c *Client) sendSendContact(ctx context.Context, request *SendContact) (res startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SendContact", @@ -3670,7 +3671,7 @@ func (c *Client) sendSendContact(ctx context.Context, request *SendContact) (res if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -3733,11 +3734,11 @@ func (c *Client) sendSendDice(ctx context.Context, request *SendDice) (res *Resu startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SendDice", @@ -3750,7 +3751,7 @@ func (c *Client) sendSendDice(ctx context.Context, request *SendDice) (res *Resu if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -3813,11 +3814,11 @@ func (c *Client) sendSendDocument(ctx context.Context, request *SendDocument) (r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SendDocument", @@ -3830,7 +3831,7 @@ func (c *Client) sendSendDocument(ctx context.Context, request *SendDocument) (r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -3893,11 +3894,11 @@ func (c *Client) sendSendGame(ctx context.Context, request *SendGame) (res *Resu startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SendGame", @@ -3910,7 +3911,7 @@ func (c *Client) sendSendGame(ctx context.Context, request *SendGame) (res *Resu if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -3973,11 +3974,11 @@ func (c *Client) sendSendInvoice(ctx context.Context, request *SendInvoice) (res startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SendInvoice", @@ -3990,7 +3991,7 @@ func (c *Client) sendSendInvoice(ctx context.Context, request *SendInvoice) (res if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -4053,11 +4054,11 @@ func (c *Client) sendSendLocation(ctx context.Context, request *SendLocation) (r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SendLocation", @@ -4070,7 +4071,7 @@ func (c *Client) sendSendLocation(ctx context.Context, request *SendLocation) (r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -4133,11 +4134,11 @@ func (c *Client) sendSendMediaGroup(ctx context.Context, request *SendMediaGroup startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SendMediaGroup", @@ -4150,7 +4151,7 @@ func (c *Client) sendSendMediaGroup(ctx context.Context, request *SendMediaGroup if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -4213,11 +4214,11 @@ func (c *Client) sendSendMessage(ctx context.Context, request *SendMessage) (res startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SendMessage", @@ -4230,7 +4231,7 @@ func (c *Client) sendSendMessage(ctx context.Context, request *SendMessage) (res if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -4293,11 +4294,11 @@ func (c *Client) sendSendPhoto(ctx context.Context, request *SendPhoto) (res *Re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SendPhoto", @@ -4310,7 +4311,7 @@ func (c *Client) sendSendPhoto(ctx context.Context, request *SendPhoto) (res *Re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -4373,11 +4374,11 @@ func (c *Client) sendSendPoll(ctx context.Context, request *SendPoll) (res *Resu startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SendPoll", @@ -4390,7 +4391,7 @@ func (c *Client) sendSendPoll(ctx context.Context, request *SendPoll) (res *Resu if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -4453,11 +4454,11 @@ func (c *Client) sendSendSticker(ctx context.Context, request *SendSticker) (res startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SendSticker", @@ -4470,7 +4471,7 @@ func (c *Client) sendSendSticker(ctx context.Context, request *SendSticker) (res if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -4533,11 +4534,11 @@ func (c *Client) sendSendVenue(ctx context.Context, request *SendVenue) (res *Re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SendVenue", @@ -4550,7 +4551,7 @@ func (c *Client) sendSendVenue(ctx context.Context, request *SendVenue) (res *Re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -4613,11 +4614,11 @@ func (c *Client) sendSendVideo(ctx context.Context, request *SendVideo) (res *Re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SendVideo", @@ -4630,7 +4631,7 @@ func (c *Client) sendSendVideo(ctx context.Context, request *SendVideo) (res *Re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -4693,11 +4694,11 @@ func (c *Client) sendSendVideoNote(ctx context.Context, request *SendVideoNote) startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SendVideoNote", @@ -4710,7 +4711,7 @@ func (c *Client) sendSendVideoNote(ctx context.Context, request *SendVideoNote) if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -4773,11 +4774,11 @@ func (c *Client) sendSendVoice(ctx context.Context, request *SendVoice) (res *Re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SendVoice", @@ -4790,7 +4791,7 @@ func (c *Client) sendSendVoice(ctx context.Context, request *SendVoice) (res *Re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -4853,11 +4854,11 @@ func (c *Client) sendSetChatAdministratorCustomTitle(ctx context.Context, reques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SetChatAdministratorCustomTitle", @@ -4870,7 +4871,7 @@ func (c *Client) sendSetChatAdministratorCustomTitle(ctx context.Context, reques if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -4933,11 +4934,11 @@ func (c *Client) sendSetChatDescription(ctx context.Context, request *SetChatDes startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SetChatDescription", @@ -4950,7 +4951,7 @@ func (c *Client) sendSetChatDescription(ctx context.Context, request *SetChatDes if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -5004,11 +5005,11 @@ func (c *Client) sendSetChatPermissions(ctx context.Context, request *SetChatPer startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SetChatPermissions", @@ -5021,7 +5022,7 @@ func (c *Client) sendSetChatPermissions(ctx context.Context, request *SetChatPer if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -5075,11 +5076,11 @@ func (c *Client) sendSetChatPhoto(ctx context.Context, request *SetChatPhoto) (r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SetChatPhoto", @@ -5092,7 +5093,7 @@ func (c *Client) sendSetChatPhoto(ctx context.Context, request *SetChatPhoto) (r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -5146,11 +5147,11 @@ func (c *Client) sendSetChatStickerSet(ctx context.Context, request *SetChatStic startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SetChatStickerSet", @@ -5163,7 +5164,7 @@ func (c *Client) sendSetChatStickerSet(ctx context.Context, request *SetChatStic if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -5226,11 +5227,11 @@ func (c *Client) sendSetChatTitle(ctx context.Context, request *SetChatTitle) (r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SetChatTitle", @@ -5243,7 +5244,7 @@ func (c *Client) sendSetChatTitle(ctx context.Context, request *SetChatTitle) (r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -5297,11 +5298,11 @@ func (c *Client) sendSetGameScore(ctx context.Context, request *SetGameScore) (r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SetGameScore", @@ -5314,7 +5315,7 @@ func (c *Client) sendSetGameScore(ctx context.Context, request *SetGameScore) (r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -5377,11 +5378,11 @@ func (c *Client) sendSetMyCommands(ctx context.Context, request *SetMyCommands) startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SetMyCommands", @@ -5394,7 +5395,7 @@ func (c *Client) sendSetMyCommands(ctx context.Context, request *SetMyCommands) if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -5457,11 +5458,11 @@ func (c *Client) sendSetPassportDataErrors(ctx context.Context, request *SetPass startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SetPassportDataErrors", @@ -5474,7 +5475,7 @@ func (c *Client) sendSetPassportDataErrors(ctx context.Context, request *SetPass if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -5528,11 +5529,11 @@ func (c *Client) sendSetStickerPositionInSet(ctx context.Context, request *SetSt startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SetStickerPositionInSet", @@ -5545,7 +5546,7 @@ func (c *Client) sendSetStickerPositionInSet(ctx context.Context, request *SetSt if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -5599,11 +5600,11 @@ func (c *Client) sendSetStickerSetThumb(ctx context.Context, request *SetSticker startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SetStickerSetThumb", @@ -5616,7 +5617,7 @@ func (c *Client) sendSetStickerSetThumb(ctx context.Context, request *SetSticker if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -5670,11 +5671,11 @@ func (c *Client) sendSetWebhook(ctx context.Context, request *SetWebhook) (res * startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SetWebhook", @@ -5687,7 +5688,7 @@ func (c *Client) sendSetWebhook(ctx context.Context, request *SetWebhook) (res * if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -5750,11 +5751,11 @@ func (c *Client) sendStopMessageLiveLocation(ctx context.Context, request *StopM startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "StopMessageLiveLocation", @@ -5767,7 +5768,7 @@ func (c *Client) sendStopMessageLiveLocation(ctx context.Context, request *StopM if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -5830,11 +5831,11 @@ func (c *Client) sendStopPoll(ctx context.Context, request *StopPoll) (res *Resu startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "StopPoll", @@ -5847,7 +5848,7 @@ func (c *Client) sendStopPoll(ctx context.Context, request *StopPoll) (res *Resu if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -5901,11 +5902,11 @@ func (c *Client) sendUnbanChatMember(ctx context.Context, request *UnbanChatMemb startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "UnbanChatMember", @@ -5918,7 +5919,7 @@ func (c *Client) sendUnbanChatMember(ctx context.Context, request *UnbanChatMemb if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -5972,11 +5973,11 @@ func (c *Client) sendUnbanChatSenderChat(ctx context.Context, request *UnbanChat startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "UnbanChatSenderChat", @@ -5989,7 +5990,7 @@ func (c *Client) sendUnbanChatSenderChat(ctx context.Context, request *UnbanChat if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -6043,11 +6044,11 @@ func (c *Client) sendUnpinAllChatMessages(ctx context.Context, request *UnpinAll startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "UnpinAllChatMessages", @@ -6060,7 +6061,7 @@ func (c *Client) sendUnpinAllChatMessages(ctx context.Context, request *UnpinAll if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -6114,11 +6115,11 @@ func (c *Client) sendUnpinChatMessage(ctx context.Context, request *UnpinChatMes startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "UnpinChatMessage", @@ -6131,7 +6132,7 @@ func (c *Client) sendUnpinChatMessage(ctx context.Context, request *UnpinChatMes if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -6185,11 +6186,11 @@ func (c *Client) sendUploadStickerFile(ctx context.Context, request *UploadStick startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "UploadStickerFile", @@ -6202,7 +6203,7 @@ func (c *Client) sendUploadStickerFile(ctx context.Context, request *UploadStick if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() diff --git a/examples/ex_telegram/oas_handlers_gen.go b/examples/ex_telegram/oas_handlers_gen.go index 5b60320de..aa4ed4419 100644 --- a/examples/ex_telegram/oas_handlers_gen.go +++ b/examples/ex_telegram/oas_handlers_gen.go @@ -10,6 +10,7 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" semconv "go.opentelemetry.io/otel/semconv/v1.17.0" "go.opentelemetry.io/otel/trace" @@ -40,17 +41,17 @@ func (s *Server) handleAddStickerToSetRequest(args [0]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -148,17 +149,17 @@ func (s *Server) handleAnswerCallbackQueryRequest(args [0]string, argsEscaped bo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -256,17 +257,17 @@ func (s *Server) handleAnswerInlineQueryRequest(args [0]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -364,17 +365,17 @@ func (s *Server) handleAnswerPreCheckoutQueryRequest(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -472,17 +473,17 @@ func (s *Server) handleAnswerShippingQueryRequest(args [0]string, argsEscaped bo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -580,17 +581,17 @@ func (s *Server) handleApproveChatJoinRequestRequest(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -688,17 +689,17 @@ func (s *Server) handleBanChatMemberRequest(args [0]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -796,17 +797,17 @@ func (s *Server) handleBanChatSenderChatRequest(args [0]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -904,17 +905,17 @@ func (s *Server) handleCloseRequest(args [0]string, argsEscaped bool, w http.Res startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -993,17 +994,17 @@ func (s *Server) handleCopyMessageRequest(args [0]string, argsEscaped bool, w ht startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1101,17 +1102,17 @@ func (s *Server) handleCreateChatInviteLinkRequest(args [0]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1209,17 +1210,17 @@ func (s *Server) handleCreateNewStickerSetRequest(args [0]string, argsEscaped bo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1317,17 +1318,17 @@ func (s *Server) handleDeclineChatJoinRequestRequest(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1425,17 +1426,17 @@ func (s *Server) handleDeleteChatPhotoRequest(args [0]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1533,17 +1534,17 @@ func (s *Server) handleDeleteChatStickerSetRequest(args [0]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1641,17 +1642,17 @@ func (s *Server) handleDeleteMessageRequest(args [0]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1749,17 +1750,17 @@ func (s *Server) handleDeleteMyCommandsRequest(args [0]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1857,17 +1858,17 @@ func (s *Server) handleDeleteStickerFromSetRequest(args [0]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1965,17 +1966,17 @@ func (s *Server) handleDeleteWebhookRequest(args [0]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2073,17 +2074,17 @@ func (s *Server) handleEditChatInviteLinkRequest(args [0]string, argsEscaped boo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2181,17 +2182,17 @@ func (s *Server) handleEditMessageCaptionRequest(args [0]string, argsEscaped boo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2289,17 +2290,17 @@ func (s *Server) handleEditMessageLiveLocationRequest(args [0]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2397,17 +2398,17 @@ func (s *Server) handleEditMessageMediaRequest(args [0]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2505,17 +2506,17 @@ func (s *Server) handleEditMessageReplyMarkupRequest(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2613,17 +2614,17 @@ func (s *Server) handleEditMessageTextRequest(args [0]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2721,17 +2722,17 @@ func (s *Server) handleExportChatInviteLinkRequest(args [0]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2829,17 +2830,17 @@ func (s *Server) handleForwardMessageRequest(args [0]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2937,17 +2938,17 @@ func (s *Server) handleGetChatRequest(args [0]string, argsEscaped bool, w http.R startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -3045,17 +3046,17 @@ func (s *Server) handleGetChatAdministratorsRequest(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -3153,17 +3154,17 @@ func (s *Server) handleGetChatMemberRequest(args [0]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -3261,17 +3262,17 @@ func (s *Server) handleGetChatMemberCountRequest(args [0]string, argsEscaped boo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -3369,17 +3370,17 @@ func (s *Server) handleGetFileRequest(args [0]string, argsEscaped bool, w http.R startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -3477,17 +3478,17 @@ func (s *Server) handleGetGameHighScoresRequest(args [0]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -3585,17 +3586,17 @@ func (s *Server) handleGetMeRequest(args [0]string, argsEscaped bool, w http.Res startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -3674,17 +3675,17 @@ func (s *Server) handleGetMyCommandsRequest(args [0]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -3782,17 +3783,17 @@ func (s *Server) handleGetStickerSetRequest(args [0]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -3890,17 +3891,17 @@ func (s *Server) handleGetUpdatesRequest(args [0]string, argsEscaped bool, w htt startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -3998,17 +3999,17 @@ func (s *Server) handleGetUserProfilePhotosRequest(args [0]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -4106,17 +4107,17 @@ func (s *Server) handleGetWebhookInfoRequest(args [0]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -4195,17 +4196,17 @@ func (s *Server) handleLeaveChatRequest(args [0]string, argsEscaped bool, w http startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -4303,17 +4304,17 @@ func (s *Server) handleLogOutRequest(args [0]string, argsEscaped bool, w http.Re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -4392,17 +4393,17 @@ func (s *Server) handlePinChatMessageRequest(args [0]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -4500,17 +4501,17 @@ func (s *Server) handlePromoteChatMemberRequest(args [0]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -4608,17 +4609,17 @@ func (s *Server) handleRestrictChatMemberRequest(args [0]string, argsEscaped boo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -4716,17 +4717,17 @@ func (s *Server) handleRevokeChatInviteLinkRequest(args [0]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -4824,17 +4825,17 @@ func (s *Server) handleSendAnimationRequest(args [0]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -4932,17 +4933,17 @@ func (s *Server) handleSendAudioRequest(args [0]string, argsEscaped bool, w http startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -5040,17 +5041,17 @@ func (s *Server) handleSendChatActionRequest(args [0]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -5148,17 +5149,17 @@ func (s *Server) handleSendContactRequest(args [0]string, argsEscaped bool, w ht startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -5256,17 +5257,17 @@ func (s *Server) handleSendDiceRequest(args [0]string, argsEscaped bool, w http. startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -5364,17 +5365,17 @@ func (s *Server) handleSendDocumentRequest(args [0]string, argsEscaped bool, w h startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -5472,17 +5473,17 @@ func (s *Server) handleSendGameRequest(args [0]string, argsEscaped bool, w http. startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -5580,17 +5581,17 @@ func (s *Server) handleSendInvoiceRequest(args [0]string, argsEscaped bool, w ht startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -5688,17 +5689,17 @@ func (s *Server) handleSendLocationRequest(args [0]string, argsEscaped bool, w h startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -5796,17 +5797,17 @@ func (s *Server) handleSendMediaGroupRequest(args [0]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -5904,17 +5905,17 @@ func (s *Server) handleSendMessageRequest(args [0]string, argsEscaped bool, w ht startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -6012,17 +6013,17 @@ func (s *Server) handleSendPhotoRequest(args [0]string, argsEscaped bool, w http startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -6120,17 +6121,17 @@ func (s *Server) handleSendPollRequest(args [0]string, argsEscaped bool, w http. startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -6228,17 +6229,17 @@ func (s *Server) handleSendStickerRequest(args [0]string, argsEscaped bool, w ht startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -6336,17 +6337,17 @@ func (s *Server) handleSendVenueRequest(args [0]string, argsEscaped bool, w http startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -6444,17 +6445,17 @@ func (s *Server) handleSendVideoRequest(args [0]string, argsEscaped bool, w http startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -6552,17 +6553,17 @@ func (s *Server) handleSendVideoNoteRequest(args [0]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -6660,17 +6661,17 @@ func (s *Server) handleSendVoiceRequest(args [0]string, argsEscaped bool, w http startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -6768,17 +6769,17 @@ func (s *Server) handleSetChatAdministratorCustomTitleRequest(args [0]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -6876,17 +6877,17 @@ func (s *Server) handleSetChatDescriptionRequest(args [0]string, argsEscaped boo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -6984,17 +6985,17 @@ func (s *Server) handleSetChatPermissionsRequest(args [0]string, argsEscaped boo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -7092,17 +7093,17 @@ func (s *Server) handleSetChatPhotoRequest(args [0]string, argsEscaped bool, w h startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -7200,17 +7201,17 @@ func (s *Server) handleSetChatStickerSetRequest(args [0]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -7308,17 +7309,17 @@ func (s *Server) handleSetChatTitleRequest(args [0]string, argsEscaped bool, w h startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -7416,17 +7417,17 @@ func (s *Server) handleSetGameScoreRequest(args [0]string, argsEscaped bool, w h startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -7524,17 +7525,17 @@ func (s *Server) handleSetMyCommandsRequest(args [0]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -7632,17 +7633,17 @@ func (s *Server) handleSetPassportDataErrorsRequest(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -7740,17 +7741,17 @@ func (s *Server) handleSetStickerPositionInSetRequest(args [0]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -7848,17 +7849,17 @@ func (s *Server) handleSetStickerSetThumbRequest(args [0]string, argsEscaped boo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -7956,17 +7957,17 @@ func (s *Server) handleSetWebhookRequest(args [0]string, argsEscaped bool, w htt startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -8064,17 +8065,17 @@ func (s *Server) handleStopMessageLiveLocationRequest(args [0]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -8172,17 +8173,17 @@ func (s *Server) handleStopPollRequest(args [0]string, argsEscaped bool, w http. startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -8280,17 +8281,17 @@ func (s *Server) handleUnbanChatMemberRequest(args [0]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -8388,17 +8389,17 @@ func (s *Server) handleUnbanChatSenderChatRequest(args [0]string, argsEscaped bo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -8496,17 +8497,17 @@ func (s *Server) handleUnpinAllChatMessagesRequest(args [0]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -8604,17 +8605,17 @@ func (s *Server) handleUnpinChatMessageRequest(args [0]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -8712,17 +8713,17 @@ func (s *Server) handleUploadStickerFileRequest(args [0]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ diff --git a/examples/ex_test_format/oas_cfg_gen.go b/examples/ex_test_format/oas_cfg_gen.go index 200975a4a..2674bd0c4 100644 --- a/examples/ex_test_format/oas_cfg_gen.go +++ b/examples/ex_test_format/oas_cfg_gen.go @@ -7,6 +7,7 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/global" "go.opentelemetry.io/otel/metric/instrument" "go.opentelemetry.io/otel/trace" @@ -40,7 +41,7 @@ func (cfg *otelConfig) initOTEL() { cfg.TracerProvider = otel.GetTracerProvider() } if cfg.MeterProvider == nil { - cfg.MeterProvider = metric.NewNoopMeterProvider() + cfg.MeterProvider = global.MeterProvider() } cfg.Tracer = cfg.TracerProvider.Tracer(otelogen.Name, trace.WithInstrumentationVersion(otelogen.SemVersion()), @@ -200,7 +201,7 @@ func WithTracerProvider(provider trace.TracerProvider) Option { // WithMeterProvider specifies a meter provider to use for creating a meter. // -// If none is specified, the metric.NewNoopMeterProvider is used. +// If none is specified, the global.MeterProvider() is used. func WithMeterProvider(provider metric.MeterProvider) Option { return otelOptionFunc(func(cfg *otelConfig) { if provider != nil { diff --git a/examples/ex_test_format/oas_client_gen.go b/examples/ex_test_format/oas_client_gen.go index dbb15f504..1c933cf73 100644 --- a/examples/ex_test_format/oas_client_gen.go +++ b/examples/ex_test_format/oas_client_gen.go @@ -15,6 +15,7 @@ import ( "github.com/google/uuid" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" "go.opentelemetry.io/otel/trace" "github.com/ogen-go/ogen/conv" @@ -90,11 +91,11 @@ func (c *Client) sendTestQueryParameter(ctx context.Context, request string, par startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestQueryParameter", @@ -107,7 +108,7 @@ func (c *Client) sendTestQueryParameter(ctx context.Context, request string, par if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1645,11 +1646,11 @@ func (c *Client) sendTestRequestAny(ctx context.Context, request jx.Raw) (res *E startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestAny", @@ -1662,7 +1663,7 @@ func (c *Client) sendTestRequestAny(ctx context.Context, request jx.Raw) (res *E if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1716,11 +1717,11 @@ func (c *Client) sendTestRequestBoolean(ctx context.Context, request OptBool) (r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestBoolean", @@ -1733,7 +1734,7 @@ func (c *Client) sendTestRequestBoolean(ctx context.Context, request OptBool) (r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1787,11 +1788,11 @@ func (c *Client) sendTestRequestBooleanArray(ctx context.Context, request []bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestBooleanArray", @@ -1804,7 +1805,7 @@ func (c *Client) sendTestRequestBooleanArray(ctx context.Context, request []bool if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1881,11 +1882,11 @@ func (c *Client) sendTestRequestBooleanArrayArray(ctx context.Context, request [ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestBooleanArrayArray", @@ -1898,7 +1899,7 @@ func (c *Client) sendTestRequestBooleanArrayArray(ctx context.Context, request [ if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1952,11 +1953,11 @@ func (c *Client) sendTestRequestBooleanNullable(ctx context.Context, request Opt startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestBooleanNullable", @@ -1969,7 +1970,7 @@ func (c *Client) sendTestRequestBooleanNullable(ctx context.Context, request Opt if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2023,11 +2024,11 @@ func (c *Client) sendTestRequestBooleanNullableArray(ctx context.Context, reques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestBooleanNullableArray", @@ -2040,7 +2041,7 @@ func (c *Client) sendTestRequestBooleanNullableArray(ctx context.Context, reques if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2117,11 +2118,11 @@ func (c *Client) sendTestRequestBooleanNullableArrayArray(ctx context.Context, r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestBooleanNullableArrayArray", @@ -2134,7 +2135,7 @@ func (c *Client) sendTestRequestBooleanNullableArrayArray(ctx context.Context, r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2188,11 +2189,11 @@ func (c *Client) sendTestRequestEmptyStruct(ctx context.Context, request *TestRe startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestEmptyStruct", @@ -2205,7 +2206,7 @@ func (c *Client) sendTestRequestEmptyStruct(ctx context.Context, request *TestRe if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2275,11 +2276,11 @@ func (c *Client) sendTestRequestFormatTest(ctx context.Context, request OptTestR startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestFormatTest", @@ -2292,7 +2293,7 @@ func (c *Client) sendTestRequestFormatTest(ctx context.Context, request OptTestR if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2346,11 +2347,11 @@ func (c *Client) sendTestRequestInteger(ctx context.Context, request OptInt) (re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestInteger", @@ -2363,7 +2364,7 @@ func (c *Client) sendTestRequestInteger(ctx context.Context, request OptInt) (re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2417,11 +2418,11 @@ func (c *Client) sendTestRequestIntegerArray(ctx context.Context, request []int) startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerArray", @@ -2434,7 +2435,7 @@ func (c *Client) sendTestRequestIntegerArray(ctx context.Context, request []int) if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2511,11 +2512,11 @@ func (c *Client) sendTestRequestIntegerArrayArray(ctx context.Context, request [ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerArrayArray", @@ -2528,7 +2529,7 @@ func (c *Client) sendTestRequestIntegerArrayArray(ctx context.Context, request [ if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2582,11 +2583,11 @@ func (c *Client) sendTestRequestIntegerInt32(ctx context.Context, request OptInt startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerInt32", @@ -2599,7 +2600,7 @@ func (c *Client) sendTestRequestIntegerInt32(ctx context.Context, request OptInt if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2653,11 +2654,11 @@ func (c *Client) sendTestRequestIntegerInt32Array(ctx context.Context, request [ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerInt32Array", @@ -2670,7 +2671,7 @@ func (c *Client) sendTestRequestIntegerInt32Array(ctx context.Context, request [ if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2747,11 +2748,11 @@ func (c *Client) sendTestRequestIntegerInt32ArrayArray(ctx context.Context, requ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerInt32ArrayArray", @@ -2764,7 +2765,7 @@ func (c *Client) sendTestRequestIntegerInt32ArrayArray(ctx context.Context, requ if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2818,11 +2819,11 @@ func (c *Client) sendTestRequestIntegerInt32Nullable(ctx context.Context, reques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerInt32Nullable", @@ -2835,7 +2836,7 @@ func (c *Client) sendTestRequestIntegerInt32Nullable(ctx context.Context, reques if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2889,11 +2890,11 @@ func (c *Client) sendTestRequestIntegerInt32NullableArray(ctx context.Context, r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerInt32NullableArray", @@ -2906,7 +2907,7 @@ func (c *Client) sendTestRequestIntegerInt32NullableArray(ctx context.Context, r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2983,11 +2984,11 @@ func (c *Client) sendTestRequestIntegerInt32NullableArrayArray(ctx context.Conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerInt32NullableArrayArray", @@ -3000,7 +3001,7 @@ func (c *Client) sendTestRequestIntegerInt32NullableArrayArray(ctx context.Conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -3054,11 +3055,11 @@ func (c *Client) sendTestRequestIntegerInt64(ctx context.Context, request OptInt startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerInt64", @@ -3071,7 +3072,7 @@ func (c *Client) sendTestRequestIntegerInt64(ctx context.Context, request OptInt if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -3125,11 +3126,11 @@ func (c *Client) sendTestRequestIntegerInt64Array(ctx context.Context, request [ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerInt64Array", @@ -3142,7 +3143,7 @@ func (c *Client) sendTestRequestIntegerInt64Array(ctx context.Context, request [ if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -3219,11 +3220,11 @@ func (c *Client) sendTestRequestIntegerInt64ArrayArray(ctx context.Context, requ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerInt64ArrayArray", @@ -3236,7 +3237,7 @@ func (c *Client) sendTestRequestIntegerInt64ArrayArray(ctx context.Context, requ if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -3290,11 +3291,11 @@ func (c *Client) sendTestRequestIntegerInt64Nullable(ctx context.Context, reques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerInt64Nullable", @@ -3307,7 +3308,7 @@ func (c *Client) sendTestRequestIntegerInt64Nullable(ctx context.Context, reques if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -3361,11 +3362,11 @@ func (c *Client) sendTestRequestIntegerInt64NullableArray(ctx context.Context, r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerInt64NullableArray", @@ -3378,7 +3379,7 @@ func (c *Client) sendTestRequestIntegerInt64NullableArray(ctx context.Context, r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -3455,11 +3456,11 @@ func (c *Client) sendTestRequestIntegerInt64NullableArrayArray(ctx context.Conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerInt64NullableArrayArray", @@ -3472,7 +3473,7 @@ func (c *Client) sendTestRequestIntegerInt64NullableArrayArray(ctx context.Conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -3526,11 +3527,11 @@ func (c *Client) sendTestRequestIntegerNullable(ctx context.Context, request Opt startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerNullable", @@ -3543,7 +3544,7 @@ func (c *Client) sendTestRequestIntegerNullable(ctx context.Context, request Opt if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -3597,11 +3598,11 @@ func (c *Client) sendTestRequestIntegerNullableArray(ctx context.Context, reques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerNullableArray", @@ -3614,7 +3615,7 @@ func (c *Client) sendTestRequestIntegerNullableArray(ctx context.Context, reques if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -3691,11 +3692,11 @@ func (c *Client) sendTestRequestIntegerNullableArrayArray(ctx context.Context, r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerNullableArrayArray", @@ -3708,7 +3709,7 @@ func (c *Client) sendTestRequestIntegerNullableArrayArray(ctx context.Context, r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -3762,11 +3763,11 @@ func (c *Client) sendTestRequestIntegerUint(ctx context.Context, request OptUint startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerUint", @@ -3779,7 +3780,7 @@ func (c *Client) sendTestRequestIntegerUint(ctx context.Context, request OptUint if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -3833,11 +3834,11 @@ func (c *Client) sendTestRequestIntegerUint32(ctx context.Context, request OptUi startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerUint32", @@ -3850,7 +3851,7 @@ func (c *Client) sendTestRequestIntegerUint32(ctx context.Context, request OptUi if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -3904,11 +3905,11 @@ func (c *Client) sendTestRequestIntegerUint32Array(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerUint32Array", @@ -3921,7 +3922,7 @@ func (c *Client) sendTestRequestIntegerUint32Array(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -3998,11 +3999,11 @@ func (c *Client) sendTestRequestIntegerUint32ArrayArray(ctx context.Context, req startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerUint32ArrayArray", @@ -4015,7 +4016,7 @@ func (c *Client) sendTestRequestIntegerUint32ArrayArray(ctx context.Context, req if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -4069,11 +4070,11 @@ func (c *Client) sendTestRequestIntegerUint32Nullable(ctx context.Context, reque startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerUint32Nullable", @@ -4086,7 +4087,7 @@ func (c *Client) sendTestRequestIntegerUint32Nullable(ctx context.Context, reque if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -4140,11 +4141,11 @@ func (c *Client) sendTestRequestIntegerUint32NullableArray(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerUint32NullableArray", @@ -4157,7 +4158,7 @@ func (c *Client) sendTestRequestIntegerUint32NullableArray(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -4234,11 +4235,11 @@ func (c *Client) sendTestRequestIntegerUint32NullableArrayArray(ctx context.Cont startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerUint32NullableArrayArray", @@ -4251,7 +4252,7 @@ func (c *Client) sendTestRequestIntegerUint32NullableArrayArray(ctx context.Cont if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -4305,11 +4306,11 @@ func (c *Client) sendTestRequestIntegerUint64(ctx context.Context, request OptUi startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerUint64", @@ -4322,7 +4323,7 @@ func (c *Client) sendTestRequestIntegerUint64(ctx context.Context, request OptUi if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -4376,11 +4377,11 @@ func (c *Client) sendTestRequestIntegerUint64Array(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerUint64Array", @@ -4393,7 +4394,7 @@ func (c *Client) sendTestRequestIntegerUint64Array(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -4470,11 +4471,11 @@ func (c *Client) sendTestRequestIntegerUint64ArrayArray(ctx context.Context, req startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerUint64ArrayArray", @@ -4487,7 +4488,7 @@ func (c *Client) sendTestRequestIntegerUint64ArrayArray(ctx context.Context, req if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -4541,11 +4542,11 @@ func (c *Client) sendTestRequestIntegerUint64Nullable(ctx context.Context, reque startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerUint64Nullable", @@ -4558,7 +4559,7 @@ func (c *Client) sendTestRequestIntegerUint64Nullable(ctx context.Context, reque if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -4612,11 +4613,11 @@ func (c *Client) sendTestRequestIntegerUint64NullableArray(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerUint64NullableArray", @@ -4629,7 +4630,7 @@ func (c *Client) sendTestRequestIntegerUint64NullableArray(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -4706,11 +4707,11 @@ func (c *Client) sendTestRequestIntegerUint64NullableArrayArray(ctx context.Cont startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerUint64NullableArrayArray", @@ -4723,7 +4724,7 @@ func (c *Client) sendTestRequestIntegerUint64NullableArrayArray(ctx context.Cont if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -4777,11 +4778,11 @@ func (c *Client) sendTestRequestIntegerUintArray(ctx context.Context, request [] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerUintArray", @@ -4794,7 +4795,7 @@ func (c *Client) sendTestRequestIntegerUintArray(ctx context.Context, request [] if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -4871,11 +4872,11 @@ func (c *Client) sendTestRequestIntegerUintArrayArray(ctx context.Context, reque startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerUintArrayArray", @@ -4888,7 +4889,7 @@ func (c *Client) sendTestRequestIntegerUintArrayArray(ctx context.Context, reque if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -4942,11 +4943,11 @@ func (c *Client) sendTestRequestIntegerUintNullable(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerUintNullable", @@ -4959,7 +4960,7 @@ func (c *Client) sendTestRequestIntegerUintNullable(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -5013,11 +5014,11 @@ func (c *Client) sendTestRequestIntegerUintNullableArray(ctx context.Context, re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerUintNullableArray", @@ -5030,7 +5031,7 @@ func (c *Client) sendTestRequestIntegerUintNullableArray(ctx context.Context, re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -5107,11 +5108,11 @@ func (c *Client) sendTestRequestIntegerUintNullableArrayArray(ctx context.Contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerUintNullableArrayArray", @@ -5124,7 +5125,7 @@ func (c *Client) sendTestRequestIntegerUintNullableArrayArray(ctx context.Contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -5178,11 +5179,11 @@ func (c *Client) sendTestRequestIntegerUnix(ctx context.Context, request OptUnix startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerUnix", @@ -5195,7 +5196,7 @@ func (c *Client) sendTestRequestIntegerUnix(ctx context.Context, request OptUnix if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -5249,11 +5250,11 @@ func (c *Client) sendTestRequestIntegerUnixArray(ctx context.Context, request [] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerUnixArray", @@ -5266,7 +5267,7 @@ func (c *Client) sendTestRequestIntegerUnixArray(ctx context.Context, request [] if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -5343,11 +5344,11 @@ func (c *Client) sendTestRequestIntegerUnixArrayArray(ctx context.Context, reque startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerUnixArrayArray", @@ -5360,7 +5361,7 @@ func (c *Client) sendTestRequestIntegerUnixArrayArray(ctx context.Context, reque if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -5414,11 +5415,11 @@ func (c *Client) sendTestRequestIntegerUnixMicro(ctx context.Context, request Op startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerUnixMicro", @@ -5431,7 +5432,7 @@ func (c *Client) sendTestRequestIntegerUnixMicro(ctx context.Context, request Op if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -5485,11 +5486,11 @@ func (c *Client) sendTestRequestIntegerUnixMicroArray(ctx context.Context, reque startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerUnixMicroArray", @@ -5502,7 +5503,7 @@ func (c *Client) sendTestRequestIntegerUnixMicroArray(ctx context.Context, reque if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -5579,11 +5580,11 @@ func (c *Client) sendTestRequestIntegerUnixMicroArrayArray(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerUnixMicroArrayArray", @@ -5596,7 +5597,7 @@ func (c *Client) sendTestRequestIntegerUnixMicroArrayArray(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -5650,11 +5651,11 @@ func (c *Client) sendTestRequestIntegerUnixMicroNullable(ctx context.Context, re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerUnixMicroNullable", @@ -5667,7 +5668,7 @@ func (c *Client) sendTestRequestIntegerUnixMicroNullable(ctx context.Context, re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -5721,11 +5722,11 @@ func (c *Client) sendTestRequestIntegerUnixMicroNullableArray(ctx context.Contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerUnixMicroNullableArray", @@ -5738,7 +5739,7 @@ func (c *Client) sendTestRequestIntegerUnixMicroNullableArray(ctx context.Contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -5815,11 +5816,11 @@ func (c *Client) sendTestRequestIntegerUnixMicroNullableArrayArray(ctx context.C startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerUnixMicroNullableArrayArray", @@ -5832,7 +5833,7 @@ func (c *Client) sendTestRequestIntegerUnixMicroNullableArrayArray(ctx context.C if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -5886,11 +5887,11 @@ func (c *Client) sendTestRequestIntegerUnixMilli(ctx context.Context, request Op startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerUnixMilli", @@ -5903,7 +5904,7 @@ func (c *Client) sendTestRequestIntegerUnixMilli(ctx context.Context, request Op if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -5957,11 +5958,11 @@ func (c *Client) sendTestRequestIntegerUnixMilliArray(ctx context.Context, reque startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerUnixMilliArray", @@ -5974,7 +5975,7 @@ func (c *Client) sendTestRequestIntegerUnixMilliArray(ctx context.Context, reque if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -6051,11 +6052,11 @@ func (c *Client) sendTestRequestIntegerUnixMilliArrayArray(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerUnixMilliArrayArray", @@ -6068,7 +6069,7 @@ func (c *Client) sendTestRequestIntegerUnixMilliArrayArray(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -6122,11 +6123,11 @@ func (c *Client) sendTestRequestIntegerUnixMilliNullable(ctx context.Context, re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerUnixMilliNullable", @@ -6139,7 +6140,7 @@ func (c *Client) sendTestRequestIntegerUnixMilliNullable(ctx context.Context, re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -6193,11 +6194,11 @@ func (c *Client) sendTestRequestIntegerUnixMilliNullableArray(ctx context.Contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerUnixMilliNullableArray", @@ -6210,7 +6211,7 @@ func (c *Client) sendTestRequestIntegerUnixMilliNullableArray(ctx context.Contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -6287,11 +6288,11 @@ func (c *Client) sendTestRequestIntegerUnixMilliNullableArrayArray(ctx context.C startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerUnixMilliNullableArrayArray", @@ -6304,7 +6305,7 @@ func (c *Client) sendTestRequestIntegerUnixMilliNullableArrayArray(ctx context.C if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -6358,11 +6359,11 @@ func (c *Client) sendTestRequestIntegerUnixNano(ctx context.Context, request Opt startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerUnixNano", @@ -6375,7 +6376,7 @@ func (c *Client) sendTestRequestIntegerUnixNano(ctx context.Context, request Opt if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -6429,11 +6430,11 @@ func (c *Client) sendTestRequestIntegerUnixNanoArray(ctx context.Context, reques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerUnixNanoArray", @@ -6446,7 +6447,7 @@ func (c *Client) sendTestRequestIntegerUnixNanoArray(ctx context.Context, reques if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -6523,11 +6524,11 @@ func (c *Client) sendTestRequestIntegerUnixNanoArrayArray(ctx context.Context, r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerUnixNanoArrayArray", @@ -6540,7 +6541,7 @@ func (c *Client) sendTestRequestIntegerUnixNanoArrayArray(ctx context.Context, r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -6594,11 +6595,11 @@ func (c *Client) sendTestRequestIntegerUnixNanoNullable(ctx context.Context, req startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerUnixNanoNullable", @@ -6611,7 +6612,7 @@ func (c *Client) sendTestRequestIntegerUnixNanoNullable(ctx context.Context, req if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -6665,11 +6666,11 @@ func (c *Client) sendTestRequestIntegerUnixNanoNullableArray(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerUnixNanoNullableArray", @@ -6682,7 +6683,7 @@ func (c *Client) sendTestRequestIntegerUnixNanoNullableArray(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -6759,11 +6760,11 @@ func (c *Client) sendTestRequestIntegerUnixNanoNullableArrayArray(ctx context.Co startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerUnixNanoNullableArrayArray", @@ -6776,7 +6777,7 @@ func (c *Client) sendTestRequestIntegerUnixNanoNullableArrayArray(ctx context.Co if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -6830,11 +6831,11 @@ func (c *Client) sendTestRequestIntegerUnixNullable(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerUnixNullable", @@ -6847,7 +6848,7 @@ func (c *Client) sendTestRequestIntegerUnixNullable(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -6901,11 +6902,11 @@ func (c *Client) sendTestRequestIntegerUnixNullableArray(ctx context.Context, re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerUnixNullableArray", @@ -6918,7 +6919,7 @@ func (c *Client) sendTestRequestIntegerUnixNullableArray(ctx context.Context, re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -6995,11 +6996,11 @@ func (c *Client) sendTestRequestIntegerUnixNullableArrayArray(ctx context.Contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerUnixNullableArrayArray", @@ -7012,7 +7013,7 @@ func (c *Client) sendTestRequestIntegerUnixNullableArrayArray(ctx context.Contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -7066,11 +7067,11 @@ func (c *Client) sendTestRequestIntegerUnixSeconds(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerUnixSeconds", @@ -7083,7 +7084,7 @@ func (c *Client) sendTestRequestIntegerUnixSeconds(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -7137,11 +7138,11 @@ func (c *Client) sendTestRequestIntegerUnixSecondsArray(ctx context.Context, req startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerUnixSecondsArray", @@ -7154,7 +7155,7 @@ func (c *Client) sendTestRequestIntegerUnixSecondsArray(ctx context.Context, req if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -7231,11 +7232,11 @@ func (c *Client) sendTestRequestIntegerUnixSecondsArrayArray(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerUnixSecondsArrayArray", @@ -7248,7 +7249,7 @@ func (c *Client) sendTestRequestIntegerUnixSecondsArrayArray(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -7302,11 +7303,11 @@ func (c *Client) sendTestRequestIntegerUnixSecondsNullable(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerUnixSecondsNullable", @@ -7319,7 +7320,7 @@ func (c *Client) sendTestRequestIntegerUnixSecondsNullable(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -7373,11 +7374,11 @@ func (c *Client) sendTestRequestIntegerUnixSecondsNullableArray(ctx context.Cont startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerUnixSecondsNullableArray", @@ -7390,7 +7391,7 @@ func (c *Client) sendTestRequestIntegerUnixSecondsNullableArray(ctx context.Cont if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -7467,11 +7468,11 @@ func (c *Client) sendTestRequestIntegerUnixSecondsNullableArrayArray(ctx context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestIntegerUnixSecondsNullableArrayArray", @@ -7484,7 +7485,7 @@ func (c *Client) sendTestRequestIntegerUnixSecondsNullableArrayArray(ctx context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -7538,11 +7539,11 @@ func (c *Client) sendTestRequestNull(ctx context.Context, request OptNull) (res startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestNull", @@ -7555,7 +7556,7 @@ func (c *Client) sendTestRequestNull(ctx context.Context, request OptNull) (res if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -7609,11 +7610,11 @@ func (c *Client) sendTestRequestNullArray(ctx context.Context, request []struct{ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestNullArray", @@ -7626,7 +7627,7 @@ func (c *Client) sendTestRequestNullArray(ctx context.Context, request []struct{ if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -7703,11 +7704,11 @@ func (c *Client) sendTestRequestNullArrayArray(ctx context.Context, request [][] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestNullArrayArray", @@ -7720,7 +7721,7 @@ func (c *Client) sendTestRequestNullArrayArray(ctx context.Context, request [][] if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -7774,11 +7775,11 @@ func (c *Client) sendTestRequestNullNullable(ctx context.Context, request OptNul startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestNullNullable", @@ -7791,7 +7792,7 @@ func (c *Client) sendTestRequestNullNullable(ctx context.Context, request OptNul if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -7845,11 +7846,11 @@ func (c *Client) sendTestRequestNullNullableArray(ctx context.Context, request [ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestNullNullableArray", @@ -7862,7 +7863,7 @@ func (c *Client) sendTestRequestNullNullableArray(ctx context.Context, request [ if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -7939,11 +7940,11 @@ func (c *Client) sendTestRequestNullNullableArrayArray(ctx context.Context, requ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestNullNullableArrayArray", @@ -7956,7 +7957,7 @@ func (c *Client) sendTestRequestNullNullableArrayArray(ctx context.Context, requ if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -8026,11 +8027,11 @@ func (c *Client) sendTestRequestNumber(ctx context.Context, request OptFloat64) startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestNumber", @@ -8043,7 +8044,7 @@ func (c *Client) sendTestRequestNumber(ctx context.Context, request OptFloat64) if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -8120,11 +8121,11 @@ func (c *Client) sendTestRequestNumberArray(ctx context.Context, request []float startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestNumberArray", @@ -8137,7 +8138,7 @@ func (c *Client) sendTestRequestNumberArray(ctx context.Context, request []float if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -8231,11 +8232,11 @@ func (c *Client) sendTestRequestNumberArrayArray(ctx context.Context, request [] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestNumberArrayArray", @@ -8248,7 +8249,7 @@ func (c *Client) sendTestRequestNumberArrayArray(ctx context.Context, request [] if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -8318,11 +8319,11 @@ func (c *Client) sendTestRequestNumberDouble(ctx context.Context, request OptFlo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestNumberDouble", @@ -8335,7 +8336,7 @@ func (c *Client) sendTestRequestNumberDouble(ctx context.Context, request OptFlo if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -8412,11 +8413,11 @@ func (c *Client) sendTestRequestNumberDoubleArray(ctx context.Context, request [ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestNumberDoubleArray", @@ -8429,7 +8430,7 @@ func (c *Client) sendTestRequestNumberDoubleArray(ctx context.Context, request [ if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -8523,11 +8524,11 @@ func (c *Client) sendTestRequestNumberDoubleArrayArray(ctx context.Context, requ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestNumberDoubleArrayArray", @@ -8540,7 +8541,7 @@ func (c *Client) sendTestRequestNumberDoubleArrayArray(ctx context.Context, requ if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -8610,11 +8611,11 @@ func (c *Client) sendTestRequestNumberDoubleNullable(ctx context.Context, reques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestNumberDoubleNullable", @@ -8627,7 +8628,7 @@ func (c *Client) sendTestRequestNumberDoubleNullable(ctx context.Context, reques if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -8704,11 +8705,11 @@ func (c *Client) sendTestRequestNumberDoubleNullableArray(ctx context.Context, r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestNumberDoubleNullableArray", @@ -8721,7 +8722,7 @@ func (c *Client) sendTestRequestNumberDoubleNullableArray(ctx context.Context, r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -8815,11 +8816,11 @@ func (c *Client) sendTestRequestNumberDoubleNullableArrayArray(ctx context.Conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestNumberDoubleNullableArrayArray", @@ -8832,7 +8833,7 @@ func (c *Client) sendTestRequestNumberDoubleNullableArrayArray(ctx context.Conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -8902,11 +8903,11 @@ func (c *Client) sendTestRequestNumberFloat(ctx context.Context, request OptFloa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestNumberFloat", @@ -8919,7 +8920,7 @@ func (c *Client) sendTestRequestNumberFloat(ctx context.Context, request OptFloa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -8996,11 +8997,11 @@ func (c *Client) sendTestRequestNumberFloatArray(ctx context.Context, request [] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestNumberFloatArray", @@ -9013,7 +9014,7 @@ func (c *Client) sendTestRequestNumberFloatArray(ctx context.Context, request [] if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -9107,11 +9108,11 @@ func (c *Client) sendTestRequestNumberFloatArrayArray(ctx context.Context, reque startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestNumberFloatArrayArray", @@ -9124,7 +9125,7 @@ func (c *Client) sendTestRequestNumberFloatArrayArray(ctx context.Context, reque if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -9194,11 +9195,11 @@ func (c *Client) sendTestRequestNumberFloatNullable(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestNumberFloatNullable", @@ -9211,7 +9212,7 @@ func (c *Client) sendTestRequestNumberFloatNullable(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -9288,11 +9289,11 @@ func (c *Client) sendTestRequestNumberFloatNullableArray(ctx context.Context, re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestNumberFloatNullableArray", @@ -9305,7 +9306,7 @@ func (c *Client) sendTestRequestNumberFloatNullableArray(ctx context.Context, re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -9399,11 +9400,11 @@ func (c *Client) sendTestRequestNumberFloatNullableArrayArray(ctx context.Contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestNumberFloatNullableArrayArray", @@ -9416,7 +9417,7 @@ func (c *Client) sendTestRequestNumberFloatNullableArrayArray(ctx context.Contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -9470,11 +9471,11 @@ func (c *Client) sendTestRequestNumberInt32(ctx context.Context, request OptInt3 startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestNumberInt32", @@ -9487,7 +9488,7 @@ func (c *Client) sendTestRequestNumberInt32(ctx context.Context, request OptInt3 if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -9541,11 +9542,11 @@ func (c *Client) sendTestRequestNumberInt32Array(ctx context.Context, request [] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestNumberInt32Array", @@ -9558,7 +9559,7 @@ func (c *Client) sendTestRequestNumberInt32Array(ctx context.Context, request [] if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -9635,11 +9636,11 @@ func (c *Client) sendTestRequestNumberInt32ArrayArray(ctx context.Context, reque startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestNumberInt32ArrayArray", @@ -9652,7 +9653,7 @@ func (c *Client) sendTestRequestNumberInt32ArrayArray(ctx context.Context, reque if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -9706,11 +9707,11 @@ func (c *Client) sendTestRequestNumberInt32Nullable(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestNumberInt32Nullable", @@ -9723,7 +9724,7 @@ func (c *Client) sendTestRequestNumberInt32Nullable(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -9777,11 +9778,11 @@ func (c *Client) sendTestRequestNumberInt32NullableArray(ctx context.Context, re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestNumberInt32NullableArray", @@ -9794,7 +9795,7 @@ func (c *Client) sendTestRequestNumberInt32NullableArray(ctx context.Context, re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -9871,11 +9872,11 @@ func (c *Client) sendTestRequestNumberInt32NullableArrayArray(ctx context.Contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestNumberInt32NullableArrayArray", @@ -9888,7 +9889,7 @@ func (c *Client) sendTestRequestNumberInt32NullableArrayArray(ctx context.Contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -9942,11 +9943,11 @@ func (c *Client) sendTestRequestNumberInt64(ctx context.Context, request OptInt6 startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestNumberInt64", @@ -9959,7 +9960,7 @@ func (c *Client) sendTestRequestNumberInt64(ctx context.Context, request OptInt6 if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -10013,11 +10014,11 @@ func (c *Client) sendTestRequestNumberInt64Array(ctx context.Context, request [] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestNumberInt64Array", @@ -10030,7 +10031,7 @@ func (c *Client) sendTestRequestNumberInt64Array(ctx context.Context, request [] if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -10107,11 +10108,11 @@ func (c *Client) sendTestRequestNumberInt64ArrayArray(ctx context.Context, reque startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestNumberInt64ArrayArray", @@ -10124,7 +10125,7 @@ func (c *Client) sendTestRequestNumberInt64ArrayArray(ctx context.Context, reque if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -10178,11 +10179,11 @@ func (c *Client) sendTestRequestNumberInt64Nullable(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestNumberInt64Nullable", @@ -10195,7 +10196,7 @@ func (c *Client) sendTestRequestNumberInt64Nullable(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -10249,11 +10250,11 @@ func (c *Client) sendTestRequestNumberInt64NullableArray(ctx context.Context, re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestNumberInt64NullableArray", @@ -10266,7 +10267,7 @@ func (c *Client) sendTestRequestNumberInt64NullableArray(ctx context.Context, re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -10343,11 +10344,11 @@ func (c *Client) sendTestRequestNumberInt64NullableArrayArray(ctx context.Contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestNumberInt64NullableArrayArray", @@ -10360,7 +10361,7 @@ func (c *Client) sendTestRequestNumberInt64NullableArrayArray(ctx context.Contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -10430,11 +10431,11 @@ func (c *Client) sendTestRequestNumberNullable(ctx context.Context, request OptN startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestNumberNullable", @@ -10447,7 +10448,7 @@ func (c *Client) sendTestRequestNumberNullable(ctx context.Context, request OptN if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -10524,11 +10525,11 @@ func (c *Client) sendTestRequestNumberNullableArray(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestNumberNullableArray", @@ -10541,7 +10542,7 @@ func (c *Client) sendTestRequestNumberNullableArray(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -10635,11 +10636,11 @@ func (c *Client) sendTestRequestNumberNullableArrayArray(ctx context.Context, re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestNumberNullableArrayArray", @@ -10652,7 +10653,7 @@ func (c *Client) sendTestRequestNumberNullableArrayArray(ctx context.Context, re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -10706,11 +10707,11 @@ func (c *Client) sendTestRequestRequiredAny(ctx context.Context, request jx.Raw) startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredAny", @@ -10723,7 +10724,7 @@ func (c *Client) sendTestRequestRequiredAny(ctx context.Context, request jx.Raw) if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -10777,11 +10778,11 @@ func (c *Client) sendTestRequestRequiredBoolean(ctx context.Context, request boo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredBoolean", @@ -10794,7 +10795,7 @@ func (c *Client) sendTestRequestRequiredBoolean(ctx context.Context, request boo if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -10857,11 +10858,11 @@ func (c *Client) sendTestRequestRequiredBooleanArray(ctx context.Context, reques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredBooleanArray", @@ -10874,7 +10875,7 @@ func (c *Client) sendTestRequestRequiredBooleanArray(ctx context.Context, reques if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -10954,11 +10955,11 @@ func (c *Client) sendTestRequestRequiredBooleanArrayArray(ctx context.Context, r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredBooleanArrayArray", @@ -10971,7 +10972,7 @@ func (c *Client) sendTestRequestRequiredBooleanArrayArray(ctx context.Context, r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -11025,11 +11026,11 @@ func (c *Client) sendTestRequestRequiredBooleanNullable(ctx context.Context, req startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredBooleanNullable", @@ -11042,7 +11043,7 @@ func (c *Client) sendTestRequestRequiredBooleanNullable(ctx context.Context, req if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -11105,11 +11106,11 @@ func (c *Client) sendTestRequestRequiredBooleanNullableArray(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredBooleanNullableArray", @@ -11122,7 +11123,7 @@ func (c *Client) sendTestRequestRequiredBooleanNullableArray(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -11202,11 +11203,11 @@ func (c *Client) sendTestRequestRequiredBooleanNullableArrayArray(ctx context.Co startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredBooleanNullableArrayArray", @@ -11219,7 +11220,7 @@ func (c *Client) sendTestRequestRequiredBooleanNullableArrayArray(ctx context.Co if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -11273,11 +11274,11 @@ func (c *Client) sendTestRequestRequiredEmptyStruct(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredEmptyStruct", @@ -11290,7 +11291,7 @@ func (c *Client) sendTestRequestRequiredEmptyStruct(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -11353,11 +11354,11 @@ func (c *Client) sendTestRequestRequiredFormatTest(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredFormatTest", @@ -11370,7 +11371,7 @@ func (c *Client) sendTestRequestRequiredFormatTest(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -11424,11 +11425,11 @@ func (c *Client) sendTestRequestRequiredInteger(ctx context.Context, request int startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredInteger", @@ -11441,7 +11442,7 @@ func (c *Client) sendTestRequestRequiredInteger(ctx context.Context, request int if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -11504,11 +11505,11 @@ func (c *Client) sendTestRequestRequiredIntegerArray(ctx context.Context, reques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerArray", @@ -11521,7 +11522,7 @@ func (c *Client) sendTestRequestRequiredIntegerArray(ctx context.Context, reques if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -11601,11 +11602,11 @@ func (c *Client) sendTestRequestRequiredIntegerArrayArray(ctx context.Context, r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerArrayArray", @@ -11618,7 +11619,7 @@ func (c *Client) sendTestRequestRequiredIntegerArrayArray(ctx context.Context, r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -11672,11 +11673,11 @@ func (c *Client) sendTestRequestRequiredIntegerInt32(ctx context.Context, reques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerInt32", @@ -11689,7 +11690,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt32(ctx context.Context, reques if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -11752,11 +11753,11 @@ func (c *Client) sendTestRequestRequiredIntegerInt32Array(ctx context.Context, r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerInt32Array", @@ -11769,7 +11770,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt32Array(ctx context.Context, r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -11849,11 +11850,11 @@ func (c *Client) sendTestRequestRequiredIntegerInt32ArrayArray(ctx context.Conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerInt32ArrayArray", @@ -11866,7 +11867,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt32ArrayArray(ctx context.Conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -11920,11 +11921,11 @@ func (c *Client) sendTestRequestRequiredIntegerInt32Nullable(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerInt32Nullable", @@ -11937,7 +11938,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt32Nullable(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -12000,11 +12001,11 @@ func (c *Client) sendTestRequestRequiredIntegerInt32NullableArray(ctx context.Co startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerInt32NullableArray", @@ -12017,7 +12018,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt32NullableArray(ctx context.Co if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -12097,11 +12098,11 @@ func (c *Client) sendTestRequestRequiredIntegerInt32NullableArrayArray(ctx conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerInt32NullableArrayArray", @@ -12114,7 +12115,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt32NullableArrayArray(ctx conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -12168,11 +12169,11 @@ func (c *Client) sendTestRequestRequiredIntegerInt64(ctx context.Context, reques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerInt64", @@ -12185,7 +12186,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt64(ctx context.Context, reques if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -12248,11 +12249,11 @@ func (c *Client) sendTestRequestRequiredIntegerInt64Array(ctx context.Context, r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerInt64Array", @@ -12265,7 +12266,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt64Array(ctx context.Context, r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -12345,11 +12346,11 @@ func (c *Client) sendTestRequestRequiredIntegerInt64ArrayArray(ctx context.Conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerInt64ArrayArray", @@ -12362,7 +12363,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt64ArrayArray(ctx context.Conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -12416,11 +12417,11 @@ func (c *Client) sendTestRequestRequiredIntegerInt64Nullable(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerInt64Nullable", @@ -12433,7 +12434,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt64Nullable(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -12496,11 +12497,11 @@ func (c *Client) sendTestRequestRequiredIntegerInt64NullableArray(ctx context.Co startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerInt64NullableArray", @@ -12513,7 +12514,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt64NullableArray(ctx context.Co if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -12593,11 +12594,11 @@ func (c *Client) sendTestRequestRequiredIntegerInt64NullableArrayArray(ctx conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerInt64NullableArrayArray", @@ -12610,7 +12611,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt64NullableArrayArray(ctx conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -12664,11 +12665,11 @@ func (c *Client) sendTestRequestRequiredIntegerNullable(ctx context.Context, req startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerNullable", @@ -12681,7 +12682,7 @@ func (c *Client) sendTestRequestRequiredIntegerNullable(ctx context.Context, req if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -12744,11 +12745,11 @@ func (c *Client) sendTestRequestRequiredIntegerNullableArray(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerNullableArray", @@ -12761,7 +12762,7 @@ func (c *Client) sendTestRequestRequiredIntegerNullableArray(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -12841,11 +12842,11 @@ func (c *Client) sendTestRequestRequiredIntegerNullableArrayArray(ctx context.Co startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerNullableArrayArray", @@ -12858,7 +12859,7 @@ func (c *Client) sendTestRequestRequiredIntegerNullableArrayArray(ctx context.Co if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -12912,11 +12913,11 @@ func (c *Client) sendTestRequestRequiredIntegerUint(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerUint", @@ -12929,7 +12930,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -12983,11 +12984,11 @@ func (c *Client) sendTestRequestRequiredIntegerUint32(ctx context.Context, reque startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerUint32", @@ -13000,7 +13001,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint32(ctx context.Context, reque if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -13063,11 +13064,11 @@ func (c *Client) sendTestRequestRequiredIntegerUint32Array(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerUint32Array", @@ -13080,7 +13081,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint32Array(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -13160,11 +13161,11 @@ func (c *Client) sendTestRequestRequiredIntegerUint32ArrayArray(ctx context.Cont startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerUint32ArrayArray", @@ -13177,7 +13178,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint32ArrayArray(ctx context.Cont if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -13231,11 +13232,11 @@ func (c *Client) sendTestRequestRequiredIntegerUint32Nullable(ctx context.Contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerUint32Nullable", @@ -13248,7 +13249,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint32Nullable(ctx context.Contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -13311,11 +13312,11 @@ func (c *Client) sendTestRequestRequiredIntegerUint32NullableArray(ctx context.C startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerUint32NullableArray", @@ -13328,7 +13329,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint32NullableArray(ctx context.C if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -13408,11 +13409,11 @@ func (c *Client) sendTestRequestRequiredIntegerUint32NullableArrayArray(ctx cont startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerUint32NullableArrayArray", @@ -13425,7 +13426,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint32NullableArrayArray(ctx cont if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -13479,11 +13480,11 @@ func (c *Client) sendTestRequestRequiredIntegerUint64(ctx context.Context, reque startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerUint64", @@ -13496,7 +13497,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint64(ctx context.Context, reque if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -13559,11 +13560,11 @@ func (c *Client) sendTestRequestRequiredIntegerUint64Array(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerUint64Array", @@ -13576,7 +13577,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint64Array(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -13656,11 +13657,11 @@ func (c *Client) sendTestRequestRequiredIntegerUint64ArrayArray(ctx context.Cont startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerUint64ArrayArray", @@ -13673,7 +13674,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint64ArrayArray(ctx context.Cont if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -13727,11 +13728,11 @@ func (c *Client) sendTestRequestRequiredIntegerUint64Nullable(ctx context.Contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerUint64Nullable", @@ -13744,7 +13745,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint64Nullable(ctx context.Contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -13807,11 +13808,11 @@ func (c *Client) sendTestRequestRequiredIntegerUint64NullableArray(ctx context.C startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerUint64NullableArray", @@ -13824,7 +13825,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint64NullableArray(ctx context.C if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -13904,11 +13905,11 @@ func (c *Client) sendTestRequestRequiredIntegerUint64NullableArrayArray(ctx cont startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerUint64NullableArrayArray", @@ -13921,7 +13922,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint64NullableArrayArray(ctx cont if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -13984,11 +13985,11 @@ func (c *Client) sendTestRequestRequiredIntegerUintArray(ctx context.Context, re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerUintArray", @@ -14001,7 +14002,7 @@ func (c *Client) sendTestRequestRequiredIntegerUintArray(ctx context.Context, re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -14081,11 +14082,11 @@ func (c *Client) sendTestRequestRequiredIntegerUintArrayArray(ctx context.Contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerUintArrayArray", @@ -14098,7 +14099,7 @@ func (c *Client) sendTestRequestRequiredIntegerUintArrayArray(ctx context.Contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -14152,11 +14153,11 @@ func (c *Client) sendTestRequestRequiredIntegerUintNullable(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerUintNullable", @@ -14169,7 +14170,7 @@ func (c *Client) sendTestRequestRequiredIntegerUintNullable(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -14232,11 +14233,11 @@ func (c *Client) sendTestRequestRequiredIntegerUintNullableArray(ctx context.Con startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerUintNullableArray", @@ -14249,7 +14250,7 @@ func (c *Client) sendTestRequestRequiredIntegerUintNullableArray(ctx context.Con if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -14329,11 +14330,11 @@ func (c *Client) sendTestRequestRequiredIntegerUintNullableArrayArray(ctx contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerUintNullableArrayArray", @@ -14346,7 +14347,7 @@ func (c *Client) sendTestRequestRequiredIntegerUintNullableArrayArray(ctx contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -14400,11 +14401,11 @@ func (c *Client) sendTestRequestRequiredIntegerUnix(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerUnix", @@ -14417,7 +14418,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnix(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -14480,11 +14481,11 @@ func (c *Client) sendTestRequestRequiredIntegerUnixArray(ctx context.Context, re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerUnixArray", @@ -14497,7 +14498,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixArray(ctx context.Context, re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -14577,11 +14578,11 @@ func (c *Client) sendTestRequestRequiredIntegerUnixArrayArray(ctx context.Contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerUnixArrayArray", @@ -14594,7 +14595,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixArrayArray(ctx context.Contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -14648,11 +14649,11 @@ func (c *Client) sendTestRequestRequiredIntegerUnixMicro(ctx context.Context, re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerUnixMicro", @@ -14665,7 +14666,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixMicro(ctx context.Context, re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -14728,11 +14729,11 @@ func (c *Client) sendTestRequestRequiredIntegerUnixMicroArray(ctx context.Contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerUnixMicroArray", @@ -14745,7 +14746,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixMicroArray(ctx context.Contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -14825,11 +14826,11 @@ func (c *Client) sendTestRequestRequiredIntegerUnixMicroArrayArray(ctx context.C startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerUnixMicroArrayArray", @@ -14842,7 +14843,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixMicroArrayArray(ctx context.C if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -14896,11 +14897,11 @@ func (c *Client) sendTestRequestRequiredIntegerUnixMicroNullable(ctx context.Con startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerUnixMicroNullable", @@ -14913,7 +14914,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixMicroNullable(ctx context.Con if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -14976,11 +14977,11 @@ func (c *Client) sendTestRequestRequiredIntegerUnixMicroNullableArray(ctx contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerUnixMicroNullableArray", @@ -14993,7 +14994,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixMicroNullableArray(ctx contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -15073,11 +15074,11 @@ func (c *Client) sendTestRequestRequiredIntegerUnixMicroNullableArrayArray(ctx c startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerUnixMicroNullableArrayArray", @@ -15090,7 +15091,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixMicroNullableArrayArray(ctx c if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -15144,11 +15145,11 @@ func (c *Client) sendTestRequestRequiredIntegerUnixMilli(ctx context.Context, re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerUnixMilli", @@ -15161,7 +15162,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixMilli(ctx context.Context, re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -15224,11 +15225,11 @@ func (c *Client) sendTestRequestRequiredIntegerUnixMilliArray(ctx context.Contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerUnixMilliArray", @@ -15241,7 +15242,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixMilliArray(ctx context.Contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -15321,11 +15322,11 @@ func (c *Client) sendTestRequestRequiredIntegerUnixMilliArrayArray(ctx context.C startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerUnixMilliArrayArray", @@ -15338,7 +15339,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixMilliArrayArray(ctx context.C if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -15392,11 +15393,11 @@ func (c *Client) sendTestRequestRequiredIntegerUnixMilliNullable(ctx context.Con startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerUnixMilliNullable", @@ -15409,7 +15410,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixMilliNullable(ctx context.Con if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -15472,11 +15473,11 @@ func (c *Client) sendTestRequestRequiredIntegerUnixMilliNullableArray(ctx contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerUnixMilliNullableArray", @@ -15489,7 +15490,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixMilliNullableArray(ctx contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -15569,11 +15570,11 @@ func (c *Client) sendTestRequestRequiredIntegerUnixMilliNullableArrayArray(ctx c startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerUnixMilliNullableArrayArray", @@ -15586,7 +15587,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixMilliNullableArrayArray(ctx c if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -15640,11 +15641,11 @@ func (c *Client) sendTestRequestRequiredIntegerUnixNano(ctx context.Context, req startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerUnixNano", @@ -15657,7 +15658,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixNano(ctx context.Context, req if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -15720,11 +15721,11 @@ func (c *Client) sendTestRequestRequiredIntegerUnixNanoArray(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerUnixNanoArray", @@ -15737,7 +15738,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixNanoArray(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -15817,11 +15818,11 @@ func (c *Client) sendTestRequestRequiredIntegerUnixNanoArrayArray(ctx context.Co startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerUnixNanoArrayArray", @@ -15834,7 +15835,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixNanoArrayArray(ctx context.Co if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -15888,11 +15889,11 @@ func (c *Client) sendTestRequestRequiredIntegerUnixNanoNullable(ctx context.Cont startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerUnixNanoNullable", @@ -15905,7 +15906,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixNanoNullable(ctx context.Cont if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -15968,11 +15969,11 @@ func (c *Client) sendTestRequestRequiredIntegerUnixNanoNullableArray(ctx context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerUnixNanoNullableArray", @@ -15985,7 +15986,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixNanoNullableArray(ctx context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -16065,11 +16066,11 @@ func (c *Client) sendTestRequestRequiredIntegerUnixNanoNullableArrayArray(ctx co startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerUnixNanoNullableArrayArray", @@ -16082,7 +16083,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixNanoNullableArrayArray(ctx co if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -16136,11 +16137,11 @@ func (c *Client) sendTestRequestRequiredIntegerUnixNullable(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerUnixNullable", @@ -16153,7 +16154,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixNullable(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -16216,11 +16217,11 @@ func (c *Client) sendTestRequestRequiredIntegerUnixNullableArray(ctx context.Con startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerUnixNullableArray", @@ -16233,7 +16234,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixNullableArray(ctx context.Con if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -16313,11 +16314,11 @@ func (c *Client) sendTestRequestRequiredIntegerUnixNullableArrayArray(ctx contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerUnixNullableArrayArray", @@ -16330,7 +16331,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixNullableArrayArray(ctx contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -16384,11 +16385,11 @@ func (c *Client) sendTestRequestRequiredIntegerUnixSeconds(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerUnixSeconds", @@ -16401,7 +16402,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixSeconds(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -16464,11 +16465,11 @@ func (c *Client) sendTestRequestRequiredIntegerUnixSecondsArray(ctx context.Cont startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerUnixSecondsArray", @@ -16481,7 +16482,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixSecondsArray(ctx context.Cont if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -16561,11 +16562,11 @@ func (c *Client) sendTestRequestRequiredIntegerUnixSecondsArrayArray(ctx context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerUnixSecondsArrayArray", @@ -16578,7 +16579,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixSecondsArrayArray(ctx context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -16632,11 +16633,11 @@ func (c *Client) sendTestRequestRequiredIntegerUnixSecondsNullable(ctx context.C startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerUnixSecondsNullable", @@ -16649,7 +16650,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixSecondsNullable(ctx context.C if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -16712,11 +16713,11 @@ func (c *Client) sendTestRequestRequiredIntegerUnixSecondsNullableArray(ctx cont startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerUnixSecondsNullableArray", @@ -16729,7 +16730,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixSecondsNullableArray(ctx cont if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -16809,11 +16810,11 @@ func (c *Client) sendTestRequestRequiredIntegerUnixSecondsNullableArrayArray(ctx startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredIntegerUnixSecondsNullableArrayArray", @@ -16826,7 +16827,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixSecondsNullableArrayArray(ctx if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -16880,11 +16881,11 @@ func (c *Client) sendTestRequestRequiredNull(ctx context.Context, request struct startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredNull", @@ -16897,7 +16898,7 @@ func (c *Client) sendTestRequestRequiredNull(ctx context.Context, request struct if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -16960,11 +16961,11 @@ func (c *Client) sendTestRequestRequiredNullArray(ctx context.Context, request [ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredNullArray", @@ -16977,7 +16978,7 @@ func (c *Client) sendTestRequestRequiredNullArray(ctx context.Context, request [ if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -17057,11 +17058,11 @@ func (c *Client) sendTestRequestRequiredNullArrayArray(ctx context.Context, requ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredNullArrayArray", @@ -17074,7 +17075,7 @@ func (c *Client) sendTestRequestRequiredNullArrayArray(ctx context.Context, requ if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -17128,11 +17129,11 @@ func (c *Client) sendTestRequestRequiredNullNullable(ctx context.Context, reques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredNullNullable", @@ -17145,7 +17146,7 @@ func (c *Client) sendTestRequestRequiredNullNullable(ctx context.Context, reques if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -17208,11 +17209,11 @@ func (c *Client) sendTestRequestRequiredNullNullableArray(ctx context.Context, r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredNullNullableArray", @@ -17225,7 +17226,7 @@ func (c *Client) sendTestRequestRequiredNullNullableArray(ctx context.Context, r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -17305,11 +17306,11 @@ func (c *Client) sendTestRequestRequiredNullNullableArrayArray(ctx context.Conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredNullNullableArrayArray", @@ -17322,7 +17323,7 @@ func (c *Client) sendTestRequestRequiredNullNullableArrayArray(ctx context.Conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -17385,11 +17386,11 @@ func (c *Client) sendTestRequestRequiredNumber(ctx context.Context, request floa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredNumber", @@ -17402,7 +17403,7 @@ func (c *Client) sendTestRequestRequiredNumber(ctx context.Context, request floa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -17482,11 +17483,11 @@ func (c *Client) sendTestRequestRequiredNumberArray(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredNumberArray", @@ -17499,7 +17500,7 @@ func (c *Client) sendTestRequestRequiredNumberArray(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -17596,11 +17597,11 @@ func (c *Client) sendTestRequestRequiredNumberArrayArray(ctx context.Context, re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredNumberArrayArray", @@ -17613,7 +17614,7 @@ func (c *Client) sendTestRequestRequiredNumberArrayArray(ctx context.Context, re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -17676,11 +17677,11 @@ func (c *Client) sendTestRequestRequiredNumberDouble(ctx context.Context, reques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredNumberDouble", @@ -17693,7 +17694,7 @@ func (c *Client) sendTestRequestRequiredNumberDouble(ctx context.Context, reques if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -17773,11 +17774,11 @@ func (c *Client) sendTestRequestRequiredNumberDoubleArray(ctx context.Context, r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredNumberDoubleArray", @@ -17790,7 +17791,7 @@ func (c *Client) sendTestRequestRequiredNumberDoubleArray(ctx context.Context, r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -17887,11 +17888,11 @@ func (c *Client) sendTestRequestRequiredNumberDoubleArrayArray(ctx context.Conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredNumberDoubleArrayArray", @@ -17904,7 +17905,7 @@ func (c *Client) sendTestRequestRequiredNumberDoubleArrayArray(ctx context.Conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -17967,11 +17968,11 @@ func (c *Client) sendTestRequestRequiredNumberDoubleNullable(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredNumberDoubleNullable", @@ -17984,7 +17985,7 @@ func (c *Client) sendTestRequestRequiredNumberDoubleNullable(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -18064,11 +18065,11 @@ func (c *Client) sendTestRequestRequiredNumberDoubleNullableArray(ctx context.Co startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredNumberDoubleNullableArray", @@ -18081,7 +18082,7 @@ func (c *Client) sendTestRequestRequiredNumberDoubleNullableArray(ctx context.Co if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -18178,11 +18179,11 @@ func (c *Client) sendTestRequestRequiredNumberDoubleNullableArrayArray(ctx conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredNumberDoubleNullableArrayArray", @@ -18195,7 +18196,7 @@ func (c *Client) sendTestRequestRequiredNumberDoubleNullableArrayArray(ctx conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -18258,11 +18259,11 @@ func (c *Client) sendTestRequestRequiredNumberFloat(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredNumberFloat", @@ -18275,7 +18276,7 @@ func (c *Client) sendTestRequestRequiredNumberFloat(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -18355,11 +18356,11 @@ func (c *Client) sendTestRequestRequiredNumberFloatArray(ctx context.Context, re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredNumberFloatArray", @@ -18372,7 +18373,7 @@ func (c *Client) sendTestRequestRequiredNumberFloatArray(ctx context.Context, re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -18469,11 +18470,11 @@ func (c *Client) sendTestRequestRequiredNumberFloatArrayArray(ctx context.Contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredNumberFloatArrayArray", @@ -18486,7 +18487,7 @@ func (c *Client) sendTestRequestRequiredNumberFloatArrayArray(ctx context.Contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -18549,11 +18550,11 @@ func (c *Client) sendTestRequestRequiredNumberFloatNullable(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredNumberFloatNullable", @@ -18566,7 +18567,7 @@ func (c *Client) sendTestRequestRequiredNumberFloatNullable(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -18646,11 +18647,11 @@ func (c *Client) sendTestRequestRequiredNumberFloatNullableArray(ctx context.Con startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredNumberFloatNullableArray", @@ -18663,7 +18664,7 @@ func (c *Client) sendTestRequestRequiredNumberFloatNullableArray(ctx context.Con if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -18760,11 +18761,11 @@ func (c *Client) sendTestRequestRequiredNumberFloatNullableArrayArray(ctx contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredNumberFloatNullableArrayArray", @@ -18777,7 +18778,7 @@ func (c *Client) sendTestRequestRequiredNumberFloatNullableArrayArray(ctx contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -18831,11 +18832,11 @@ func (c *Client) sendTestRequestRequiredNumberInt32(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredNumberInt32", @@ -18848,7 +18849,7 @@ func (c *Client) sendTestRequestRequiredNumberInt32(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -18911,11 +18912,11 @@ func (c *Client) sendTestRequestRequiredNumberInt32Array(ctx context.Context, re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredNumberInt32Array", @@ -18928,7 +18929,7 @@ func (c *Client) sendTestRequestRequiredNumberInt32Array(ctx context.Context, re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -19008,11 +19009,11 @@ func (c *Client) sendTestRequestRequiredNumberInt32ArrayArray(ctx context.Contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredNumberInt32ArrayArray", @@ -19025,7 +19026,7 @@ func (c *Client) sendTestRequestRequiredNumberInt32ArrayArray(ctx context.Contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -19079,11 +19080,11 @@ func (c *Client) sendTestRequestRequiredNumberInt32Nullable(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredNumberInt32Nullable", @@ -19096,7 +19097,7 @@ func (c *Client) sendTestRequestRequiredNumberInt32Nullable(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -19159,11 +19160,11 @@ func (c *Client) sendTestRequestRequiredNumberInt32NullableArray(ctx context.Con startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredNumberInt32NullableArray", @@ -19176,7 +19177,7 @@ func (c *Client) sendTestRequestRequiredNumberInt32NullableArray(ctx context.Con if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -19256,11 +19257,11 @@ func (c *Client) sendTestRequestRequiredNumberInt32NullableArrayArray(ctx contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredNumberInt32NullableArrayArray", @@ -19273,7 +19274,7 @@ func (c *Client) sendTestRequestRequiredNumberInt32NullableArrayArray(ctx contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -19327,11 +19328,11 @@ func (c *Client) sendTestRequestRequiredNumberInt64(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredNumberInt64", @@ -19344,7 +19345,7 @@ func (c *Client) sendTestRequestRequiredNumberInt64(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -19407,11 +19408,11 @@ func (c *Client) sendTestRequestRequiredNumberInt64Array(ctx context.Context, re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredNumberInt64Array", @@ -19424,7 +19425,7 @@ func (c *Client) sendTestRequestRequiredNumberInt64Array(ctx context.Context, re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -19504,11 +19505,11 @@ func (c *Client) sendTestRequestRequiredNumberInt64ArrayArray(ctx context.Contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredNumberInt64ArrayArray", @@ -19521,7 +19522,7 @@ func (c *Client) sendTestRequestRequiredNumberInt64ArrayArray(ctx context.Contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -19575,11 +19576,11 @@ func (c *Client) sendTestRequestRequiredNumberInt64Nullable(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredNumberInt64Nullable", @@ -19592,7 +19593,7 @@ func (c *Client) sendTestRequestRequiredNumberInt64Nullable(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -19655,11 +19656,11 @@ func (c *Client) sendTestRequestRequiredNumberInt64NullableArray(ctx context.Con startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredNumberInt64NullableArray", @@ -19672,7 +19673,7 @@ func (c *Client) sendTestRequestRequiredNumberInt64NullableArray(ctx context.Con if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -19752,11 +19753,11 @@ func (c *Client) sendTestRequestRequiredNumberInt64NullableArrayArray(ctx contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredNumberInt64NullableArrayArray", @@ -19769,7 +19770,7 @@ func (c *Client) sendTestRequestRequiredNumberInt64NullableArrayArray(ctx contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -19832,11 +19833,11 @@ func (c *Client) sendTestRequestRequiredNumberNullable(ctx context.Context, requ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredNumberNullable", @@ -19849,7 +19850,7 @@ func (c *Client) sendTestRequestRequiredNumberNullable(ctx context.Context, requ if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -19929,11 +19930,11 @@ func (c *Client) sendTestRequestRequiredNumberNullableArray(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredNumberNullableArray", @@ -19946,7 +19947,7 @@ func (c *Client) sendTestRequestRequiredNumberNullableArray(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -20043,11 +20044,11 @@ func (c *Client) sendTestRequestRequiredNumberNullableArrayArray(ctx context.Con startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredNumberNullableArrayArray", @@ -20060,7 +20061,7 @@ func (c *Client) sendTestRequestRequiredNumberNullableArrayArray(ctx context.Con if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -20114,11 +20115,11 @@ func (c *Client) sendTestRequestRequiredString(ctx context.Context, request stri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredString", @@ -20131,7 +20132,7 @@ func (c *Client) sendTestRequestRequiredString(ctx context.Context, request stri if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -20194,11 +20195,11 @@ func (c *Client) sendTestRequestRequiredStringArray(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringArray", @@ -20211,7 +20212,7 @@ func (c *Client) sendTestRequestRequiredStringArray(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -20291,11 +20292,11 @@ func (c *Client) sendTestRequestRequiredStringArrayArray(ctx context.Context, re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringArrayArray", @@ -20308,7 +20309,7 @@ func (c *Client) sendTestRequestRequiredStringArrayArray(ctx context.Context, re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -20362,11 +20363,11 @@ func (c *Client) sendTestRequestRequiredStringBase64(ctx context.Context, reques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringBase64", @@ -20379,7 +20380,7 @@ func (c *Client) sendTestRequestRequiredStringBase64(ctx context.Context, reques if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -20442,11 +20443,11 @@ func (c *Client) sendTestRequestRequiredStringBase64Array(ctx context.Context, r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringBase64Array", @@ -20459,7 +20460,7 @@ func (c *Client) sendTestRequestRequiredStringBase64Array(ctx context.Context, r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -20539,11 +20540,11 @@ func (c *Client) sendTestRequestRequiredStringBase64ArrayArray(ctx context.Conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringBase64ArrayArray", @@ -20556,7 +20557,7 @@ func (c *Client) sendTestRequestRequiredStringBase64ArrayArray(ctx context.Conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -20610,11 +20611,11 @@ func (c *Client) sendTestRequestRequiredStringBase64Nullable(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringBase64Nullable", @@ -20627,7 +20628,7 @@ func (c *Client) sendTestRequestRequiredStringBase64Nullable(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -20690,11 +20691,11 @@ func (c *Client) sendTestRequestRequiredStringBase64NullableArray(ctx context.Co startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringBase64NullableArray", @@ -20707,7 +20708,7 @@ func (c *Client) sendTestRequestRequiredStringBase64NullableArray(ctx context.Co if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -20787,11 +20788,11 @@ func (c *Client) sendTestRequestRequiredStringBase64NullableArrayArray(ctx conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringBase64NullableArrayArray", @@ -20804,7 +20805,7 @@ func (c *Client) sendTestRequestRequiredStringBase64NullableArrayArray(ctx conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -20858,11 +20859,11 @@ func (c *Client) sendTestRequestRequiredStringBinary(ctx context.Context, reques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringBinary", @@ -20875,7 +20876,7 @@ func (c *Client) sendTestRequestRequiredStringBinary(ctx context.Context, reques if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -20938,11 +20939,11 @@ func (c *Client) sendTestRequestRequiredStringBinaryArray(ctx context.Context, r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringBinaryArray", @@ -20955,7 +20956,7 @@ func (c *Client) sendTestRequestRequiredStringBinaryArray(ctx context.Context, r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -21035,11 +21036,11 @@ func (c *Client) sendTestRequestRequiredStringBinaryArrayArray(ctx context.Conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringBinaryArrayArray", @@ -21052,7 +21053,7 @@ func (c *Client) sendTestRequestRequiredStringBinaryArrayArray(ctx context.Conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -21106,11 +21107,11 @@ func (c *Client) sendTestRequestRequiredStringBinaryNullable(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringBinaryNullable", @@ -21123,7 +21124,7 @@ func (c *Client) sendTestRequestRequiredStringBinaryNullable(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -21186,11 +21187,11 @@ func (c *Client) sendTestRequestRequiredStringBinaryNullableArray(ctx context.Co startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringBinaryNullableArray", @@ -21203,7 +21204,7 @@ func (c *Client) sendTestRequestRequiredStringBinaryNullableArray(ctx context.Co if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -21283,11 +21284,11 @@ func (c *Client) sendTestRequestRequiredStringBinaryNullableArrayArray(ctx conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringBinaryNullableArrayArray", @@ -21300,7 +21301,7 @@ func (c *Client) sendTestRequestRequiredStringBinaryNullableArrayArray(ctx conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -21354,11 +21355,11 @@ func (c *Client) sendTestRequestRequiredStringByte(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringByte", @@ -21371,7 +21372,7 @@ func (c *Client) sendTestRequestRequiredStringByte(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -21434,11 +21435,11 @@ func (c *Client) sendTestRequestRequiredStringByteArray(ctx context.Context, req startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringByteArray", @@ -21451,7 +21452,7 @@ func (c *Client) sendTestRequestRequiredStringByteArray(ctx context.Context, req if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -21531,11 +21532,11 @@ func (c *Client) sendTestRequestRequiredStringByteArrayArray(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringByteArrayArray", @@ -21548,7 +21549,7 @@ func (c *Client) sendTestRequestRequiredStringByteArrayArray(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -21602,11 +21603,11 @@ func (c *Client) sendTestRequestRequiredStringByteNullable(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringByteNullable", @@ -21619,7 +21620,7 @@ func (c *Client) sendTestRequestRequiredStringByteNullable(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -21682,11 +21683,11 @@ func (c *Client) sendTestRequestRequiredStringByteNullableArray(ctx context.Cont startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringByteNullableArray", @@ -21699,7 +21700,7 @@ func (c *Client) sendTestRequestRequiredStringByteNullableArray(ctx context.Cont if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -21779,11 +21780,11 @@ func (c *Client) sendTestRequestRequiredStringByteNullableArrayArray(ctx context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringByteNullableArrayArray", @@ -21796,7 +21797,7 @@ func (c *Client) sendTestRequestRequiredStringByteNullableArrayArray(ctx context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -21850,11 +21851,11 @@ func (c *Client) sendTestRequestRequiredStringDate(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringDate", @@ -21867,7 +21868,7 @@ func (c *Client) sendTestRequestRequiredStringDate(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -21930,11 +21931,11 @@ func (c *Client) sendTestRequestRequiredStringDateArray(ctx context.Context, req startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringDateArray", @@ -21947,7 +21948,7 @@ func (c *Client) sendTestRequestRequiredStringDateArray(ctx context.Context, req if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -22027,11 +22028,11 @@ func (c *Client) sendTestRequestRequiredStringDateArrayArray(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringDateArrayArray", @@ -22044,7 +22045,7 @@ func (c *Client) sendTestRequestRequiredStringDateArrayArray(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -22098,11 +22099,11 @@ func (c *Client) sendTestRequestRequiredStringDateNullable(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringDateNullable", @@ -22115,7 +22116,7 @@ func (c *Client) sendTestRequestRequiredStringDateNullable(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -22178,11 +22179,11 @@ func (c *Client) sendTestRequestRequiredStringDateNullableArray(ctx context.Cont startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringDateNullableArray", @@ -22195,7 +22196,7 @@ func (c *Client) sendTestRequestRequiredStringDateNullableArray(ctx context.Cont if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -22275,11 +22276,11 @@ func (c *Client) sendTestRequestRequiredStringDateNullableArrayArray(ctx context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringDateNullableArrayArray", @@ -22292,7 +22293,7 @@ func (c *Client) sendTestRequestRequiredStringDateNullableArrayArray(ctx context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -22346,11 +22347,11 @@ func (c *Client) sendTestRequestRequiredStringDateTime(ctx context.Context, requ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringDateTime", @@ -22363,7 +22364,7 @@ func (c *Client) sendTestRequestRequiredStringDateTime(ctx context.Context, requ if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -22426,11 +22427,11 @@ func (c *Client) sendTestRequestRequiredStringDateTimeArray(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringDateTimeArray", @@ -22443,7 +22444,7 @@ func (c *Client) sendTestRequestRequiredStringDateTimeArray(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -22523,11 +22524,11 @@ func (c *Client) sendTestRequestRequiredStringDateTimeArrayArray(ctx context.Con startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringDateTimeArrayArray", @@ -22540,7 +22541,7 @@ func (c *Client) sendTestRequestRequiredStringDateTimeArrayArray(ctx context.Con if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -22594,11 +22595,11 @@ func (c *Client) sendTestRequestRequiredStringDateTimeNullable(ctx context.Conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringDateTimeNullable", @@ -22611,7 +22612,7 @@ func (c *Client) sendTestRequestRequiredStringDateTimeNullable(ctx context.Conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -22674,11 +22675,11 @@ func (c *Client) sendTestRequestRequiredStringDateTimeNullableArray(ctx context. startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringDateTimeNullableArray", @@ -22691,7 +22692,7 @@ func (c *Client) sendTestRequestRequiredStringDateTimeNullableArray(ctx context. if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -22771,11 +22772,11 @@ func (c *Client) sendTestRequestRequiredStringDateTimeNullableArrayArray(ctx con startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringDateTimeNullableArrayArray", @@ -22788,7 +22789,7 @@ func (c *Client) sendTestRequestRequiredStringDateTimeNullableArrayArray(ctx con if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -22842,11 +22843,11 @@ func (c *Client) sendTestRequestRequiredStringDuration(ctx context.Context, requ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringDuration", @@ -22859,7 +22860,7 @@ func (c *Client) sendTestRequestRequiredStringDuration(ctx context.Context, requ if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -22922,11 +22923,11 @@ func (c *Client) sendTestRequestRequiredStringDurationArray(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringDurationArray", @@ -22939,7 +22940,7 @@ func (c *Client) sendTestRequestRequiredStringDurationArray(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -23019,11 +23020,11 @@ func (c *Client) sendTestRequestRequiredStringDurationArrayArray(ctx context.Con startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringDurationArrayArray", @@ -23036,7 +23037,7 @@ func (c *Client) sendTestRequestRequiredStringDurationArrayArray(ctx context.Con if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -23090,11 +23091,11 @@ func (c *Client) sendTestRequestRequiredStringDurationNullable(ctx context.Conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringDurationNullable", @@ -23107,7 +23108,7 @@ func (c *Client) sendTestRequestRequiredStringDurationNullable(ctx context.Conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -23170,11 +23171,11 @@ func (c *Client) sendTestRequestRequiredStringDurationNullableArray(ctx context. startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringDurationNullableArray", @@ -23187,7 +23188,7 @@ func (c *Client) sendTestRequestRequiredStringDurationNullableArray(ctx context. if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -23267,11 +23268,11 @@ func (c *Client) sendTestRequestRequiredStringDurationNullableArrayArray(ctx con startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringDurationNullableArrayArray", @@ -23284,7 +23285,7 @@ func (c *Client) sendTestRequestRequiredStringDurationNullableArrayArray(ctx con if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -23355,11 +23356,11 @@ func (c *Client) sendTestRequestRequiredStringEmail(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringEmail", @@ -23372,7 +23373,7 @@ func (c *Client) sendTestRequestRequiredStringEmail(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -23460,11 +23461,11 @@ func (c *Client) sendTestRequestRequiredStringEmailArray(ctx context.Context, re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringEmailArray", @@ -23477,7 +23478,7 @@ func (c *Client) sendTestRequestRequiredStringEmailArray(ctx context.Context, re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -23582,11 +23583,11 @@ func (c *Client) sendTestRequestRequiredStringEmailArrayArray(ctx context.Contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringEmailArrayArray", @@ -23599,7 +23600,7 @@ func (c *Client) sendTestRequestRequiredStringEmailArrayArray(ctx context.Contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -23670,11 +23671,11 @@ func (c *Client) sendTestRequestRequiredStringEmailNullable(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringEmailNullable", @@ -23687,7 +23688,7 @@ func (c *Client) sendTestRequestRequiredStringEmailNullable(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -23775,11 +23776,11 @@ func (c *Client) sendTestRequestRequiredStringEmailNullableArray(ctx context.Con startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringEmailNullableArray", @@ -23792,7 +23793,7 @@ func (c *Client) sendTestRequestRequiredStringEmailNullableArray(ctx context.Con if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -23897,11 +23898,11 @@ func (c *Client) sendTestRequestRequiredStringEmailNullableArrayArray(ctx contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringEmailNullableArrayArray", @@ -23914,7 +23915,7 @@ func (c *Client) sendTestRequestRequiredStringEmailNullableArrayArray(ctx contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -23985,11 +23986,11 @@ func (c *Client) sendTestRequestRequiredStringHostname(ctx context.Context, requ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringHostname", @@ -24002,7 +24003,7 @@ func (c *Client) sendTestRequestRequiredStringHostname(ctx context.Context, requ if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -24090,11 +24091,11 @@ func (c *Client) sendTestRequestRequiredStringHostnameArray(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringHostnameArray", @@ -24107,7 +24108,7 @@ func (c *Client) sendTestRequestRequiredStringHostnameArray(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -24212,11 +24213,11 @@ func (c *Client) sendTestRequestRequiredStringHostnameArrayArray(ctx context.Con startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringHostnameArrayArray", @@ -24229,7 +24230,7 @@ func (c *Client) sendTestRequestRequiredStringHostnameArrayArray(ctx context.Con if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -24300,11 +24301,11 @@ func (c *Client) sendTestRequestRequiredStringHostnameNullable(ctx context.Conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringHostnameNullable", @@ -24317,7 +24318,7 @@ func (c *Client) sendTestRequestRequiredStringHostnameNullable(ctx context.Conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -24405,11 +24406,11 @@ func (c *Client) sendTestRequestRequiredStringHostnameNullableArray(ctx context. startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringHostnameNullableArray", @@ -24422,7 +24423,7 @@ func (c *Client) sendTestRequestRequiredStringHostnameNullableArray(ctx context. if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -24527,11 +24528,11 @@ func (c *Client) sendTestRequestRequiredStringHostnameNullableArrayArray(ctx con startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringHostnameNullableArrayArray", @@ -24544,7 +24545,7 @@ func (c *Client) sendTestRequestRequiredStringHostnameNullableArrayArray(ctx con if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -24598,11 +24599,11 @@ func (c *Client) sendTestRequestRequiredStringIP(ctx context.Context, request ne startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringIP", @@ -24615,7 +24616,7 @@ func (c *Client) sendTestRequestRequiredStringIP(ctx context.Context, request ne if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -24678,11 +24679,11 @@ func (c *Client) sendTestRequestRequiredStringIPArray(ctx context.Context, reque startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringIPArray", @@ -24695,7 +24696,7 @@ func (c *Client) sendTestRequestRequiredStringIPArray(ctx context.Context, reque if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -24775,11 +24776,11 @@ func (c *Client) sendTestRequestRequiredStringIPArrayArray(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringIPArrayArray", @@ -24792,7 +24793,7 @@ func (c *Client) sendTestRequestRequiredStringIPArrayArray(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -24846,11 +24847,11 @@ func (c *Client) sendTestRequestRequiredStringIPNullable(ctx context.Context, re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringIPNullable", @@ -24863,7 +24864,7 @@ func (c *Client) sendTestRequestRequiredStringIPNullable(ctx context.Context, re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -24926,11 +24927,11 @@ func (c *Client) sendTestRequestRequiredStringIPNullableArray(ctx context.Contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringIPNullableArray", @@ -24943,7 +24944,7 @@ func (c *Client) sendTestRequestRequiredStringIPNullableArray(ctx context.Contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -25023,11 +25024,11 @@ func (c *Client) sendTestRequestRequiredStringIPNullableArrayArray(ctx context.C startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringIPNullableArrayArray", @@ -25040,7 +25041,7 @@ func (c *Client) sendTestRequestRequiredStringIPNullableArrayArray(ctx context.C if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -25094,11 +25095,11 @@ func (c *Client) sendTestRequestRequiredStringInt32(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringInt32", @@ -25111,7 +25112,7 @@ func (c *Client) sendTestRequestRequiredStringInt32(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -25174,11 +25175,11 @@ func (c *Client) sendTestRequestRequiredStringInt32Array(ctx context.Context, re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringInt32Array", @@ -25191,7 +25192,7 @@ func (c *Client) sendTestRequestRequiredStringInt32Array(ctx context.Context, re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -25271,11 +25272,11 @@ func (c *Client) sendTestRequestRequiredStringInt32ArrayArray(ctx context.Contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringInt32ArrayArray", @@ -25288,7 +25289,7 @@ func (c *Client) sendTestRequestRequiredStringInt32ArrayArray(ctx context.Contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -25342,11 +25343,11 @@ func (c *Client) sendTestRequestRequiredStringInt32Nullable(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringInt32Nullable", @@ -25359,7 +25360,7 @@ func (c *Client) sendTestRequestRequiredStringInt32Nullable(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -25422,11 +25423,11 @@ func (c *Client) sendTestRequestRequiredStringInt32NullableArray(ctx context.Con startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringInt32NullableArray", @@ -25439,7 +25440,7 @@ func (c *Client) sendTestRequestRequiredStringInt32NullableArray(ctx context.Con if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -25519,11 +25520,11 @@ func (c *Client) sendTestRequestRequiredStringInt32NullableArrayArray(ctx contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringInt32NullableArrayArray", @@ -25536,7 +25537,7 @@ func (c *Client) sendTestRequestRequiredStringInt32NullableArrayArray(ctx contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -25590,11 +25591,11 @@ func (c *Client) sendTestRequestRequiredStringInt64(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringInt64", @@ -25607,7 +25608,7 @@ func (c *Client) sendTestRequestRequiredStringInt64(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -25670,11 +25671,11 @@ func (c *Client) sendTestRequestRequiredStringInt64Array(ctx context.Context, re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringInt64Array", @@ -25687,7 +25688,7 @@ func (c *Client) sendTestRequestRequiredStringInt64Array(ctx context.Context, re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -25767,11 +25768,11 @@ func (c *Client) sendTestRequestRequiredStringInt64ArrayArray(ctx context.Contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringInt64ArrayArray", @@ -25784,7 +25785,7 @@ func (c *Client) sendTestRequestRequiredStringInt64ArrayArray(ctx context.Contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -25838,11 +25839,11 @@ func (c *Client) sendTestRequestRequiredStringInt64Nullable(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringInt64Nullable", @@ -25855,7 +25856,7 @@ func (c *Client) sendTestRequestRequiredStringInt64Nullable(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -25918,11 +25919,11 @@ func (c *Client) sendTestRequestRequiredStringInt64NullableArray(ctx context.Con startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringInt64NullableArray", @@ -25935,7 +25936,7 @@ func (c *Client) sendTestRequestRequiredStringInt64NullableArray(ctx context.Con if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -26015,11 +26016,11 @@ func (c *Client) sendTestRequestRequiredStringInt64NullableArrayArray(ctx contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringInt64NullableArrayArray", @@ -26032,7 +26033,7 @@ func (c *Client) sendTestRequestRequiredStringInt64NullableArrayArray(ctx contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -26086,11 +26087,11 @@ func (c *Client) sendTestRequestRequiredStringIpv4(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringIpv4", @@ -26103,7 +26104,7 @@ func (c *Client) sendTestRequestRequiredStringIpv4(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -26166,11 +26167,11 @@ func (c *Client) sendTestRequestRequiredStringIpv4Array(ctx context.Context, req startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringIpv4Array", @@ -26183,7 +26184,7 @@ func (c *Client) sendTestRequestRequiredStringIpv4Array(ctx context.Context, req if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -26263,11 +26264,11 @@ func (c *Client) sendTestRequestRequiredStringIpv4ArrayArray(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringIpv4ArrayArray", @@ -26280,7 +26281,7 @@ func (c *Client) sendTestRequestRequiredStringIpv4ArrayArray(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -26334,11 +26335,11 @@ func (c *Client) sendTestRequestRequiredStringIpv4Nullable(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringIpv4Nullable", @@ -26351,7 +26352,7 @@ func (c *Client) sendTestRequestRequiredStringIpv4Nullable(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -26414,11 +26415,11 @@ func (c *Client) sendTestRequestRequiredStringIpv4NullableArray(ctx context.Cont startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringIpv4NullableArray", @@ -26431,7 +26432,7 @@ func (c *Client) sendTestRequestRequiredStringIpv4NullableArray(ctx context.Cont if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -26511,11 +26512,11 @@ func (c *Client) sendTestRequestRequiredStringIpv4NullableArrayArray(ctx context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringIpv4NullableArrayArray", @@ -26528,7 +26529,7 @@ func (c *Client) sendTestRequestRequiredStringIpv4NullableArrayArray(ctx context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -26582,11 +26583,11 @@ func (c *Client) sendTestRequestRequiredStringIpv6(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringIpv6", @@ -26599,7 +26600,7 @@ func (c *Client) sendTestRequestRequiredStringIpv6(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -26662,11 +26663,11 @@ func (c *Client) sendTestRequestRequiredStringIpv6Array(ctx context.Context, req startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringIpv6Array", @@ -26679,7 +26680,7 @@ func (c *Client) sendTestRequestRequiredStringIpv6Array(ctx context.Context, req if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -26759,11 +26760,11 @@ func (c *Client) sendTestRequestRequiredStringIpv6ArrayArray(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringIpv6ArrayArray", @@ -26776,7 +26777,7 @@ func (c *Client) sendTestRequestRequiredStringIpv6ArrayArray(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -26830,11 +26831,11 @@ func (c *Client) sendTestRequestRequiredStringIpv6Nullable(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringIpv6Nullable", @@ -26847,7 +26848,7 @@ func (c *Client) sendTestRequestRequiredStringIpv6Nullable(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -26910,11 +26911,11 @@ func (c *Client) sendTestRequestRequiredStringIpv6NullableArray(ctx context.Cont startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringIpv6NullableArray", @@ -26927,7 +26928,7 @@ func (c *Client) sendTestRequestRequiredStringIpv6NullableArray(ctx context.Cont if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -27007,11 +27008,11 @@ func (c *Client) sendTestRequestRequiredStringIpv6NullableArrayArray(ctx context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringIpv6NullableArrayArray", @@ -27024,7 +27025,7 @@ func (c *Client) sendTestRequestRequiredStringIpv6NullableArrayArray(ctx context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -27078,11 +27079,11 @@ func (c *Client) sendTestRequestRequiredStringNullable(ctx context.Context, requ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringNullable", @@ -27095,7 +27096,7 @@ func (c *Client) sendTestRequestRequiredStringNullable(ctx context.Context, requ if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -27158,11 +27159,11 @@ func (c *Client) sendTestRequestRequiredStringNullableArray(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringNullableArray", @@ -27175,7 +27176,7 @@ func (c *Client) sendTestRequestRequiredStringNullableArray(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -27255,11 +27256,11 @@ func (c *Client) sendTestRequestRequiredStringNullableArrayArray(ctx context.Con startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringNullableArrayArray", @@ -27272,7 +27273,7 @@ func (c *Client) sendTestRequestRequiredStringNullableArrayArray(ctx context.Con if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -27326,11 +27327,11 @@ func (c *Client) sendTestRequestRequiredStringPassword(ctx context.Context, requ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringPassword", @@ -27343,7 +27344,7 @@ func (c *Client) sendTestRequestRequiredStringPassword(ctx context.Context, requ if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -27406,11 +27407,11 @@ func (c *Client) sendTestRequestRequiredStringPasswordArray(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringPasswordArray", @@ -27423,7 +27424,7 @@ func (c *Client) sendTestRequestRequiredStringPasswordArray(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -27503,11 +27504,11 @@ func (c *Client) sendTestRequestRequiredStringPasswordArrayArray(ctx context.Con startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringPasswordArrayArray", @@ -27520,7 +27521,7 @@ func (c *Client) sendTestRequestRequiredStringPasswordArrayArray(ctx context.Con if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -27574,11 +27575,11 @@ func (c *Client) sendTestRequestRequiredStringPasswordNullable(ctx context.Conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringPasswordNullable", @@ -27591,7 +27592,7 @@ func (c *Client) sendTestRequestRequiredStringPasswordNullable(ctx context.Conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -27654,11 +27655,11 @@ func (c *Client) sendTestRequestRequiredStringPasswordNullableArray(ctx context. startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringPasswordNullableArray", @@ -27671,7 +27672,7 @@ func (c *Client) sendTestRequestRequiredStringPasswordNullableArray(ctx context. if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -27751,11 +27752,11 @@ func (c *Client) sendTestRequestRequiredStringPasswordNullableArrayArray(ctx con startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringPasswordNullableArrayArray", @@ -27768,7 +27769,7 @@ func (c *Client) sendTestRequestRequiredStringPasswordNullableArrayArray(ctx con if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -27822,11 +27823,11 @@ func (c *Client) sendTestRequestRequiredStringTime(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringTime", @@ -27839,7 +27840,7 @@ func (c *Client) sendTestRequestRequiredStringTime(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -27902,11 +27903,11 @@ func (c *Client) sendTestRequestRequiredStringTimeArray(ctx context.Context, req startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringTimeArray", @@ -27919,7 +27920,7 @@ func (c *Client) sendTestRequestRequiredStringTimeArray(ctx context.Context, req if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -27999,11 +28000,11 @@ func (c *Client) sendTestRequestRequiredStringTimeArrayArray(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringTimeArrayArray", @@ -28016,7 +28017,7 @@ func (c *Client) sendTestRequestRequiredStringTimeArrayArray(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -28070,11 +28071,11 @@ func (c *Client) sendTestRequestRequiredStringTimeNullable(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringTimeNullable", @@ -28087,7 +28088,7 @@ func (c *Client) sendTestRequestRequiredStringTimeNullable(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -28150,11 +28151,11 @@ func (c *Client) sendTestRequestRequiredStringTimeNullableArray(ctx context.Cont startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringTimeNullableArray", @@ -28167,7 +28168,7 @@ func (c *Client) sendTestRequestRequiredStringTimeNullableArray(ctx context.Cont if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -28247,11 +28248,11 @@ func (c *Client) sendTestRequestRequiredStringTimeNullableArrayArray(ctx context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringTimeNullableArrayArray", @@ -28264,7 +28265,7 @@ func (c *Client) sendTestRequestRequiredStringTimeNullableArrayArray(ctx context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -28318,11 +28319,11 @@ func (c *Client) sendTestRequestRequiredStringURI(ctx context.Context, request u startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringURI", @@ -28335,7 +28336,7 @@ func (c *Client) sendTestRequestRequiredStringURI(ctx context.Context, request u if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -28398,11 +28399,11 @@ func (c *Client) sendTestRequestRequiredStringURIArray(ctx context.Context, requ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringURIArray", @@ -28415,7 +28416,7 @@ func (c *Client) sendTestRequestRequiredStringURIArray(ctx context.Context, requ if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -28495,11 +28496,11 @@ func (c *Client) sendTestRequestRequiredStringURIArrayArray(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringURIArrayArray", @@ -28512,7 +28513,7 @@ func (c *Client) sendTestRequestRequiredStringURIArrayArray(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -28566,11 +28567,11 @@ func (c *Client) sendTestRequestRequiredStringURINullable(ctx context.Context, r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringURINullable", @@ -28583,7 +28584,7 @@ func (c *Client) sendTestRequestRequiredStringURINullable(ctx context.Context, r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -28646,11 +28647,11 @@ func (c *Client) sendTestRequestRequiredStringURINullableArray(ctx context.Conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringURINullableArray", @@ -28663,7 +28664,7 @@ func (c *Client) sendTestRequestRequiredStringURINullableArray(ctx context.Conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -28743,11 +28744,11 @@ func (c *Client) sendTestRequestRequiredStringURINullableArrayArray(ctx context. startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringURINullableArrayArray", @@ -28760,7 +28761,7 @@ func (c *Client) sendTestRequestRequiredStringURINullableArrayArray(ctx context. if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -28814,11 +28815,11 @@ func (c *Client) sendTestRequestRequiredStringUUID(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringUUID", @@ -28831,7 +28832,7 @@ func (c *Client) sendTestRequestRequiredStringUUID(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -28894,11 +28895,11 @@ func (c *Client) sendTestRequestRequiredStringUUIDArray(ctx context.Context, req startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringUUIDArray", @@ -28911,7 +28912,7 @@ func (c *Client) sendTestRequestRequiredStringUUIDArray(ctx context.Context, req if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -28991,11 +28992,11 @@ func (c *Client) sendTestRequestRequiredStringUUIDArrayArray(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringUUIDArrayArray", @@ -29008,7 +29009,7 @@ func (c *Client) sendTestRequestRequiredStringUUIDArrayArray(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -29062,11 +29063,11 @@ func (c *Client) sendTestRequestRequiredStringUUIDNullable(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringUUIDNullable", @@ -29079,7 +29080,7 @@ func (c *Client) sendTestRequestRequiredStringUUIDNullable(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -29142,11 +29143,11 @@ func (c *Client) sendTestRequestRequiredStringUUIDNullableArray(ctx context.Cont startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringUUIDNullableArray", @@ -29159,7 +29160,7 @@ func (c *Client) sendTestRequestRequiredStringUUIDNullableArray(ctx context.Cont if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -29239,11 +29240,11 @@ func (c *Client) sendTestRequestRequiredStringUUIDNullableArrayArray(ctx context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringUUIDNullableArrayArray", @@ -29256,7 +29257,7 @@ func (c *Client) sendTestRequestRequiredStringUUIDNullableArrayArray(ctx context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -29310,11 +29311,11 @@ func (c *Client) sendTestRequestRequiredStringUnix(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringUnix", @@ -29327,7 +29328,7 @@ func (c *Client) sendTestRequestRequiredStringUnix(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -29390,11 +29391,11 @@ func (c *Client) sendTestRequestRequiredStringUnixArray(ctx context.Context, req startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringUnixArray", @@ -29407,7 +29408,7 @@ func (c *Client) sendTestRequestRequiredStringUnixArray(ctx context.Context, req if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -29487,11 +29488,11 @@ func (c *Client) sendTestRequestRequiredStringUnixArrayArray(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringUnixArrayArray", @@ -29504,7 +29505,7 @@ func (c *Client) sendTestRequestRequiredStringUnixArrayArray(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -29558,11 +29559,11 @@ func (c *Client) sendTestRequestRequiredStringUnixMicro(ctx context.Context, req startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringUnixMicro", @@ -29575,7 +29576,7 @@ func (c *Client) sendTestRequestRequiredStringUnixMicro(ctx context.Context, req if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -29638,11 +29639,11 @@ func (c *Client) sendTestRequestRequiredStringUnixMicroArray(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringUnixMicroArray", @@ -29655,7 +29656,7 @@ func (c *Client) sendTestRequestRequiredStringUnixMicroArray(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -29735,11 +29736,11 @@ func (c *Client) sendTestRequestRequiredStringUnixMicroArrayArray(ctx context.Co startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringUnixMicroArrayArray", @@ -29752,7 +29753,7 @@ func (c *Client) sendTestRequestRequiredStringUnixMicroArrayArray(ctx context.Co if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -29806,11 +29807,11 @@ func (c *Client) sendTestRequestRequiredStringUnixMicroNullable(ctx context.Cont startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringUnixMicroNullable", @@ -29823,7 +29824,7 @@ func (c *Client) sendTestRequestRequiredStringUnixMicroNullable(ctx context.Cont if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -29886,11 +29887,11 @@ func (c *Client) sendTestRequestRequiredStringUnixMicroNullableArray(ctx context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringUnixMicroNullableArray", @@ -29903,7 +29904,7 @@ func (c *Client) sendTestRequestRequiredStringUnixMicroNullableArray(ctx context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -29983,11 +29984,11 @@ func (c *Client) sendTestRequestRequiredStringUnixMicroNullableArrayArray(ctx co startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringUnixMicroNullableArrayArray", @@ -30000,7 +30001,7 @@ func (c *Client) sendTestRequestRequiredStringUnixMicroNullableArrayArray(ctx co if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -30054,11 +30055,11 @@ func (c *Client) sendTestRequestRequiredStringUnixMilli(ctx context.Context, req startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringUnixMilli", @@ -30071,7 +30072,7 @@ func (c *Client) sendTestRequestRequiredStringUnixMilli(ctx context.Context, req if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -30134,11 +30135,11 @@ func (c *Client) sendTestRequestRequiredStringUnixMilliArray(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringUnixMilliArray", @@ -30151,7 +30152,7 @@ func (c *Client) sendTestRequestRequiredStringUnixMilliArray(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -30231,11 +30232,11 @@ func (c *Client) sendTestRequestRequiredStringUnixMilliArrayArray(ctx context.Co startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringUnixMilliArrayArray", @@ -30248,7 +30249,7 @@ func (c *Client) sendTestRequestRequiredStringUnixMilliArrayArray(ctx context.Co if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -30302,11 +30303,11 @@ func (c *Client) sendTestRequestRequiredStringUnixMilliNullable(ctx context.Cont startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringUnixMilliNullable", @@ -30319,7 +30320,7 @@ func (c *Client) sendTestRequestRequiredStringUnixMilliNullable(ctx context.Cont if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -30382,11 +30383,11 @@ func (c *Client) sendTestRequestRequiredStringUnixMilliNullableArray(ctx context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringUnixMilliNullableArray", @@ -30399,7 +30400,7 @@ func (c *Client) sendTestRequestRequiredStringUnixMilliNullableArray(ctx context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -30479,11 +30480,11 @@ func (c *Client) sendTestRequestRequiredStringUnixMilliNullableArrayArray(ctx co startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringUnixMilliNullableArrayArray", @@ -30496,7 +30497,7 @@ func (c *Client) sendTestRequestRequiredStringUnixMilliNullableArrayArray(ctx co if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -30550,11 +30551,11 @@ func (c *Client) sendTestRequestRequiredStringUnixNano(ctx context.Context, requ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringUnixNano", @@ -30567,7 +30568,7 @@ func (c *Client) sendTestRequestRequiredStringUnixNano(ctx context.Context, requ if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -30630,11 +30631,11 @@ func (c *Client) sendTestRequestRequiredStringUnixNanoArray(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringUnixNanoArray", @@ -30647,7 +30648,7 @@ func (c *Client) sendTestRequestRequiredStringUnixNanoArray(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -30727,11 +30728,11 @@ func (c *Client) sendTestRequestRequiredStringUnixNanoArrayArray(ctx context.Con startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringUnixNanoArrayArray", @@ -30744,7 +30745,7 @@ func (c *Client) sendTestRequestRequiredStringUnixNanoArrayArray(ctx context.Con if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -30798,11 +30799,11 @@ func (c *Client) sendTestRequestRequiredStringUnixNanoNullable(ctx context.Conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringUnixNanoNullable", @@ -30815,7 +30816,7 @@ func (c *Client) sendTestRequestRequiredStringUnixNanoNullable(ctx context.Conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -30878,11 +30879,11 @@ func (c *Client) sendTestRequestRequiredStringUnixNanoNullableArray(ctx context. startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringUnixNanoNullableArray", @@ -30895,7 +30896,7 @@ func (c *Client) sendTestRequestRequiredStringUnixNanoNullableArray(ctx context. if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -30975,11 +30976,11 @@ func (c *Client) sendTestRequestRequiredStringUnixNanoNullableArrayArray(ctx con startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringUnixNanoNullableArrayArray", @@ -30992,7 +30993,7 @@ func (c *Client) sendTestRequestRequiredStringUnixNanoNullableArrayArray(ctx con if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -31046,11 +31047,11 @@ func (c *Client) sendTestRequestRequiredStringUnixNullable(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringUnixNullable", @@ -31063,7 +31064,7 @@ func (c *Client) sendTestRequestRequiredStringUnixNullable(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -31126,11 +31127,11 @@ func (c *Client) sendTestRequestRequiredStringUnixNullableArray(ctx context.Cont startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringUnixNullableArray", @@ -31143,7 +31144,7 @@ func (c *Client) sendTestRequestRequiredStringUnixNullableArray(ctx context.Cont if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -31223,11 +31224,11 @@ func (c *Client) sendTestRequestRequiredStringUnixNullableArrayArray(ctx context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringUnixNullableArrayArray", @@ -31240,7 +31241,7 @@ func (c *Client) sendTestRequestRequiredStringUnixNullableArrayArray(ctx context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -31294,11 +31295,11 @@ func (c *Client) sendTestRequestRequiredStringUnixSeconds(ctx context.Context, r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringUnixSeconds", @@ -31311,7 +31312,7 @@ func (c *Client) sendTestRequestRequiredStringUnixSeconds(ctx context.Context, r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -31374,11 +31375,11 @@ func (c *Client) sendTestRequestRequiredStringUnixSecondsArray(ctx context.Conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringUnixSecondsArray", @@ -31391,7 +31392,7 @@ func (c *Client) sendTestRequestRequiredStringUnixSecondsArray(ctx context.Conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -31471,11 +31472,11 @@ func (c *Client) sendTestRequestRequiredStringUnixSecondsArrayArray(ctx context. startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringUnixSecondsArrayArray", @@ -31488,7 +31489,7 @@ func (c *Client) sendTestRequestRequiredStringUnixSecondsArrayArray(ctx context. if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -31542,11 +31543,11 @@ func (c *Client) sendTestRequestRequiredStringUnixSecondsNullable(ctx context.Co startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringUnixSecondsNullable", @@ -31559,7 +31560,7 @@ func (c *Client) sendTestRequestRequiredStringUnixSecondsNullable(ctx context.Co if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -31622,11 +31623,11 @@ func (c *Client) sendTestRequestRequiredStringUnixSecondsNullableArray(ctx conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringUnixSecondsNullableArray", @@ -31639,7 +31640,7 @@ func (c *Client) sendTestRequestRequiredStringUnixSecondsNullableArray(ctx conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -31719,11 +31720,11 @@ func (c *Client) sendTestRequestRequiredStringUnixSecondsNullableArrayArray(ctx startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestRequiredStringUnixSecondsNullableArrayArray", @@ -31736,7 +31737,7 @@ func (c *Client) sendTestRequestRequiredStringUnixSecondsNullableArrayArray(ctx if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -31790,11 +31791,11 @@ func (c *Client) sendTestRequestString(ctx context.Context, request OptString) ( startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestString", @@ -31807,7 +31808,7 @@ func (c *Client) sendTestRequestString(ctx context.Context, request OptString) ( if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -31861,11 +31862,11 @@ func (c *Client) sendTestRequestStringArray(ctx context.Context, request []strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringArray", @@ -31878,7 +31879,7 @@ func (c *Client) sendTestRequestStringArray(ctx context.Context, request []strin if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -31955,11 +31956,11 @@ func (c *Client) sendTestRequestStringArrayArray(ctx context.Context, request [] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringArrayArray", @@ -31972,7 +31973,7 @@ func (c *Client) sendTestRequestStringArrayArray(ctx context.Context, request [] if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -32026,11 +32027,11 @@ func (c *Client) sendTestRequestStringBase64(ctx context.Context, request []byte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringBase64", @@ -32043,7 +32044,7 @@ func (c *Client) sendTestRequestStringBase64(ctx context.Context, request []byte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -32097,11 +32098,11 @@ func (c *Client) sendTestRequestStringBase64Array(ctx context.Context, request [ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringBase64Array", @@ -32114,7 +32115,7 @@ func (c *Client) sendTestRequestStringBase64Array(ctx context.Context, request [ if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -32191,11 +32192,11 @@ func (c *Client) sendTestRequestStringBase64ArrayArray(ctx context.Context, requ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringBase64ArrayArray", @@ -32208,7 +32209,7 @@ func (c *Client) sendTestRequestStringBase64ArrayArray(ctx context.Context, requ if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -32262,11 +32263,11 @@ func (c *Client) sendTestRequestStringBase64Nullable(ctx context.Context, reques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringBase64Nullable", @@ -32279,7 +32280,7 @@ func (c *Client) sendTestRequestStringBase64Nullable(ctx context.Context, reques if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -32333,11 +32334,11 @@ func (c *Client) sendTestRequestStringBase64NullableArray(ctx context.Context, r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringBase64NullableArray", @@ -32350,7 +32351,7 @@ func (c *Client) sendTestRequestStringBase64NullableArray(ctx context.Context, r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -32427,11 +32428,11 @@ func (c *Client) sendTestRequestStringBase64NullableArrayArray(ctx context.Conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringBase64NullableArrayArray", @@ -32444,7 +32445,7 @@ func (c *Client) sendTestRequestStringBase64NullableArrayArray(ctx context.Conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -32498,11 +32499,11 @@ func (c *Client) sendTestRequestStringBinary(ctx context.Context, request OptStr startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringBinary", @@ -32515,7 +32516,7 @@ func (c *Client) sendTestRequestStringBinary(ctx context.Context, request OptStr if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -32569,11 +32570,11 @@ func (c *Client) sendTestRequestStringBinaryArray(ctx context.Context, request [ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringBinaryArray", @@ -32586,7 +32587,7 @@ func (c *Client) sendTestRequestStringBinaryArray(ctx context.Context, request [ if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -32663,11 +32664,11 @@ func (c *Client) sendTestRequestStringBinaryArrayArray(ctx context.Context, requ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringBinaryArrayArray", @@ -32680,7 +32681,7 @@ func (c *Client) sendTestRequestStringBinaryArrayArray(ctx context.Context, requ if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -32734,11 +32735,11 @@ func (c *Client) sendTestRequestStringBinaryNullable(ctx context.Context, reques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringBinaryNullable", @@ -32751,7 +32752,7 @@ func (c *Client) sendTestRequestStringBinaryNullable(ctx context.Context, reques if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -32805,11 +32806,11 @@ func (c *Client) sendTestRequestStringBinaryNullableArray(ctx context.Context, r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringBinaryNullableArray", @@ -32822,7 +32823,7 @@ func (c *Client) sendTestRequestStringBinaryNullableArray(ctx context.Context, r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -32899,11 +32900,11 @@ func (c *Client) sendTestRequestStringBinaryNullableArrayArray(ctx context.Conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringBinaryNullableArrayArray", @@ -32916,7 +32917,7 @@ func (c *Client) sendTestRequestStringBinaryNullableArrayArray(ctx context.Conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -32970,11 +32971,11 @@ func (c *Client) sendTestRequestStringByte(ctx context.Context, request []byte) startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringByte", @@ -32987,7 +32988,7 @@ func (c *Client) sendTestRequestStringByte(ctx context.Context, request []byte) if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -33041,11 +33042,11 @@ func (c *Client) sendTestRequestStringByteArray(ctx context.Context, request [][ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringByteArray", @@ -33058,7 +33059,7 @@ func (c *Client) sendTestRequestStringByteArray(ctx context.Context, request [][ if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -33135,11 +33136,11 @@ func (c *Client) sendTestRequestStringByteArrayArray(ctx context.Context, reques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringByteArrayArray", @@ -33152,7 +33153,7 @@ func (c *Client) sendTestRequestStringByteArrayArray(ctx context.Context, reques if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -33206,11 +33207,11 @@ func (c *Client) sendTestRequestStringByteNullable(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringByteNullable", @@ -33223,7 +33224,7 @@ func (c *Client) sendTestRequestStringByteNullable(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -33277,11 +33278,11 @@ func (c *Client) sendTestRequestStringByteNullableArray(ctx context.Context, req startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringByteNullableArray", @@ -33294,7 +33295,7 @@ func (c *Client) sendTestRequestStringByteNullableArray(ctx context.Context, req if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -33371,11 +33372,11 @@ func (c *Client) sendTestRequestStringByteNullableArrayArray(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringByteNullableArrayArray", @@ -33388,7 +33389,7 @@ func (c *Client) sendTestRequestStringByteNullableArrayArray(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -33442,11 +33443,11 @@ func (c *Client) sendTestRequestStringDate(ctx context.Context, request OptDate) startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringDate", @@ -33459,7 +33460,7 @@ func (c *Client) sendTestRequestStringDate(ctx context.Context, request OptDate) if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -33513,11 +33514,11 @@ func (c *Client) sendTestRequestStringDateArray(ctx context.Context, request []t startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringDateArray", @@ -33530,7 +33531,7 @@ func (c *Client) sendTestRequestStringDateArray(ctx context.Context, request []t if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -33607,11 +33608,11 @@ func (c *Client) sendTestRequestStringDateArrayArray(ctx context.Context, reques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringDateArrayArray", @@ -33624,7 +33625,7 @@ func (c *Client) sendTestRequestStringDateArrayArray(ctx context.Context, reques if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -33678,11 +33679,11 @@ func (c *Client) sendTestRequestStringDateNullable(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringDateNullable", @@ -33695,7 +33696,7 @@ func (c *Client) sendTestRequestStringDateNullable(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -33749,11 +33750,11 @@ func (c *Client) sendTestRequestStringDateNullableArray(ctx context.Context, req startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringDateNullableArray", @@ -33766,7 +33767,7 @@ func (c *Client) sendTestRequestStringDateNullableArray(ctx context.Context, req if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -33843,11 +33844,11 @@ func (c *Client) sendTestRequestStringDateNullableArrayArray(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringDateNullableArrayArray", @@ -33860,7 +33861,7 @@ func (c *Client) sendTestRequestStringDateNullableArrayArray(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -33914,11 +33915,11 @@ func (c *Client) sendTestRequestStringDateTime(ctx context.Context, request OptD startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringDateTime", @@ -33931,7 +33932,7 @@ func (c *Client) sendTestRequestStringDateTime(ctx context.Context, request OptD if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -33985,11 +33986,11 @@ func (c *Client) sendTestRequestStringDateTimeArray(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringDateTimeArray", @@ -34002,7 +34003,7 @@ func (c *Client) sendTestRequestStringDateTimeArray(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -34079,11 +34080,11 @@ func (c *Client) sendTestRequestStringDateTimeArrayArray(ctx context.Context, re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringDateTimeArrayArray", @@ -34096,7 +34097,7 @@ func (c *Client) sendTestRequestStringDateTimeArrayArray(ctx context.Context, re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -34150,11 +34151,11 @@ func (c *Client) sendTestRequestStringDateTimeNullable(ctx context.Context, requ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringDateTimeNullable", @@ -34167,7 +34168,7 @@ func (c *Client) sendTestRequestStringDateTimeNullable(ctx context.Context, requ if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -34221,11 +34222,11 @@ func (c *Client) sendTestRequestStringDateTimeNullableArray(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringDateTimeNullableArray", @@ -34238,7 +34239,7 @@ func (c *Client) sendTestRequestStringDateTimeNullableArray(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -34315,11 +34316,11 @@ func (c *Client) sendTestRequestStringDateTimeNullableArrayArray(ctx context.Con startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringDateTimeNullableArrayArray", @@ -34332,7 +34333,7 @@ func (c *Client) sendTestRequestStringDateTimeNullableArrayArray(ctx context.Con if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -34386,11 +34387,11 @@ func (c *Client) sendTestRequestStringDuration(ctx context.Context, request OptD startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringDuration", @@ -34403,7 +34404,7 @@ func (c *Client) sendTestRequestStringDuration(ctx context.Context, request OptD if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -34457,11 +34458,11 @@ func (c *Client) sendTestRequestStringDurationArray(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringDurationArray", @@ -34474,7 +34475,7 @@ func (c *Client) sendTestRequestStringDurationArray(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -34551,11 +34552,11 @@ func (c *Client) sendTestRequestStringDurationArrayArray(ctx context.Context, re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringDurationArrayArray", @@ -34568,7 +34569,7 @@ func (c *Client) sendTestRequestStringDurationArrayArray(ctx context.Context, re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -34622,11 +34623,11 @@ func (c *Client) sendTestRequestStringDurationNullable(ctx context.Context, requ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringDurationNullable", @@ -34639,7 +34640,7 @@ func (c *Client) sendTestRequestStringDurationNullable(ctx context.Context, requ if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -34693,11 +34694,11 @@ func (c *Client) sendTestRequestStringDurationNullableArray(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringDurationNullableArray", @@ -34710,7 +34711,7 @@ func (c *Client) sendTestRequestStringDurationNullableArray(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -34787,11 +34788,11 @@ func (c *Client) sendTestRequestStringDurationNullableArrayArray(ctx context.Con startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringDurationNullableArrayArray", @@ -34804,7 +34805,7 @@ func (c *Client) sendTestRequestStringDurationNullableArrayArray(ctx context.Con if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -34882,11 +34883,11 @@ func (c *Client) sendTestRequestStringEmail(ctx context.Context, request OptStri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringEmail", @@ -34899,7 +34900,7 @@ func (c *Client) sendTestRequestStringEmail(ctx context.Context, request OptStri if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -34984,11 +34985,11 @@ func (c *Client) sendTestRequestStringEmailArray(ctx context.Context, request [] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringEmailArray", @@ -35001,7 +35002,7 @@ func (c *Client) sendTestRequestStringEmailArray(ctx context.Context, request [] if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -35103,11 +35104,11 @@ func (c *Client) sendTestRequestStringEmailArrayArray(ctx context.Context, reque startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringEmailArrayArray", @@ -35120,7 +35121,7 @@ func (c *Client) sendTestRequestStringEmailArrayArray(ctx context.Context, reque if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -35198,11 +35199,11 @@ func (c *Client) sendTestRequestStringEmailNullable(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringEmailNullable", @@ -35215,7 +35216,7 @@ func (c *Client) sendTestRequestStringEmailNullable(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -35300,11 +35301,11 @@ func (c *Client) sendTestRequestStringEmailNullableArray(ctx context.Context, re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringEmailNullableArray", @@ -35317,7 +35318,7 @@ func (c *Client) sendTestRequestStringEmailNullableArray(ctx context.Context, re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -35419,11 +35420,11 @@ func (c *Client) sendTestRequestStringEmailNullableArrayArray(ctx context.Contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringEmailNullableArrayArray", @@ -35436,7 +35437,7 @@ func (c *Client) sendTestRequestStringEmailNullableArrayArray(ctx context.Contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -35514,11 +35515,11 @@ func (c *Client) sendTestRequestStringHostname(ctx context.Context, request OptS startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringHostname", @@ -35531,7 +35532,7 @@ func (c *Client) sendTestRequestStringHostname(ctx context.Context, request OptS if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -35616,11 +35617,11 @@ func (c *Client) sendTestRequestStringHostnameArray(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringHostnameArray", @@ -35633,7 +35634,7 @@ func (c *Client) sendTestRequestStringHostnameArray(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -35735,11 +35736,11 @@ func (c *Client) sendTestRequestStringHostnameArrayArray(ctx context.Context, re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringHostnameArrayArray", @@ -35752,7 +35753,7 @@ func (c *Client) sendTestRequestStringHostnameArrayArray(ctx context.Context, re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -35830,11 +35831,11 @@ func (c *Client) sendTestRequestStringHostnameNullable(ctx context.Context, requ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringHostnameNullable", @@ -35847,7 +35848,7 @@ func (c *Client) sendTestRequestStringHostnameNullable(ctx context.Context, requ if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -35932,11 +35933,11 @@ func (c *Client) sendTestRequestStringHostnameNullableArray(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringHostnameNullableArray", @@ -35949,7 +35950,7 @@ func (c *Client) sendTestRequestStringHostnameNullableArray(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -36051,11 +36052,11 @@ func (c *Client) sendTestRequestStringHostnameNullableArrayArray(ctx context.Con startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringHostnameNullableArrayArray", @@ -36068,7 +36069,7 @@ func (c *Client) sendTestRequestStringHostnameNullableArrayArray(ctx context.Con if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -36122,11 +36123,11 @@ func (c *Client) sendTestRequestStringIP(ctx context.Context, request OptIP) (re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringIP", @@ -36139,7 +36140,7 @@ func (c *Client) sendTestRequestStringIP(ctx context.Context, request OptIP) (re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -36193,11 +36194,11 @@ func (c *Client) sendTestRequestStringIPArray(ctx context.Context, request []net startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringIPArray", @@ -36210,7 +36211,7 @@ func (c *Client) sendTestRequestStringIPArray(ctx context.Context, request []net if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -36287,11 +36288,11 @@ func (c *Client) sendTestRequestStringIPArrayArray(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringIPArrayArray", @@ -36304,7 +36305,7 @@ func (c *Client) sendTestRequestStringIPArrayArray(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -36358,11 +36359,11 @@ func (c *Client) sendTestRequestStringIPNullable(ctx context.Context, request Op startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringIPNullable", @@ -36375,7 +36376,7 @@ func (c *Client) sendTestRequestStringIPNullable(ctx context.Context, request Op if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -36429,11 +36430,11 @@ func (c *Client) sendTestRequestStringIPNullableArray(ctx context.Context, reque startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringIPNullableArray", @@ -36446,7 +36447,7 @@ func (c *Client) sendTestRequestStringIPNullableArray(ctx context.Context, reque if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -36523,11 +36524,11 @@ func (c *Client) sendTestRequestStringIPNullableArrayArray(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringIPNullableArrayArray", @@ -36540,7 +36541,7 @@ func (c *Client) sendTestRequestStringIPNullableArrayArray(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -36594,11 +36595,11 @@ func (c *Client) sendTestRequestStringInt32(ctx context.Context, request OptStri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringInt32", @@ -36611,7 +36612,7 @@ func (c *Client) sendTestRequestStringInt32(ctx context.Context, request OptStri if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -36665,11 +36666,11 @@ func (c *Client) sendTestRequestStringInt32Array(ctx context.Context, request [] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringInt32Array", @@ -36682,7 +36683,7 @@ func (c *Client) sendTestRequestStringInt32Array(ctx context.Context, request [] if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -36759,11 +36760,11 @@ func (c *Client) sendTestRequestStringInt32ArrayArray(ctx context.Context, reque startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringInt32ArrayArray", @@ -36776,7 +36777,7 @@ func (c *Client) sendTestRequestStringInt32ArrayArray(ctx context.Context, reque if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -36830,11 +36831,11 @@ func (c *Client) sendTestRequestStringInt32Nullable(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringInt32Nullable", @@ -36847,7 +36848,7 @@ func (c *Client) sendTestRequestStringInt32Nullable(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -36901,11 +36902,11 @@ func (c *Client) sendTestRequestStringInt32NullableArray(ctx context.Context, re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringInt32NullableArray", @@ -36918,7 +36919,7 @@ func (c *Client) sendTestRequestStringInt32NullableArray(ctx context.Context, re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -36995,11 +36996,11 @@ func (c *Client) sendTestRequestStringInt32NullableArrayArray(ctx context.Contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringInt32NullableArrayArray", @@ -37012,7 +37013,7 @@ func (c *Client) sendTestRequestStringInt32NullableArrayArray(ctx context.Contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -37066,11 +37067,11 @@ func (c *Client) sendTestRequestStringInt64(ctx context.Context, request OptStri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringInt64", @@ -37083,7 +37084,7 @@ func (c *Client) sendTestRequestStringInt64(ctx context.Context, request OptStri if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -37137,11 +37138,11 @@ func (c *Client) sendTestRequestStringInt64Array(ctx context.Context, request [] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringInt64Array", @@ -37154,7 +37155,7 @@ func (c *Client) sendTestRequestStringInt64Array(ctx context.Context, request [] if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -37231,11 +37232,11 @@ func (c *Client) sendTestRequestStringInt64ArrayArray(ctx context.Context, reque startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringInt64ArrayArray", @@ -37248,7 +37249,7 @@ func (c *Client) sendTestRequestStringInt64ArrayArray(ctx context.Context, reque if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -37302,11 +37303,11 @@ func (c *Client) sendTestRequestStringInt64Nullable(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringInt64Nullable", @@ -37319,7 +37320,7 @@ func (c *Client) sendTestRequestStringInt64Nullable(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -37373,11 +37374,11 @@ func (c *Client) sendTestRequestStringInt64NullableArray(ctx context.Context, re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringInt64NullableArray", @@ -37390,7 +37391,7 @@ func (c *Client) sendTestRequestStringInt64NullableArray(ctx context.Context, re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -37467,11 +37468,11 @@ func (c *Client) sendTestRequestStringInt64NullableArrayArray(ctx context.Contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringInt64NullableArrayArray", @@ -37484,7 +37485,7 @@ func (c *Client) sendTestRequestStringInt64NullableArrayArray(ctx context.Contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -37538,11 +37539,11 @@ func (c *Client) sendTestRequestStringIpv4(ctx context.Context, request OptIPv4) startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringIpv4", @@ -37555,7 +37556,7 @@ func (c *Client) sendTestRequestStringIpv4(ctx context.Context, request OptIPv4) if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -37609,11 +37610,11 @@ func (c *Client) sendTestRequestStringIpv4Array(ctx context.Context, request []n startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringIpv4Array", @@ -37626,7 +37627,7 @@ func (c *Client) sendTestRequestStringIpv4Array(ctx context.Context, request []n if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -37703,11 +37704,11 @@ func (c *Client) sendTestRequestStringIpv4ArrayArray(ctx context.Context, reques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringIpv4ArrayArray", @@ -37720,7 +37721,7 @@ func (c *Client) sendTestRequestStringIpv4ArrayArray(ctx context.Context, reques if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -37774,11 +37775,11 @@ func (c *Client) sendTestRequestStringIpv4Nullable(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringIpv4Nullable", @@ -37791,7 +37792,7 @@ func (c *Client) sendTestRequestStringIpv4Nullable(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -37845,11 +37846,11 @@ func (c *Client) sendTestRequestStringIpv4NullableArray(ctx context.Context, req startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringIpv4NullableArray", @@ -37862,7 +37863,7 @@ func (c *Client) sendTestRequestStringIpv4NullableArray(ctx context.Context, req if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -37939,11 +37940,11 @@ func (c *Client) sendTestRequestStringIpv4NullableArrayArray(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringIpv4NullableArrayArray", @@ -37956,7 +37957,7 @@ func (c *Client) sendTestRequestStringIpv4NullableArrayArray(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -38010,11 +38011,11 @@ func (c *Client) sendTestRequestStringIpv6(ctx context.Context, request OptIPv6) startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringIpv6", @@ -38027,7 +38028,7 @@ func (c *Client) sendTestRequestStringIpv6(ctx context.Context, request OptIPv6) if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -38081,11 +38082,11 @@ func (c *Client) sendTestRequestStringIpv6Array(ctx context.Context, request []n startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringIpv6Array", @@ -38098,7 +38099,7 @@ func (c *Client) sendTestRequestStringIpv6Array(ctx context.Context, request []n if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -38175,11 +38176,11 @@ func (c *Client) sendTestRequestStringIpv6ArrayArray(ctx context.Context, reques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringIpv6ArrayArray", @@ -38192,7 +38193,7 @@ func (c *Client) sendTestRequestStringIpv6ArrayArray(ctx context.Context, reques if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -38246,11 +38247,11 @@ func (c *Client) sendTestRequestStringIpv6Nullable(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringIpv6Nullable", @@ -38263,7 +38264,7 @@ func (c *Client) sendTestRequestStringIpv6Nullable(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -38317,11 +38318,11 @@ func (c *Client) sendTestRequestStringIpv6NullableArray(ctx context.Context, req startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringIpv6NullableArray", @@ -38334,7 +38335,7 @@ func (c *Client) sendTestRequestStringIpv6NullableArray(ctx context.Context, req if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -38411,11 +38412,11 @@ func (c *Client) sendTestRequestStringIpv6NullableArrayArray(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringIpv6NullableArrayArray", @@ -38428,7 +38429,7 @@ func (c *Client) sendTestRequestStringIpv6NullableArrayArray(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -38482,11 +38483,11 @@ func (c *Client) sendTestRequestStringNullable(ctx context.Context, request OptN startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringNullable", @@ -38499,7 +38500,7 @@ func (c *Client) sendTestRequestStringNullable(ctx context.Context, request OptN if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -38553,11 +38554,11 @@ func (c *Client) sendTestRequestStringNullableArray(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringNullableArray", @@ -38570,7 +38571,7 @@ func (c *Client) sendTestRequestStringNullableArray(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -38647,11 +38648,11 @@ func (c *Client) sendTestRequestStringNullableArrayArray(ctx context.Context, re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringNullableArrayArray", @@ -38664,7 +38665,7 @@ func (c *Client) sendTestRequestStringNullableArrayArray(ctx context.Context, re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -38718,11 +38719,11 @@ func (c *Client) sendTestRequestStringPassword(ctx context.Context, request OptS startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringPassword", @@ -38735,7 +38736,7 @@ func (c *Client) sendTestRequestStringPassword(ctx context.Context, request OptS if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -38789,11 +38790,11 @@ func (c *Client) sendTestRequestStringPasswordArray(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringPasswordArray", @@ -38806,7 +38807,7 @@ func (c *Client) sendTestRequestStringPasswordArray(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -38883,11 +38884,11 @@ func (c *Client) sendTestRequestStringPasswordArrayArray(ctx context.Context, re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringPasswordArrayArray", @@ -38900,7 +38901,7 @@ func (c *Client) sendTestRequestStringPasswordArrayArray(ctx context.Context, re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -38954,11 +38955,11 @@ func (c *Client) sendTestRequestStringPasswordNullable(ctx context.Context, requ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringPasswordNullable", @@ -38971,7 +38972,7 @@ func (c *Client) sendTestRequestStringPasswordNullable(ctx context.Context, requ if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -39025,11 +39026,11 @@ func (c *Client) sendTestRequestStringPasswordNullableArray(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringPasswordNullableArray", @@ -39042,7 +39043,7 @@ func (c *Client) sendTestRequestStringPasswordNullableArray(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -39119,11 +39120,11 @@ func (c *Client) sendTestRequestStringPasswordNullableArrayArray(ctx context.Con startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringPasswordNullableArrayArray", @@ -39136,7 +39137,7 @@ func (c *Client) sendTestRequestStringPasswordNullableArrayArray(ctx context.Con if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -39190,11 +39191,11 @@ func (c *Client) sendTestRequestStringTime(ctx context.Context, request OptTime) startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringTime", @@ -39207,7 +39208,7 @@ func (c *Client) sendTestRequestStringTime(ctx context.Context, request OptTime) if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -39261,11 +39262,11 @@ func (c *Client) sendTestRequestStringTimeArray(ctx context.Context, request []t startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringTimeArray", @@ -39278,7 +39279,7 @@ func (c *Client) sendTestRequestStringTimeArray(ctx context.Context, request []t if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -39355,11 +39356,11 @@ func (c *Client) sendTestRequestStringTimeArrayArray(ctx context.Context, reques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringTimeArrayArray", @@ -39372,7 +39373,7 @@ func (c *Client) sendTestRequestStringTimeArrayArray(ctx context.Context, reques if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -39426,11 +39427,11 @@ func (c *Client) sendTestRequestStringTimeNullable(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringTimeNullable", @@ -39443,7 +39444,7 @@ func (c *Client) sendTestRequestStringTimeNullable(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -39497,11 +39498,11 @@ func (c *Client) sendTestRequestStringTimeNullableArray(ctx context.Context, req startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringTimeNullableArray", @@ -39514,7 +39515,7 @@ func (c *Client) sendTestRequestStringTimeNullableArray(ctx context.Context, req if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -39591,11 +39592,11 @@ func (c *Client) sendTestRequestStringTimeNullableArrayArray(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringTimeNullableArrayArray", @@ -39608,7 +39609,7 @@ func (c *Client) sendTestRequestStringTimeNullableArrayArray(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -39662,11 +39663,11 @@ func (c *Client) sendTestRequestStringURI(ctx context.Context, request OptURI) ( startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringURI", @@ -39679,7 +39680,7 @@ func (c *Client) sendTestRequestStringURI(ctx context.Context, request OptURI) ( if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -39733,11 +39734,11 @@ func (c *Client) sendTestRequestStringURIArray(ctx context.Context, request []ur startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringURIArray", @@ -39750,7 +39751,7 @@ func (c *Client) sendTestRequestStringURIArray(ctx context.Context, request []ur if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -39827,11 +39828,11 @@ func (c *Client) sendTestRequestStringURIArrayArray(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringURIArrayArray", @@ -39844,7 +39845,7 @@ func (c *Client) sendTestRequestStringURIArrayArray(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -39898,11 +39899,11 @@ func (c *Client) sendTestRequestStringURINullable(ctx context.Context, request O startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringURINullable", @@ -39915,7 +39916,7 @@ func (c *Client) sendTestRequestStringURINullable(ctx context.Context, request O if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -39969,11 +39970,11 @@ func (c *Client) sendTestRequestStringURINullableArray(ctx context.Context, requ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringURINullableArray", @@ -39986,7 +39987,7 @@ func (c *Client) sendTestRequestStringURINullableArray(ctx context.Context, requ if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -40063,11 +40064,11 @@ func (c *Client) sendTestRequestStringURINullableArrayArray(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringURINullableArrayArray", @@ -40080,7 +40081,7 @@ func (c *Client) sendTestRequestStringURINullableArrayArray(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -40134,11 +40135,11 @@ func (c *Client) sendTestRequestStringUUID(ctx context.Context, request OptUUID) startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringUUID", @@ -40151,7 +40152,7 @@ func (c *Client) sendTestRequestStringUUID(ctx context.Context, request OptUUID) if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -40205,11 +40206,11 @@ func (c *Client) sendTestRequestStringUUIDArray(ctx context.Context, request []u startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringUUIDArray", @@ -40222,7 +40223,7 @@ func (c *Client) sendTestRequestStringUUIDArray(ctx context.Context, request []u if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -40299,11 +40300,11 @@ func (c *Client) sendTestRequestStringUUIDArrayArray(ctx context.Context, reques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringUUIDArrayArray", @@ -40316,7 +40317,7 @@ func (c *Client) sendTestRequestStringUUIDArrayArray(ctx context.Context, reques if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -40370,11 +40371,11 @@ func (c *Client) sendTestRequestStringUUIDNullable(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringUUIDNullable", @@ -40387,7 +40388,7 @@ func (c *Client) sendTestRequestStringUUIDNullable(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -40441,11 +40442,11 @@ func (c *Client) sendTestRequestStringUUIDNullableArray(ctx context.Context, req startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringUUIDNullableArray", @@ -40458,7 +40459,7 @@ func (c *Client) sendTestRequestStringUUIDNullableArray(ctx context.Context, req if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -40535,11 +40536,11 @@ func (c *Client) sendTestRequestStringUUIDNullableArrayArray(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringUUIDNullableArrayArray", @@ -40552,7 +40553,7 @@ func (c *Client) sendTestRequestStringUUIDNullableArrayArray(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -40606,11 +40607,11 @@ func (c *Client) sendTestRequestStringUnix(ctx context.Context, request OptStrin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringUnix", @@ -40623,7 +40624,7 @@ func (c *Client) sendTestRequestStringUnix(ctx context.Context, request OptStrin if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -40677,11 +40678,11 @@ func (c *Client) sendTestRequestStringUnixArray(ctx context.Context, request []t startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringUnixArray", @@ -40694,7 +40695,7 @@ func (c *Client) sendTestRequestStringUnixArray(ctx context.Context, request []t if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -40771,11 +40772,11 @@ func (c *Client) sendTestRequestStringUnixArrayArray(ctx context.Context, reques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringUnixArrayArray", @@ -40788,7 +40789,7 @@ func (c *Client) sendTestRequestStringUnixArrayArray(ctx context.Context, reques if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -40842,11 +40843,11 @@ func (c *Client) sendTestRequestStringUnixMicro(ctx context.Context, request Opt startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringUnixMicro", @@ -40859,7 +40860,7 @@ func (c *Client) sendTestRequestStringUnixMicro(ctx context.Context, request Opt if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -40913,11 +40914,11 @@ func (c *Client) sendTestRequestStringUnixMicroArray(ctx context.Context, reques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringUnixMicroArray", @@ -40930,7 +40931,7 @@ func (c *Client) sendTestRequestStringUnixMicroArray(ctx context.Context, reques if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -41007,11 +41008,11 @@ func (c *Client) sendTestRequestStringUnixMicroArrayArray(ctx context.Context, r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringUnixMicroArrayArray", @@ -41024,7 +41025,7 @@ func (c *Client) sendTestRequestStringUnixMicroArrayArray(ctx context.Context, r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -41078,11 +41079,11 @@ func (c *Client) sendTestRequestStringUnixMicroNullable(ctx context.Context, req startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringUnixMicroNullable", @@ -41095,7 +41096,7 @@ func (c *Client) sendTestRequestStringUnixMicroNullable(ctx context.Context, req if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -41149,11 +41150,11 @@ func (c *Client) sendTestRequestStringUnixMicroNullableArray(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringUnixMicroNullableArray", @@ -41166,7 +41167,7 @@ func (c *Client) sendTestRequestStringUnixMicroNullableArray(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -41243,11 +41244,11 @@ func (c *Client) sendTestRequestStringUnixMicroNullableArrayArray(ctx context.Co startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringUnixMicroNullableArrayArray", @@ -41260,7 +41261,7 @@ func (c *Client) sendTestRequestStringUnixMicroNullableArrayArray(ctx context.Co if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -41314,11 +41315,11 @@ func (c *Client) sendTestRequestStringUnixMilli(ctx context.Context, request Opt startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringUnixMilli", @@ -41331,7 +41332,7 @@ func (c *Client) sendTestRequestStringUnixMilli(ctx context.Context, request Opt if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -41385,11 +41386,11 @@ func (c *Client) sendTestRequestStringUnixMilliArray(ctx context.Context, reques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringUnixMilliArray", @@ -41402,7 +41403,7 @@ func (c *Client) sendTestRequestStringUnixMilliArray(ctx context.Context, reques if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -41479,11 +41480,11 @@ func (c *Client) sendTestRequestStringUnixMilliArrayArray(ctx context.Context, r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringUnixMilliArrayArray", @@ -41496,7 +41497,7 @@ func (c *Client) sendTestRequestStringUnixMilliArrayArray(ctx context.Context, r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -41550,11 +41551,11 @@ func (c *Client) sendTestRequestStringUnixMilliNullable(ctx context.Context, req startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringUnixMilliNullable", @@ -41567,7 +41568,7 @@ func (c *Client) sendTestRequestStringUnixMilliNullable(ctx context.Context, req if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -41621,11 +41622,11 @@ func (c *Client) sendTestRequestStringUnixMilliNullableArray(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringUnixMilliNullableArray", @@ -41638,7 +41639,7 @@ func (c *Client) sendTestRequestStringUnixMilliNullableArray(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -41715,11 +41716,11 @@ func (c *Client) sendTestRequestStringUnixMilliNullableArrayArray(ctx context.Co startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringUnixMilliNullableArrayArray", @@ -41732,7 +41733,7 @@ func (c *Client) sendTestRequestStringUnixMilliNullableArrayArray(ctx context.Co if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -41786,11 +41787,11 @@ func (c *Client) sendTestRequestStringUnixNano(ctx context.Context, request OptS startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringUnixNano", @@ -41803,7 +41804,7 @@ func (c *Client) sendTestRequestStringUnixNano(ctx context.Context, request OptS if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -41857,11 +41858,11 @@ func (c *Client) sendTestRequestStringUnixNanoArray(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringUnixNanoArray", @@ -41874,7 +41875,7 @@ func (c *Client) sendTestRequestStringUnixNanoArray(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -41951,11 +41952,11 @@ func (c *Client) sendTestRequestStringUnixNanoArrayArray(ctx context.Context, re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringUnixNanoArrayArray", @@ -41968,7 +41969,7 @@ func (c *Client) sendTestRequestStringUnixNanoArrayArray(ctx context.Context, re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -42022,11 +42023,11 @@ func (c *Client) sendTestRequestStringUnixNanoNullable(ctx context.Context, requ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringUnixNanoNullable", @@ -42039,7 +42040,7 @@ func (c *Client) sendTestRequestStringUnixNanoNullable(ctx context.Context, requ if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -42093,11 +42094,11 @@ func (c *Client) sendTestRequestStringUnixNanoNullableArray(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringUnixNanoNullableArray", @@ -42110,7 +42111,7 @@ func (c *Client) sendTestRequestStringUnixNanoNullableArray(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -42187,11 +42188,11 @@ func (c *Client) sendTestRequestStringUnixNanoNullableArrayArray(ctx context.Con startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringUnixNanoNullableArrayArray", @@ -42204,7 +42205,7 @@ func (c *Client) sendTestRequestStringUnixNanoNullableArrayArray(ctx context.Con if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -42258,11 +42259,11 @@ func (c *Client) sendTestRequestStringUnixNullable(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringUnixNullable", @@ -42275,7 +42276,7 @@ func (c *Client) sendTestRequestStringUnixNullable(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -42329,11 +42330,11 @@ func (c *Client) sendTestRequestStringUnixNullableArray(ctx context.Context, req startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringUnixNullableArray", @@ -42346,7 +42347,7 @@ func (c *Client) sendTestRequestStringUnixNullableArray(ctx context.Context, req if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -42423,11 +42424,11 @@ func (c *Client) sendTestRequestStringUnixNullableArrayArray(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringUnixNullableArrayArray", @@ -42440,7 +42441,7 @@ func (c *Client) sendTestRequestStringUnixNullableArrayArray(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -42494,11 +42495,11 @@ func (c *Client) sendTestRequestStringUnixSeconds(ctx context.Context, request O startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringUnixSeconds", @@ -42511,7 +42512,7 @@ func (c *Client) sendTestRequestStringUnixSeconds(ctx context.Context, request O if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -42565,11 +42566,11 @@ func (c *Client) sendTestRequestStringUnixSecondsArray(ctx context.Context, requ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringUnixSecondsArray", @@ -42582,7 +42583,7 @@ func (c *Client) sendTestRequestStringUnixSecondsArray(ctx context.Context, requ if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -42659,11 +42660,11 @@ func (c *Client) sendTestRequestStringUnixSecondsArrayArray(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringUnixSecondsArrayArray", @@ -42676,7 +42677,7 @@ func (c *Client) sendTestRequestStringUnixSecondsArrayArray(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -42730,11 +42731,11 @@ func (c *Client) sendTestRequestStringUnixSecondsNullable(ctx context.Context, r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringUnixSecondsNullable", @@ -42747,7 +42748,7 @@ func (c *Client) sendTestRequestStringUnixSecondsNullable(ctx context.Context, r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -42801,11 +42802,11 @@ func (c *Client) sendTestRequestStringUnixSecondsNullableArray(ctx context.Conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringUnixSecondsNullableArray", @@ -42818,7 +42819,7 @@ func (c *Client) sendTestRequestStringUnixSecondsNullableArray(ctx context.Conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -42895,11 +42896,11 @@ func (c *Client) sendTestRequestStringUnixSecondsNullableArrayArray(ctx context. startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestRequestStringUnixSecondsNullableArrayArray", @@ -42912,7 +42913,7 @@ func (c *Client) sendTestRequestStringUnixSecondsNullableArrayArray(ctx context. if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -42966,11 +42967,11 @@ func (c *Client) sendTestResponseAny(ctx context.Context, request string) (res j startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseAny", @@ -42983,7 +42984,7 @@ func (c *Client) sendTestResponseAny(ctx context.Context, request string) (res j if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -43037,11 +43038,11 @@ func (c *Client) sendTestResponseBoolean(ctx context.Context, request string) (r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseBoolean", @@ -43054,7 +43055,7 @@ func (c *Client) sendTestResponseBoolean(ctx context.Context, request string) (r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -43108,11 +43109,11 @@ func (c *Client) sendTestResponseBooleanArray(ctx context.Context, request strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseBooleanArray", @@ -43125,7 +43126,7 @@ func (c *Client) sendTestResponseBooleanArray(ctx context.Context, request strin if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -43179,11 +43180,11 @@ func (c *Client) sendTestResponseBooleanArrayArray(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseBooleanArrayArray", @@ -43196,7 +43197,7 @@ func (c *Client) sendTestResponseBooleanArrayArray(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -43250,11 +43251,11 @@ func (c *Client) sendTestResponseBooleanNullable(ctx context.Context, request st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseBooleanNullable", @@ -43267,7 +43268,7 @@ func (c *Client) sendTestResponseBooleanNullable(ctx context.Context, request st if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -43321,11 +43322,11 @@ func (c *Client) sendTestResponseBooleanNullableArray(ctx context.Context, reque startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseBooleanNullableArray", @@ -43338,7 +43339,7 @@ func (c *Client) sendTestResponseBooleanNullableArray(ctx context.Context, reque if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -43392,11 +43393,11 @@ func (c *Client) sendTestResponseBooleanNullableArrayArray(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseBooleanNullableArrayArray", @@ -43409,7 +43410,7 @@ func (c *Client) sendTestResponseBooleanNullableArrayArray(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -43463,11 +43464,11 @@ func (c *Client) sendTestResponseEmptyStruct(ctx context.Context, request string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseEmptyStruct", @@ -43480,7 +43481,7 @@ func (c *Client) sendTestResponseEmptyStruct(ctx context.Context, request string if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -43534,11 +43535,11 @@ func (c *Client) sendTestResponseFormatTest(ctx context.Context, request string) startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseFormatTest", @@ -43551,7 +43552,7 @@ func (c *Client) sendTestResponseFormatTest(ctx context.Context, request string) if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -43605,11 +43606,11 @@ func (c *Client) sendTestResponseInteger(ctx context.Context, request string) (r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseInteger", @@ -43622,7 +43623,7 @@ func (c *Client) sendTestResponseInteger(ctx context.Context, request string) (r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -43676,11 +43677,11 @@ func (c *Client) sendTestResponseIntegerArray(ctx context.Context, request strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerArray", @@ -43693,7 +43694,7 @@ func (c *Client) sendTestResponseIntegerArray(ctx context.Context, request strin if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -43747,11 +43748,11 @@ func (c *Client) sendTestResponseIntegerArrayArray(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerArrayArray", @@ -43764,7 +43765,7 @@ func (c *Client) sendTestResponseIntegerArrayArray(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -43818,11 +43819,11 @@ func (c *Client) sendTestResponseIntegerInt32(ctx context.Context, request strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerInt32", @@ -43835,7 +43836,7 @@ func (c *Client) sendTestResponseIntegerInt32(ctx context.Context, request strin if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -43889,11 +43890,11 @@ func (c *Client) sendTestResponseIntegerInt32Array(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerInt32Array", @@ -43906,7 +43907,7 @@ func (c *Client) sendTestResponseIntegerInt32Array(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -43960,11 +43961,11 @@ func (c *Client) sendTestResponseIntegerInt32ArrayArray(ctx context.Context, req startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerInt32ArrayArray", @@ -43977,7 +43978,7 @@ func (c *Client) sendTestResponseIntegerInt32ArrayArray(ctx context.Context, req if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -44031,11 +44032,11 @@ func (c *Client) sendTestResponseIntegerInt32Nullable(ctx context.Context, reque startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerInt32Nullable", @@ -44048,7 +44049,7 @@ func (c *Client) sendTestResponseIntegerInt32Nullable(ctx context.Context, reque if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -44102,11 +44103,11 @@ func (c *Client) sendTestResponseIntegerInt32NullableArray(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerInt32NullableArray", @@ -44119,7 +44120,7 @@ func (c *Client) sendTestResponseIntegerInt32NullableArray(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -44173,11 +44174,11 @@ func (c *Client) sendTestResponseIntegerInt32NullableArrayArray(ctx context.Cont startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerInt32NullableArrayArray", @@ -44190,7 +44191,7 @@ func (c *Client) sendTestResponseIntegerInt32NullableArrayArray(ctx context.Cont if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -44244,11 +44245,11 @@ func (c *Client) sendTestResponseIntegerInt64(ctx context.Context, request strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerInt64", @@ -44261,7 +44262,7 @@ func (c *Client) sendTestResponseIntegerInt64(ctx context.Context, request strin if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -44315,11 +44316,11 @@ func (c *Client) sendTestResponseIntegerInt64Array(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerInt64Array", @@ -44332,7 +44333,7 @@ func (c *Client) sendTestResponseIntegerInt64Array(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -44386,11 +44387,11 @@ func (c *Client) sendTestResponseIntegerInt64ArrayArray(ctx context.Context, req startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerInt64ArrayArray", @@ -44403,7 +44404,7 @@ func (c *Client) sendTestResponseIntegerInt64ArrayArray(ctx context.Context, req if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -44457,11 +44458,11 @@ func (c *Client) sendTestResponseIntegerInt64Nullable(ctx context.Context, reque startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerInt64Nullable", @@ -44474,7 +44475,7 @@ func (c *Client) sendTestResponseIntegerInt64Nullable(ctx context.Context, reque if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -44528,11 +44529,11 @@ func (c *Client) sendTestResponseIntegerInt64NullableArray(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerInt64NullableArray", @@ -44545,7 +44546,7 @@ func (c *Client) sendTestResponseIntegerInt64NullableArray(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -44599,11 +44600,11 @@ func (c *Client) sendTestResponseIntegerInt64NullableArrayArray(ctx context.Cont startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerInt64NullableArrayArray", @@ -44616,7 +44617,7 @@ func (c *Client) sendTestResponseIntegerInt64NullableArrayArray(ctx context.Cont if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -44670,11 +44671,11 @@ func (c *Client) sendTestResponseIntegerNullable(ctx context.Context, request st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerNullable", @@ -44687,7 +44688,7 @@ func (c *Client) sendTestResponseIntegerNullable(ctx context.Context, request st if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -44741,11 +44742,11 @@ func (c *Client) sendTestResponseIntegerNullableArray(ctx context.Context, reque startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerNullableArray", @@ -44758,7 +44759,7 @@ func (c *Client) sendTestResponseIntegerNullableArray(ctx context.Context, reque if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -44812,11 +44813,11 @@ func (c *Client) sendTestResponseIntegerNullableArrayArray(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerNullableArrayArray", @@ -44829,7 +44830,7 @@ func (c *Client) sendTestResponseIntegerNullableArrayArray(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -44883,11 +44884,11 @@ func (c *Client) sendTestResponseIntegerUint(ctx context.Context, request string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerUint", @@ -44900,7 +44901,7 @@ func (c *Client) sendTestResponseIntegerUint(ctx context.Context, request string if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -44954,11 +44955,11 @@ func (c *Client) sendTestResponseIntegerUint32(ctx context.Context, request stri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerUint32", @@ -44971,7 +44972,7 @@ func (c *Client) sendTestResponseIntegerUint32(ctx context.Context, request stri if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -45025,11 +45026,11 @@ func (c *Client) sendTestResponseIntegerUint32Array(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerUint32Array", @@ -45042,7 +45043,7 @@ func (c *Client) sendTestResponseIntegerUint32Array(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -45096,11 +45097,11 @@ func (c *Client) sendTestResponseIntegerUint32ArrayArray(ctx context.Context, re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerUint32ArrayArray", @@ -45113,7 +45114,7 @@ func (c *Client) sendTestResponseIntegerUint32ArrayArray(ctx context.Context, re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -45167,11 +45168,11 @@ func (c *Client) sendTestResponseIntegerUint32Nullable(ctx context.Context, requ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerUint32Nullable", @@ -45184,7 +45185,7 @@ func (c *Client) sendTestResponseIntegerUint32Nullable(ctx context.Context, requ if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -45238,11 +45239,11 @@ func (c *Client) sendTestResponseIntegerUint32NullableArray(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerUint32NullableArray", @@ -45255,7 +45256,7 @@ func (c *Client) sendTestResponseIntegerUint32NullableArray(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -45309,11 +45310,11 @@ func (c *Client) sendTestResponseIntegerUint32NullableArrayArray(ctx context.Con startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerUint32NullableArrayArray", @@ -45326,7 +45327,7 @@ func (c *Client) sendTestResponseIntegerUint32NullableArrayArray(ctx context.Con if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -45380,11 +45381,11 @@ func (c *Client) sendTestResponseIntegerUint64(ctx context.Context, request stri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerUint64", @@ -45397,7 +45398,7 @@ func (c *Client) sendTestResponseIntegerUint64(ctx context.Context, request stri if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -45451,11 +45452,11 @@ func (c *Client) sendTestResponseIntegerUint64Array(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerUint64Array", @@ -45468,7 +45469,7 @@ func (c *Client) sendTestResponseIntegerUint64Array(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -45522,11 +45523,11 @@ func (c *Client) sendTestResponseIntegerUint64ArrayArray(ctx context.Context, re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerUint64ArrayArray", @@ -45539,7 +45540,7 @@ func (c *Client) sendTestResponseIntegerUint64ArrayArray(ctx context.Context, re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -45593,11 +45594,11 @@ func (c *Client) sendTestResponseIntegerUint64Nullable(ctx context.Context, requ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerUint64Nullable", @@ -45610,7 +45611,7 @@ func (c *Client) sendTestResponseIntegerUint64Nullable(ctx context.Context, requ if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -45664,11 +45665,11 @@ func (c *Client) sendTestResponseIntegerUint64NullableArray(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerUint64NullableArray", @@ -45681,7 +45682,7 @@ func (c *Client) sendTestResponseIntegerUint64NullableArray(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -45735,11 +45736,11 @@ func (c *Client) sendTestResponseIntegerUint64NullableArrayArray(ctx context.Con startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerUint64NullableArrayArray", @@ -45752,7 +45753,7 @@ func (c *Client) sendTestResponseIntegerUint64NullableArrayArray(ctx context.Con if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -45806,11 +45807,11 @@ func (c *Client) sendTestResponseIntegerUintArray(ctx context.Context, request s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerUintArray", @@ -45823,7 +45824,7 @@ func (c *Client) sendTestResponseIntegerUintArray(ctx context.Context, request s if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -45877,11 +45878,11 @@ func (c *Client) sendTestResponseIntegerUintArrayArray(ctx context.Context, requ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerUintArrayArray", @@ -45894,7 +45895,7 @@ func (c *Client) sendTestResponseIntegerUintArrayArray(ctx context.Context, requ if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -45948,11 +45949,11 @@ func (c *Client) sendTestResponseIntegerUintNullable(ctx context.Context, reques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerUintNullable", @@ -45965,7 +45966,7 @@ func (c *Client) sendTestResponseIntegerUintNullable(ctx context.Context, reques if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -46019,11 +46020,11 @@ func (c *Client) sendTestResponseIntegerUintNullableArray(ctx context.Context, r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerUintNullableArray", @@ -46036,7 +46037,7 @@ func (c *Client) sendTestResponseIntegerUintNullableArray(ctx context.Context, r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -46090,11 +46091,11 @@ func (c *Client) sendTestResponseIntegerUintNullableArrayArray(ctx context.Conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerUintNullableArrayArray", @@ -46107,7 +46108,7 @@ func (c *Client) sendTestResponseIntegerUintNullableArrayArray(ctx context.Conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -46161,11 +46162,11 @@ func (c *Client) sendTestResponseIntegerUnix(ctx context.Context, request string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerUnix", @@ -46178,7 +46179,7 @@ func (c *Client) sendTestResponseIntegerUnix(ctx context.Context, request string if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -46232,11 +46233,11 @@ func (c *Client) sendTestResponseIntegerUnixArray(ctx context.Context, request s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerUnixArray", @@ -46249,7 +46250,7 @@ func (c *Client) sendTestResponseIntegerUnixArray(ctx context.Context, request s if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -46303,11 +46304,11 @@ func (c *Client) sendTestResponseIntegerUnixArrayArray(ctx context.Context, requ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerUnixArrayArray", @@ -46320,7 +46321,7 @@ func (c *Client) sendTestResponseIntegerUnixArrayArray(ctx context.Context, requ if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -46374,11 +46375,11 @@ func (c *Client) sendTestResponseIntegerUnixMicro(ctx context.Context, request s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerUnixMicro", @@ -46391,7 +46392,7 @@ func (c *Client) sendTestResponseIntegerUnixMicro(ctx context.Context, request s if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -46445,11 +46446,11 @@ func (c *Client) sendTestResponseIntegerUnixMicroArray(ctx context.Context, requ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerUnixMicroArray", @@ -46462,7 +46463,7 @@ func (c *Client) sendTestResponseIntegerUnixMicroArray(ctx context.Context, requ if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -46516,11 +46517,11 @@ func (c *Client) sendTestResponseIntegerUnixMicroArrayArray(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerUnixMicroArrayArray", @@ -46533,7 +46534,7 @@ func (c *Client) sendTestResponseIntegerUnixMicroArrayArray(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -46587,11 +46588,11 @@ func (c *Client) sendTestResponseIntegerUnixMicroNullable(ctx context.Context, r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerUnixMicroNullable", @@ -46604,7 +46605,7 @@ func (c *Client) sendTestResponseIntegerUnixMicroNullable(ctx context.Context, r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -46658,11 +46659,11 @@ func (c *Client) sendTestResponseIntegerUnixMicroNullableArray(ctx context.Conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerUnixMicroNullableArray", @@ -46675,7 +46676,7 @@ func (c *Client) sendTestResponseIntegerUnixMicroNullableArray(ctx context.Conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -46729,11 +46730,11 @@ func (c *Client) sendTestResponseIntegerUnixMicroNullableArrayArray(ctx context. startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerUnixMicroNullableArrayArray", @@ -46746,7 +46747,7 @@ func (c *Client) sendTestResponseIntegerUnixMicroNullableArrayArray(ctx context. if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -46800,11 +46801,11 @@ func (c *Client) sendTestResponseIntegerUnixMilli(ctx context.Context, request s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerUnixMilli", @@ -46817,7 +46818,7 @@ func (c *Client) sendTestResponseIntegerUnixMilli(ctx context.Context, request s if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -46871,11 +46872,11 @@ func (c *Client) sendTestResponseIntegerUnixMilliArray(ctx context.Context, requ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerUnixMilliArray", @@ -46888,7 +46889,7 @@ func (c *Client) sendTestResponseIntegerUnixMilliArray(ctx context.Context, requ if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -46942,11 +46943,11 @@ func (c *Client) sendTestResponseIntegerUnixMilliArrayArray(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerUnixMilliArrayArray", @@ -46959,7 +46960,7 @@ func (c *Client) sendTestResponseIntegerUnixMilliArrayArray(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -47013,11 +47014,11 @@ func (c *Client) sendTestResponseIntegerUnixMilliNullable(ctx context.Context, r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerUnixMilliNullable", @@ -47030,7 +47031,7 @@ func (c *Client) sendTestResponseIntegerUnixMilliNullable(ctx context.Context, r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -47084,11 +47085,11 @@ func (c *Client) sendTestResponseIntegerUnixMilliNullableArray(ctx context.Conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerUnixMilliNullableArray", @@ -47101,7 +47102,7 @@ func (c *Client) sendTestResponseIntegerUnixMilliNullableArray(ctx context.Conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -47155,11 +47156,11 @@ func (c *Client) sendTestResponseIntegerUnixMilliNullableArrayArray(ctx context. startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerUnixMilliNullableArrayArray", @@ -47172,7 +47173,7 @@ func (c *Client) sendTestResponseIntegerUnixMilliNullableArrayArray(ctx context. if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -47226,11 +47227,11 @@ func (c *Client) sendTestResponseIntegerUnixNano(ctx context.Context, request st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerUnixNano", @@ -47243,7 +47244,7 @@ func (c *Client) sendTestResponseIntegerUnixNano(ctx context.Context, request st if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -47297,11 +47298,11 @@ func (c *Client) sendTestResponseIntegerUnixNanoArray(ctx context.Context, reque startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerUnixNanoArray", @@ -47314,7 +47315,7 @@ func (c *Client) sendTestResponseIntegerUnixNanoArray(ctx context.Context, reque if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -47368,11 +47369,11 @@ func (c *Client) sendTestResponseIntegerUnixNanoArrayArray(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerUnixNanoArrayArray", @@ -47385,7 +47386,7 @@ func (c *Client) sendTestResponseIntegerUnixNanoArrayArray(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -47439,11 +47440,11 @@ func (c *Client) sendTestResponseIntegerUnixNanoNullable(ctx context.Context, re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerUnixNanoNullable", @@ -47456,7 +47457,7 @@ func (c *Client) sendTestResponseIntegerUnixNanoNullable(ctx context.Context, re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -47510,11 +47511,11 @@ func (c *Client) sendTestResponseIntegerUnixNanoNullableArray(ctx context.Contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerUnixNanoNullableArray", @@ -47527,7 +47528,7 @@ func (c *Client) sendTestResponseIntegerUnixNanoNullableArray(ctx context.Contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -47581,11 +47582,11 @@ func (c *Client) sendTestResponseIntegerUnixNanoNullableArrayArray(ctx context.C startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerUnixNanoNullableArrayArray", @@ -47598,7 +47599,7 @@ func (c *Client) sendTestResponseIntegerUnixNanoNullableArrayArray(ctx context.C if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -47652,11 +47653,11 @@ func (c *Client) sendTestResponseIntegerUnixNullable(ctx context.Context, reques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerUnixNullable", @@ -47669,7 +47670,7 @@ func (c *Client) sendTestResponseIntegerUnixNullable(ctx context.Context, reques if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -47723,11 +47724,11 @@ func (c *Client) sendTestResponseIntegerUnixNullableArray(ctx context.Context, r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerUnixNullableArray", @@ -47740,7 +47741,7 @@ func (c *Client) sendTestResponseIntegerUnixNullableArray(ctx context.Context, r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -47794,11 +47795,11 @@ func (c *Client) sendTestResponseIntegerUnixNullableArrayArray(ctx context.Conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerUnixNullableArrayArray", @@ -47811,7 +47812,7 @@ func (c *Client) sendTestResponseIntegerUnixNullableArrayArray(ctx context.Conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -47865,11 +47866,11 @@ func (c *Client) sendTestResponseIntegerUnixSeconds(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerUnixSeconds", @@ -47882,7 +47883,7 @@ func (c *Client) sendTestResponseIntegerUnixSeconds(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -47936,11 +47937,11 @@ func (c *Client) sendTestResponseIntegerUnixSecondsArray(ctx context.Context, re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerUnixSecondsArray", @@ -47953,7 +47954,7 @@ func (c *Client) sendTestResponseIntegerUnixSecondsArray(ctx context.Context, re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -48007,11 +48008,11 @@ func (c *Client) sendTestResponseIntegerUnixSecondsArrayArray(ctx context.Contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerUnixSecondsArrayArray", @@ -48024,7 +48025,7 @@ func (c *Client) sendTestResponseIntegerUnixSecondsArrayArray(ctx context.Contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -48078,11 +48079,11 @@ func (c *Client) sendTestResponseIntegerUnixSecondsNullable(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerUnixSecondsNullable", @@ -48095,7 +48096,7 @@ func (c *Client) sendTestResponseIntegerUnixSecondsNullable(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -48149,11 +48150,11 @@ func (c *Client) sendTestResponseIntegerUnixSecondsNullableArray(ctx context.Con startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerUnixSecondsNullableArray", @@ -48166,7 +48167,7 @@ func (c *Client) sendTestResponseIntegerUnixSecondsNullableArray(ctx context.Con if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -48220,11 +48221,11 @@ func (c *Client) sendTestResponseIntegerUnixSecondsNullableArrayArray(ctx contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseIntegerUnixSecondsNullableArrayArray", @@ -48237,7 +48238,7 @@ func (c *Client) sendTestResponseIntegerUnixSecondsNullableArrayArray(ctx contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -48291,11 +48292,11 @@ func (c *Client) sendTestResponseNull(ctx context.Context, request string) (res startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseNull", @@ -48308,7 +48309,7 @@ func (c *Client) sendTestResponseNull(ctx context.Context, request string) (res if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -48362,11 +48363,11 @@ func (c *Client) sendTestResponseNullArray(ctx context.Context, request string) startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseNullArray", @@ -48379,7 +48380,7 @@ func (c *Client) sendTestResponseNullArray(ctx context.Context, request string) if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -48433,11 +48434,11 @@ func (c *Client) sendTestResponseNullArrayArray(ctx context.Context, request str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseNullArrayArray", @@ -48450,7 +48451,7 @@ func (c *Client) sendTestResponseNullArrayArray(ctx context.Context, request str if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -48504,11 +48505,11 @@ func (c *Client) sendTestResponseNullNullable(ctx context.Context, request strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseNullNullable", @@ -48521,7 +48522,7 @@ func (c *Client) sendTestResponseNullNullable(ctx context.Context, request strin if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -48575,11 +48576,11 @@ func (c *Client) sendTestResponseNullNullableArray(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseNullNullableArray", @@ -48592,7 +48593,7 @@ func (c *Client) sendTestResponseNullNullableArray(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -48646,11 +48647,11 @@ func (c *Client) sendTestResponseNullNullableArrayArray(ctx context.Context, req startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseNullNullableArrayArray", @@ -48663,7 +48664,7 @@ func (c *Client) sendTestResponseNullNullableArrayArray(ctx context.Context, req if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -48717,11 +48718,11 @@ func (c *Client) sendTestResponseNumber(ctx context.Context, request string) (re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseNumber", @@ -48734,7 +48735,7 @@ func (c *Client) sendTestResponseNumber(ctx context.Context, request string) (re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -48788,11 +48789,11 @@ func (c *Client) sendTestResponseNumberArray(ctx context.Context, request string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseNumberArray", @@ -48805,7 +48806,7 @@ func (c *Client) sendTestResponseNumberArray(ctx context.Context, request string if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -48859,11 +48860,11 @@ func (c *Client) sendTestResponseNumberArrayArray(ctx context.Context, request s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseNumberArrayArray", @@ -48876,7 +48877,7 @@ func (c *Client) sendTestResponseNumberArrayArray(ctx context.Context, request s if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -48930,11 +48931,11 @@ func (c *Client) sendTestResponseNumberDouble(ctx context.Context, request strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseNumberDouble", @@ -48947,7 +48948,7 @@ func (c *Client) sendTestResponseNumberDouble(ctx context.Context, request strin if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -49001,11 +49002,11 @@ func (c *Client) sendTestResponseNumberDoubleArray(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseNumberDoubleArray", @@ -49018,7 +49019,7 @@ func (c *Client) sendTestResponseNumberDoubleArray(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -49072,11 +49073,11 @@ func (c *Client) sendTestResponseNumberDoubleArrayArray(ctx context.Context, req startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseNumberDoubleArrayArray", @@ -49089,7 +49090,7 @@ func (c *Client) sendTestResponseNumberDoubleArrayArray(ctx context.Context, req if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -49143,11 +49144,11 @@ func (c *Client) sendTestResponseNumberDoubleNullable(ctx context.Context, reque startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseNumberDoubleNullable", @@ -49160,7 +49161,7 @@ func (c *Client) sendTestResponseNumberDoubleNullable(ctx context.Context, reque if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -49214,11 +49215,11 @@ func (c *Client) sendTestResponseNumberDoubleNullableArray(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseNumberDoubleNullableArray", @@ -49231,7 +49232,7 @@ func (c *Client) sendTestResponseNumberDoubleNullableArray(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -49285,11 +49286,11 @@ func (c *Client) sendTestResponseNumberDoubleNullableArrayArray(ctx context.Cont startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseNumberDoubleNullableArrayArray", @@ -49302,7 +49303,7 @@ func (c *Client) sendTestResponseNumberDoubleNullableArrayArray(ctx context.Cont if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -49356,11 +49357,11 @@ func (c *Client) sendTestResponseNumberFloat(ctx context.Context, request string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseNumberFloat", @@ -49373,7 +49374,7 @@ func (c *Client) sendTestResponseNumberFloat(ctx context.Context, request string if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -49427,11 +49428,11 @@ func (c *Client) sendTestResponseNumberFloatArray(ctx context.Context, request s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseNumberFloatArray", @@ -49444,7 +49445,7 @@ func (c *Client) sendTestResponseNumberFloatArray(ctx context.Context, request s if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -49498,11 +49499,11 @@ func (c *Client) sendTestResponseNumberFloatArrayArray(ctx context.Context, requ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseNumberFloatArrayArray", @@ -49515,7 +49516,7 @@ func (c *Client) sendTestResponseNumberFloatArrayArray(ctx context.Context, requ if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -49569,11 +49570,11 @@ func (c *Client) sendTestResponseNumberFloatNullable(ctx context.Context, reques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseNumberFloatNullable", @@ -49586,7 +49587,7 @@ func (c *Client) sendTestResponseNumberFloatNullable(ctx context.Context, reques if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -49640,11 +49641,11 @@ func (c *Client) sendTestResponseNumberFloatNullableArray(ctx context.Context, r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseNumberFloatNullableArray", @@ -49657,7 +49658,7 @@ func (c *Client) sendTestResponseNumberFloatNullableArray(ctx context.Context, r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -49711,11 +49712,11 @@ func (c *Client) sendTestResponseNumberFloatNullableArrayArray(ctx context.Conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseNumberFloatNullableArrayArray", @@ -49728,7 +49729,7 @@ func (c *Client) sendTestResponseNumberFloatNullableArrayArray(ctx context.Conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -49782,11 +49783,11 @@ func (c *Client) sendTestResponseNumberInt32(ctx context.Context, request string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseNumberInt32", @@ -49799,7 +49800,7 @@ func (c *Client) sendTestResponseNumberInt32(ctx context.Context, request string if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -49853,11 +49854,11 @@ func (c *Client) sendTestResponseNumberInt32Array(ctx context.Context, request s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseNumberInt32Array", @@ -49870,7 +49871,7 @@ func (c *Client) sendTestResponseNumberInt32Array(ctx context.Context, request s if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -49924,11 +49925,11 @@ func (c *Client) sendTestResponseNumberInt32ArrayArray(ctx context.Context, requ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseNumberInt32ArrayArray", @@ -49941,7 +49942,7 @@ func (c *Client) sendTestResponseNumberInt32ArrayArray(ctx context.Context, requ if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -49995,11 +49996,11 @@ func (c *Client) sendTestResponseNumberInt32Nullable(ctx context.Context, reques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseNumberInt32Nullable", @@ -50012,7 +50013,7 @@ func (c *Client) sendTestResponseNumberInt32Nullable(ctx context.Context, reques if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -50066,11 +50067,11 @@ func (c *Client) sendTestResponseNumberInt32NullableArray(ctx context.Context, r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseNumberInt32NullableArray", @@ -50083,7 +50084,7 @@ func (c *Client) sendTestResponseNumberInt32NullableArray(ctx context.Context, r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -50137,11 +50138,11 @@ func (c *Client) sendTestResponseNumberInt32NullableArrayArray(ctx context.Conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseNumberInt32NullableArrayArray", @@ -50154,7 +50155,7 @@ func (c *Client) sendTestResponseNumberInt32NullableArrayArray(ctx context.Conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -50208,11 +50209,11 @@ func (c *Client) sendTestResponseNumberInt64(ctx context.Context, request string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseNumberInt64", @@ -50225,7 +50226,7 @@ func (c *Client) sendTestResponseNumberInt64(ctx context.Context, request string if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -50279,11 +50280,11 @@ func (c *Client) sendTestResponseNumberInt64Array(ctx context.Context, request s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseNumberInt64Array", @@ -50296,7 +50297,7 @@ func (c *Client) sendTestResponseNumberInt64Array(ctx context.Context, request s if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -50350,11 +50351,11 @@ func (c *Client) sendTestResponseNumberInt64ArrayArray(ctx context.Context, requ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseNumberInt64ArrayArray", @@ -50367,7 +50368,7 @@ func (c *Client) sendTestResponseNumberInt64ArrayArray(ctx context.Context, requ if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -50421,11 +50422,11 @@ func (c *Client) sendTestResponseNumberInt64Nullable(ctx context.Context, reques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseNumberInt64Nullable", @@ -50438,7 +50439,7 @@ func (c *Client) sendTestResponseNumberInt64Nullable(ctx context.Context, reques if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -50492,11 +50493,11 @@ func (c *Client) sendTestResponseNumberInt64NullableArray(ctx context.Context, r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseNumberInt64NullableArray", @@ -50509,7 +50510,7 @@ func (c *Client) sendTestResponseNumberInt64NullableArray(ctx context.Context, r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -50563,11 +50564,11 @@ func (c *Client) sendTestResponseNumberInt64NullableArrayArray(ctx context.Conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseNumberInt64NullableArrayArray", @@ -50580,7 +50581,7 @@ func (c *Client) sendTestResponseNumberInt64NullableArrayArray(ctx context.Conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -50634,11 +50635,11 @@ func (c *Client) sendTestResponseNumberNullable(ctx context.Context, request str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseNumberNullable", @@ -50651,7 +50652,7 @@ func (c *Client) sendTestResponseNumberNullable(ctx context.Context, request str if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -50705,11 +50706,11 @@ func (c *Client) sendTestResponseNumberNullableArray(ctx context.Context, reques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseNumberNullableArray", @@ -50722,7 +50723,7 @@ func (c *Client) sendTestResponseNumberNullableArray(ctx context.Context, reques if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -50776,11 +50777,11 @@ func (c *Client) sendTestResponseNumberNullableArrayArray(ctx context.Context, r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseNumberNullableArrayArray", @@ -50793,7 +50794,7 @@ func (c *Client) sendTestResponseNumberNullableArrayArray(ctx context.Context, r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -50847,11 +50848,11 @@ func (c *Client) sendTestResponseString(ctx context.Context, request string) (re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseString", @@ -50864,7 +50865,7 @@ func (c *Client) sendTestResponseString(ctx context.Context, request string) (re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -50918,11 +50919,11 @@ func (c *Client) sendTestResponseStringArray(ctx context.Context, request string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringArray", @@ -50935,7 +50936,7 @@ func (c *Client) sendTestResponseStringArray(ctx context.Context, request string if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -50989,11 +50990,11 @@ func (c *Client) sendTestResponseStringArrayArray(ctx context.Context, request s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringArrayArray", @@ -51006,7 +51007,7 @@ func (c *Client) sendTestResponseStringArrayArray(ctx context.Context, request s if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -51060,11 +51061,11 @@ func (c *Client) sendTestResponseStringBase64(ctx context.Context, request strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringBase64", @@ -51077,7 +51078,7 @@ func (c *Client) sendTestResponseStringBase64(ctx context.Context, request strin if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -51131,11 +51132,11 @@ func (c *Client) sendTestResponseStringBase64Array(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringBase64Array", @@ -51148,7 +51149,7 @@ func (c *Client) sendTestResponseStringBase64Array(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -51202,11 +51203,11 @@ func (c *Client) sendTestResponseStringBase64ArrayArray(ctx context.Context, req startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringBase64ArrayArray", @@ -51219,7 +51220,7 @@ func (c *Client) sendTestResponseStringBase64ArrayArray(ctx context.Context, req if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -51273,11 +51274,11 @@ func (c *Client) sendTestResponseStringBase64Nullable(ctx context.Context, reque startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringBase64Nullable", @@ -51290,7 +51291,7 @@ func (c *Client) sendTestResponseStringBase64Nullable(ctx context.Context, reque if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -51344,11 +51345,11 @@ func (c *Client) sendTestResponseStringBase64NullableArray(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringBase64NullableArray", @@ -51361,7 +51362,7 @@ func (c *Client) sendTestResponseStringBase64NullableArray(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -51415,11 +51416,11 @@ func (c *Client) sendTestResponseStringBase64NullableArrayArray(ctx context.Cont startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringBase64NullableArrayArray", @@ -51432,7 +51433,7 @@ func (c *Client) sendTestResponseStringBase64NullableArrayArray(ctx context.Cont if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -51486,11 +51487,11 @@ func (c *Client) sendTestResponseStringBinary(ctx context.Context, request strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringBinary", @@ -51503,7 +51504,7 @@ func (c *Client) sendTestResponseStringBinary(ctx context.Context, request strin if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -51557,11 +51558,11 @@ func (c *Client) sendTestResponseStringBinaryArray(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringBinaryArray", @@ -51574,7 +51575,7 @@ func (c *Client) sendTestResponseStringBinaryArray(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -51628,11 +51629,11 @@ func (c *Client) sendTestResponseStringBinaryArrayArray(ctx context.Context, req startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringBinaryArrayArray", @@ -51645,7 +51646,7 @@ func (c *Client) sendTestResponseStringBinaryArrayArray(ctx context.Context, req if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -51699,11 +51700,11 @@ func (c *Client) sendTestResponseStringBinaryNullable(ctx context.Context, reque startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringBinaryNullable", @@ -51716,7 +51717,7 @@ func (c *Client) sendTestResponseStringBinaryNullable(ctx context.Context, reque if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -51770,11 +51771,11 @@ func (c *Client) sendTestResponseStringBinaryNullableArray(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringBinaryNullableArray", @@ -51787,7 +51788,7 @@ func (c *Client) sendTestResponseStringBinaryNullableArray(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -51841,11 +51842,11 @@ func (c *Client) sendTestResponseStringBinaryNullableArrayArray(ctx context.Cont startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringBinaryNullableArrayArray", @@ -51858,7 +51859,7 @@ func (c *Client) sendTestResponseStringBinaryNullableArrayArray(ctx context.Cont if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -51912,11 +51913,11 @@ func (c *Client) sendTestResponseStringByte(ctx context.Context, request string) startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringByte", @@ -51929,7 +51930,7 @@ func (c *Client) sendTestResponseStringByte(ctx context.Context, request string) if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -51983,11 +51984,11 @@ func (c *Client) sendTestResponseStringByteArray(ctx context.Context, request st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringByteArray", @@ -52000,7 +52001,7 @@ func (c *Client) sendTestResponseStringByteArray(ctx context.Context, request st if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -52054,11 +52055,11 @@ func (c *Client) sendTestResponseStringByteArrayArray(ctx context.Context, reque startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringByteArrayArray", @@ -52071,7 +52072,7 @@ func (c *Client) sendTestResponseStringByteArrayArray(ctx context.Context, reque if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -52125,11 +52126,11 @@ func (c *Client) sendTestResponseStringByteNullable(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringByteNullable", @@ -52142,7 +52143,7 @@ func (c *Client) sendTestResponseStringByteNullable(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -52196,11 +52197,11 @@ func (c *Client) sendTestResponseStringByteNullableArray(ctx context.Context, re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringByteNullableArray", @@ -52213,7 +52214,7 @@ func (c *Client) sendTestResponseStringByteNullableArray(ctx context.Context, re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -52267,11 +52268,11 @@ func (c *Client) sendTestResponseStringByteNullableArrayArray(ctx context.Contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringByteNullableArrayArray", @@ -52284,7 +52285,7 @@ func (c *Client) sendTestResponseStringByteNullableArrayArray(ctx context.Contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -52338,11 +52339,11 @@ func (c *Client) sendTestResponseStringDate(ctx context.Context, request string) startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringDate", @@ -52355,7 +52356,7 @@ func (c *Client) sendTestResponseStringDate(ctx context.Context, request string) if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -52409,11 +52410,11 @@ func (c *Client) sendTestResponseStringDateArray(ctx context.Context, request st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringDateArray", @@ -52426,7 +52427,7 @@ func (c *Client) sendTestResponseStringDateArray(ctx context.Context, request st if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -52480,11 +52481,11 @@ func (c *Client) sendTestResponseStringDateArrayArray(ctx context.Context, reque startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringDateArrayArray", @@ -52497,7 +52498,7 @@ func (c *Client) sendTestResponseStringDateArrayArray(ctx context.Context, reque if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -52551,11 +52552,11 @@ func (c *Client) sendTestResponseStringDateNullable(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringDateNullable", @@ -52568,7 +52569,7 @@ func (c *Client) sendTestResponseStringDateNullable(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -52622,11 +52623,11 @@ func (c *Client) sendTestResponseStringDateNullableArray(ctx context.Context, re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringDateNullableArray", @@ -52639,7 +52640,7 @@ func (c *Client) sendTestResponseStringDateNullableArray(ctx context.Context, re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -52693,11 +52694,11 @@ func (c *Client) sendTestResponseStringDateNullableArrayArray(ctx context.Contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringDateNullableArrayArray", @@ -52710,7 +52711,7 @@ func (c *Client) sendTestResponseStringDateNullableArrayArray(ctx context.Contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -52764,11 +52765,11 @@ func (c *Client) sendTestResponseStringDateTime(ctx context.Context, request str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringDateTime", @@ -52781,7 +52782,7 @@ func (c *Client) sendTestResponseStringDateTime(ctx context.Context, request str if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -52835,11 +52836,11 @@ func (c *Client) sendTestResponseStringDateTimeArray(ctx context.Context, reques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringDateTimeArray", @@ -52852,7 +52853,7 @@ func (c *Client) sendTestResponseStringDateTimeArray(ctx context.Context, reques if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -52906,11 +52907,11 @@ func (c *Client) sendTestResponseStringDateTimeArrayArray(ctx context.Context, r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringDateTimeArrayArray", @@ -52923,7 +52924,7 @@ func (c *Client) sendTestResponseStringDateTimeArrayArray(ctx context.Context, r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -52977,11 +52978,11 @@ func (c *Client) sendTestResponseStringDateTimeNullable(ctx context.Context, req startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringDateTimeNullable", @@ -52994,7 +52995,7 @@ func (c *Client) sendTestResponseStringDateTimeNullable(ctx context.Context, req if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -53048,11 +53049,11 @@ func (c *Client) sendTestResponseStringDateTimeNullableArray(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringDateTimeNullableArray", @@ -53065,7 +53066,7 @@ func (c *Client) sendTestResponseStringDateTimeNullableArray(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -53119,11 +53120,11 @@ func (c *Client) sendTestResponseStringDateTimeNullableArrayArray(ctx context.Co startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringDateTimeNullableArrayArray", @@ -53136,7 +53137,7 @@ func (c *Client) sendTestResponseStringDateTimeNullableArrayArray(ctx context.Co if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -53190,11 +53191,11 @@ func (c *Client) sendTestResponseStringDuration(ctx context.Context, request str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringDuration", @@ -53207,7 +53208,7 @@ func (c *Client) sendTestResponseStringDuration(ctx context.Context, request str if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -53261,11 +53262,11 @@ func (c *Client) sendTestResponseStringDurationArray(ctx context.Context, reques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringDurationArray", @@ -53278,7 +53279,7 @@ func (c *Client) sendTestResponseStringDurationArray(ctx context.Context, reques if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -53332,11 +53333,11 @@ func (c *Client) sendTestResponseStringDurationArrayArray(ctx context.Context, r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringDurationArrayArray", @@ -53349,7 +53350,7 @@ func (c *Client) sendTestResponseStringDurationArrayArray(ctx context.Context, r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -53403,11 +53404,11 @@ func (c *Client) sendTestResponseStringDurationNullable(ctx context.Context, req startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringDurationNullable", @@ -53420,7 +53421,7 @@ func (c *Client) sendTestResponseStringDurationNullable(ctx context.Context, req if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -53474,11 +53475,11 @@ func (c *Client) sendTestResponseStringDurationNullableArray(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringDurationNullableArray", @@ -53491,7 +53492,7 @@ func (c *Client) sendTestResponseStringDurationNullableArray(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -53545,11 +53546,11 @@ func (c *Client) sendTestResponseStringDurationNullableArrayArray(ctx context.Co startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringDurationNullableArrayArray", @@ -53562,7 +53563,7 @@ func (c *Client) sendTestResponseStringDurationNullableArrayArray(ctx context.Co if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -53616,11 +53617,11 @@ func (c *Client) sendTestResponseStringEmail(ctx context.Context, request string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringEmail", @@ -53633,7 +53634,7 @@ func (c *Client) sendTestResponseStringEmail(ctx context.Context, request string if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -53687,11 +53688,11 @@ func (c *Client) sendTestResponseStringEmailArray(ctx context.Context, request s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringEmailArray", @@ -53704,7 +53705,7 @@ func (c *Client) sendTestResponseStringEmailArray(ctx context.Context, request s if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -53758,11 +53759,11 @@ func (c *Client) sendTestResponseStringEmailArrayArray(ctx context.Context, requ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringEmailArrayArray", @@ -53775,7 +53776,7 @@ func (c *Client) sendTestResponseStringEmailArrayArray(ctx context.Context, requ if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -53829,11 +53830,11 @@ func (c *Client) sendTestResponseStringEmailNullable(ctx context.Context, reques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringEmailNullable", @@ -53846,7 +53847,7 @@ func (c *Client) sendTestResponseStringEmailNullable(ctx context.Context, reques if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -53900,11 +53901,11 @@ func (c *Client) sendTestResponseStringEmailNullableArray(ctx context.Context, r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringEmailNullableArray", @@ -53917,7 +53918,7 @@ func (c *Client) sendTestResponseStringEmailNullableArray(ctx context.Context, r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -53971,11 +53972,11 @@ func (c *Client) sendTestResponseStringEmailNullableArrayArray(ctx context.Conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringEmailNullableArrayArray", @@ -53988,7 +53989,7 @@ func (c *Client) sendTestResponseStringEmailNullableArrayArray(ctx context.Conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -54042,11 +54043,11 @@ func (c *Client) sendTestResponseStringHostname(ctx context.Context, request str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringHostname", @@ -54059,7 +54060,7 @@ func (c *Client) sendTestResponseStringHostname(ctx context.Context, request str if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -54113,11 +54114,11 @@ func (c *Client) sendTestResponseStringHostnameArray(ctx context.Context, reques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringHostnameArray", @@ -54130,7 +54131,7 @@ func (c *Client) sendTestResponseStringHostnameArray(ctx context.Context, reques if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -54184,11 +54185,11 @@ func (c *Client) sendTestResponseStringHostnameArrayArray(ctx context.Context, r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringHostnameArrayArray", @@ -54201,7 +54202,7 @@ func (c *Client) sendTestResponseStringHostnameArrayArray(ctx context.Context, r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -54255,11 +54256,11 @@ func (c *Client) sendTestResponseStringHostnameNullable(ctx context.Context, req startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringHostnameNullable", @@ -54272,7 +54273,7 @@ func (c *Client) sendTestResponseStringHostnameNullable(ctx context.Context, req if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -54326,11 +54327,11 @@ func (c *Client) sendTestResponseStringHostnameNullableArray(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringHostnameNullableArray", @@ -54343,7 +54344,7 @@ func (c *Client) sendTestResponseStringHostnameNullableArray(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -54397,11 +54398,11 @@ func (c *Client) sendTestResponseStringHostnameNullableArrayArray(ctx context.Co startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringHostnameNullableArrayArray", @@ -54414,7 +54415,7 @@ func (c *Client) sendTestResponseStringHostnameNullableArrayArray(ctx context.Co if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -54468,11 +54469,11 @@ func (c *Client) sendTestResponseStringIP(ctx context.Context, request string) ( startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringIP", @@ -54485,7 +54486,7 @@ func (c *Client) sendTestResponseStringIP(ctx context.Context, request string) ( if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -54539,11 +54540,11 @@ func (c *Client) sendTestResponseStringIPArray(ctx context.Context, request stri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringIPArray", @@ -54556,7 +54557,7 @@ func (c *Client) sendTestResponseStringIPArray(ctx context.Context, request stri if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -54610,11 +54611,11 @@ func (c *Client) sendTestResponseStringIPArrayArray(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringIPArrayArray", @@ -54627,7 +54628,7 @@ func (c *Client) sendTestResponseStringIPArrayArray(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -54681,11 +54682,11 @@ func (c *Client) sendTestResponseStringIPNullable(ctx context.Context, request s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringIPNullable", @@ -54698,7 +54699,7 @@ func (c *Client) sendTestResponseStringIPNullable(ctx context.Context, request s if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -54752,11 +54753,11 @@ func (c *Client) sendTestResponseStringIPNullableArray(ctx context.Context, requ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringIPNullableArray", @@ -54769,7 +54770,7 @@ func (c *Client) sendTestResponseStringIPNullableArray(ctx context.Context, requ if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -54823,11 +54824,11 @@ func (c *Client) sendTestResponseStringIPNullableArrayArray(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringIPNullableArrayArray", @@ -54840,7 +54841,7 @@ func (c *Client) sendTestResponseStringIPNullableArrayArray(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -54894,11 +54895,11 @@ func (c *Client) sendTestResponseStringInt32(ctx context.Context, request string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringInt32", @@ -54911,7 +54912,7 @@ func (c *Client) sendTestResponseStringInt32(ctx context.Context, request string if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -54965,11 +54966,11 @@ func (c *Client) sendTestResponseStringInt32Array(ctx context.Context, request s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringInt32Array", @@ -54982,7 +54983,7 @@ func (c *Client) sendTestResponseStringInt32Array(ctx context.Context, request s if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -55036,11 +55037,11 @@ func (c *Client) sendTestResponseStringInt32ArrayArray(ctx context.Context, requ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringInt32ArrayArray", @@ -55053,7 +55054,7 @@ func (c *Client) sendTestResponseStringInt32ArrayArray(ctx context.Context, requ if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -55107,11 +55108,11 @@ func (c *Client) sendTestResponseStringInt32Nullable(ctx context.Context, reques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringInt32Nullable", @@ -55124,7 +55125,7 @@ func (c *Client) sendTestResponseStringInt32Nullable(ctx context.Context, reques if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -55178,11 +55179,11 @@ func (c *Client) sendTestResponseStringInt32NullableArray(ctx context.Context, r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringInt32NullableArray", @@ -55195,7 +55196,7 @@ func (c *Client) sendTestResponseStringInt32NullableArray(ctx context.Context, r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -55249,11 +55250,11 @@ func (c *Client) sendTestResponseStringInt32NullableArrayArray(ctx context.Conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringInt32NullableArrayArray", @@ -55266,7 +55267,7 @@ func (c *Client) sendTestResponseStringInt32NullableArrayArray(ctx context.Conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -55320,11 +55321,11 @@ func (c *Client) sendTestResponseStringInt64(ctx context.Context, request string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringInt64", @@ -55337,7 +55338,7 @@ func (c *Client) sendTestResponseStringInt64(ctx context.Context, request string if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -55391,11 +55392,11 @@ func (c *Client) sendTestResponseStringInt64Array(ctx context.Context, request s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringInt64Array", @@ -55408,7 +55409,7 @@ func (c *Client) sendTestResponseStringInt64Array(ctx context.Context, request s if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -55462,11 +55463,11 @@ func (c *Client) sendTestResponseStringInt64ArrayArray(ctx context.Context, requ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringInt64ArrayArray", @@ -55479,7 +55480,7 @@ func (c *Client) sendTestResponseStringInt64ArrayArray(ctx context.Context, requ if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -55533,11 +55534,11 @@ func (c *Client) sendTestResponseStringInt64Nullable(ctx context.Context, reques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringInt64Nullable", @@ -55550,7 +55551,7 @@ func (c *Client) sendTestResponseStringInt64Nullable(ctx context.Context, reques if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -55604,11 +55605,11 @@ func (c *Client) sendTestResponseStringInt64NullableArray(ctx context.Context, r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringInt64NullableArray", @@ -55621,7 +55622,7 @@ func (c *Client) sendTestResponseStringInt64NullableArray(ctx context.Context, r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -55675,11 +55676,11 @@ func (c *Client) sendTestResponseStringInt64NullableArrayArray(ctx context.Conte startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringInt64NullableArrayArray", @@ -55692,7 +55693,7 @@ func (c *Client) sendTestResponseStringInt64NullableArrayArray(ctx context.Conte if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -55746,11 +55747,11 @@ func (c *Client) sendTestResponseStringIpv4(ctx context.Context, request string) startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringIpv4", @@ -55763,7 +55764,7 @@ func (c *Client) sendTestResponseStringIpv4(ctx context.Context, request string) if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -55817,11 +55818,11 @@ func (c *Client) sendTestResponseStringIpv4Array(ctx context.Context, request st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringIpv4Array", @@ -55834,7 +55835,7 @@ func (c *Client) sendTestResponseStringIpv4Array(ctx context.Context, request st if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -55888,11 +55889,11 @@ func (c *Client) sendTestResponseStringIpv4ArrayArray(ctx context.Context, reque startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringIpv4ArrayArray", @@ -55905,7 +55906,7 @@ func (c *Client) sendTestResponseStringIpv4ArrayArray(ctx context.Context, reque if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -55959,11 +55960,11 @@ func (c *Client) sendTestResponseStringIpv4Nullable(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringIpv4Nullable", @@ -55976,7 +55977,7 @@ func (c *Client) sendTestResponseStringIpv4Nullable(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -56030,11 +56031,11 @@ func (c *Client) sendTestResponseStringIpv4NullableArray(ctx context.Context, re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringIpv4NullableArray", @@ -56047,7 +56048,7 @@ func (c *Client) sendTestResponseStringIpv4NullableArray(ctx context.Context, re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -56101,11 +56102,11 @@ func (c *Client) sendTestResponseStringIpv4NullableArrayArray(ctx context.Contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringIpv4NullableArrayArray", @@ -56118,7 +56119,7 @@ func (c *Client) sendTestResponseStringIpv4NullableArrayArray(ctx context.Contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -56172,11 +56173,11 @@ func (c *Client) sendTestResponseStringIpv6(ctx context.Context, request string) startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringIpv6", @@ -56189,7 +56190,7 @@ func (c *Client) sendTestResponseStringIpv6(ctx context.Context, request string) if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -56243,11 +56244,11 @@ func (c *Client) sendTestResponseStringIpv6Array(ctx context.Context, request st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringIpv6Array", @@ -56260,7 +56261,7 @@ func (c *Client) sendTestResponseStringIpv6Array(ctx context.Context, request st if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -56314,11 +56315,11 @@ func (c *Client) sendTestResponseStringIpv6ArrayArray(ctx context.Context, reque startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringIpv6ArrayArray", @@ -56331,7 +56332,7 @@ func (c *Client) sendTestResponseStringIpv6ArrayArray(ctx context.Context, reque if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -56385,11 +56386,11 @@ func (c *Client) sendTestResponseStringIpv6Nullable(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringIpv6Nullable", @@ -56402,7 +56403,7 @@ func (c *Client) sendTestResponseStringIpv6Nullable(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -56456,11 +56457,11 @@ func (c *Client) sendTestResponseStringIpv6NullableArray(ctx context.Context, re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringIpv6NullableArray", @@ -56473,7 +56474,7 @@ func (c *Client) sendTestResponseStringIpv6NullableArray(ctx context.Context, re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -56527,11 +56528,11 @@ func (c *Client) sendTestResponseStringIpv6NullableArrayArray(ctx context.Contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringIpv6NullableArrayArray", @@ -56544,7 +56545,7 @@ func (c *Client) sendTestResponseStringIpv6NullableArrayArray(ctx context.Contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -56598,11 +56599,11 @@ func (c *Client) sendTestResponseStringNullable(ctx context.Context, request str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringNullable", @@ -56615,7 +56616,7 @@ func (c *Client) sendTestResponseStringNullable(ctx context.Context, request str if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -56669,11 +56670,11 @@ func (c *Client) sendTestResponseStringNullableArray(ctx context.Context, reques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringNullableArray", @@ -56686,7 +56687,7 @@ func (c *Client) sendTestResponseStringNullableArray(ctx context.Context, reques if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -56740,11 +56741,11 @@ func (c *Client) sendTestResponseStringNullableArrayArray(ctx context.Context, r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringNullableArrayArray", @@ -56757,7 +56758,7 @@ func (c *Client) sendTestResponseStringNullableArrayArray(ctx context.Context, r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -56811,11 +56812,11 @@ func (c *Client) sendTestResponseStringPassword(ctx context.Context, request str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringPassword", @@ -56828,7 +56829,7 @@ func (c *Client) sendTestResponseStringPassword(ctx context.Context, request str if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -56882,11 +56883,11 @@ func (c *Client) sendTestResponseStringPasswordArray(ctx context.Context, reques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringPasswordArray", @@ -56899,7 +56900,7 @@ func (c *Client) sendTestResponseStringPasswordArray(ctx context.Context, reques if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -56953,11 +56954,11 @@ func (c *Client) sendTestResponseStringPasswordArrayArray(ctx context.Context, r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringPasswordArrayArray", @@ -56970,7 +56971,7 @@ func (c *Client) sendTestResponseStringPasswordArrayArray(ctx context.Context, r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -57024,11 +57025,11 @@ func (c *Client) sendTestResponseStringPasswordNullable(ctx context.Context, req startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringPasswordNullable", @@ -57041,7 +57042,7 @@ func (c *Client) sendTestResponseStringPasswordNullable(ctx context.Context, req if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -57095,11 +57096,11 @@ func (c *Client) sendTestResponseStringPasswordNullableArray(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringPasswordNullableArray", @@ -57112,7 +57113,7 @@ func (c *Client) sendTestResponseStringPasswordNullableArray(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -57166,11 +57167,11 @@ func (c *Client) sendTestResponseStringPasswordNullableArrayArray(ctx context.Co startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringPasswordNullableArrayArray", @@ -57183,7 +57184,7 @@ func (c *Client) sendTestResponseStringPasswordNullableArrayArray(ctx context.Co if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -57237,11 +57238,11 @@ func (c *Client) sendTestResponseStringTime(ctx context.Context, request string) startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringTime", @@ -57254,7 +57255,7 @@ func (c *Client) sendTestResponseStringTime(ctx context.Context, request string) if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -57308,11 +57309,11 @@ func (c *Client) sendTestResponseStringTimeArray(ctx context.Context, request st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringTimeArray", @@ -57325,7 +57326,7 @@ func (c *Client) sendTestResponseStringTimeArray(ctx context.Context, request st if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -57379,11 +57380,11 @@ func (c *Client) sendTestResponseStringTimeArrayArray(ctx context.Context, reque startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringTimeArrayArray", @@ -57396,7 +57397,7 @@ func (c *Client) sendTestResponseStringTimeArrayArray(ctx context.Context, reque if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -57450,11 +57451,11 @@ func (c *Client) sendTestResponseStringTimeNullable(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringTimeNullable", @@ -57467,7 +57468,7 @@ func (c *Client) sendTestResponseStringTimeNullable(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -57521,11 +57522,11 @@ func (c *Client) sendTestResponseStringTimeNullableArray(ctx context.Context, re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringTimeNullableArray", @@ -57538,7 +57539,7 @@ func (c *Client) sendTestResponseStringTimeNullableArray(ctx context.Context, re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -57592,11 +57593,11 @@ func (c *Client) sendTestResponseStringTimeNullableArrayArray(ctx context.Contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringTimeNullableArrayArray", @@ -57609,7 +57610,7 @@ func (c *Client) sendTestResponseStringTimeNullableArrayArray(ctx context.Contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -57663,11 +57664,11 @@ func (c *Client) sendTestResponseStringURI(ctx context.Context, request string) startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringURI", @@ -57680,7 +57681,7 @@ func (c *Client) sendTestResponseStringURI(ctx context.Context, request string) if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -57734,11 +57735,11 @@ func (c *Client) sendTestResponseStringURIArray(ctx context.Context, request str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringURIArray", @@ -57751,7 +57752,7 @@ func (c *Client) sendTestResponseStringURIArray(ctx context.Context, request str if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -57805,11 +57806,11 @@ func (c *Client) sendTestResponseStringURIArrayArray(ctx context.Context, reques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringURIArrayArray", @@ -57822,7 +57823,7 @@ func (c *Client) sendTestResponseStringURIArrayArray(ctx context.Context, reques if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -57876,11 +57877,11 @@ func (c *Client) sendTestResponseStringURINullable(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringURINullable", @@ -57893,7 +57894,7 @@ func (c *Client) sendTestResponseStringURINullable(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -57947,11 +57948,11 @@ func (c *Client) sendTestResponseStringURINullableArray(ctx context.Context, req startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringURINullableArray", @@ -57964,7 +57965,7 @@ func (c *Client) sendTestResponseStringURINullableArray(ctx context.Context, req if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -58018,11 +58019,11 @@ func (c *Client) sendTestResponseStringURINullableArrayArray(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringURINullableArrayArray", @@ -58035,7 +58036,7 @@ func (c *Client) sendTestResponseStringURINullableArrayArray(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -58089,11 +58090,11 @@ func (c *Client) sendTestResponseStringUUID(ctx context.Context, request string) startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringUUID", @@ -58106,7 +58107,7 @@ func (c *Client) sendTestResponseStringUUID(ctx context.Context, request string) if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -58160,11 +58161,11 @@ func (c *Client) sendTestResponseStringUUIDArray(ctx context.Context, request st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringUUIDArray", @@ -58177,7 +58178,7 @@ func (c *Client) sendTestResponseStringUUIDArray(ctx context.Context, request st if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -58231,11 +58232,11 @@ func (c *Client) sendTestResponseStringUUIDArrayArray(ctx context.Context, reque startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringUUIDArrayArray", @@ -58248,7 +58249,7 @@ func (c *Client) sendTestResponseStringUUIDArrayArray(ctx context.Context, reque if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -58302,11 +58303,11 @@ func (c *Client) sendTestResponseStringUUIDNullable(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringUUIDNullable", @@ -58319,7 +58320,7 @@ func (c *Client) sendTestResponseStringUUIDNullable(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -58373,11 +58374,11 @@ func (c *Client) sendTestResponseStringUUIDNullableArray(ctx context.Context, re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringUUIDNullableArray", @@ -58390,7 +58391,7 @@ func (c *Client) sendTestResponseStringUUIDNullableArray(ctx context.Context, re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -58444,11 +58445,11 @@ func (c *Client) sendTestResponseStringUUIDNullableArrayArray(ctx context.Contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringUUIDNullableArrayArray", @@ -58461,7 +58462,7 @@ func (c *Client) sendTestResponseStringUUIDNullableArrayArray(ctx context.Contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -58515,11 +58516,11 @@ func (c *Client) sendTestResponseStringUnix(ctx context.Context, request string) startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringUnix", @@ -58532,7 +58533,7 @@ func (c *Client) sendTestResponseStringUnix(ctx context.Context, request string) if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -58586,11 +58587,11 @@ func (c *Client) sendTestResponseStringUnixArray(ctx context.Context, request st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringUnixArray", @@ -58603,7 +58604,7 @@ func (c *Client) sendTestResponseStringUnixArray(ctx context.Context, request st if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -58657,11 +58658,11 @@ func (c *Client) sendTestResponseStringUnixArrayArray(ctx context.Context, reque startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringUnixArrayArray", @@ -58674,7 +58675,7 @@ func (c *Client) sendTestResponseStringUnixArrayArray(ctx context.Context, reque if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -58728,11 +58729,11 @@ func (c *Client) sendTestResponseStringUnixMicro(ctx context.Context, request st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringUnixMicro", @@ -58745,7 +58746,7 @@ func (c *Client) sendTestResponseStringUnixMicro(ctx context.Context, request st if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -58799,11 +58800,11 @@ func (c *Client) sendTestResponseStringUnixMicroArray(ctx context.Context, reque startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringUnixMicroArray", @@ -58816,7 +58817,7 @@ func (c *Client) sendTestResponseStringUnixMicroArray(ctx context.Context, reque if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -58870,11 +58871,11 @@ func (c *Client) sendTestResponseStringUnixMicroArrayArray(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringUnixMicroArrayArray", @@ -58887,7 +58888,7 @@ func (c *Client) sendTestResponseStringUnixMicroArrayArray(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -58941,11 +58942,11 @@ func (c *Client) sendTestResponseStringUnixMicroNullable(ctx context.Context, re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringUnixMicroNullable", @@ -58958,7 +58959,7 @@ func (c *Client) sendTestResponseStringUnixMicroNullable(ctx context.Context, re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -59012,11 +59013,11 @@ func (c *Client) sendTestResponseStringUnixMicroNullableArray(ctx context.Contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringUnixMicroNullableArray", @@ -59029,7 +59030,7 @@ func (c *Client) sendTestResponseStringUnixMicroNullableArray(ctx context.Contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -59083,11 +59084,11 @@ func (c *Client) sendTestResponseStringUnixMicroNullableArrayArray(ctx context.C startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringUnixMicroNullableArrayArray", @@ -59100,7 +59101,7 @@ func (c *Client) sendTestResponseStringUnixMicroNullableArrayArray(ctx context.C if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -59154,11 +59155,11 @@ func (c *Client) sendTestResponseStringUnixMilli(ctx context.Context, request st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringUnixMilli", @@ -59171,7 +59172,7 @@ func (c *Client) sendTestResponseStringUnixMilli(ctx context.Context, request st if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -59225,11 +59226,11 @@ func (c *Client) sendTestResponseStringUnixMilliArray(ctx context.Context, reque startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringUnixMilliArray", @@ -59242,7 +59243,7 @@ func (c *Client) sendTestResponseStringUnixMilliArray(ctx context.Context, reque if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -59296,11 +59297,11 @@ func (c *Client) sendTestResponseStringUnixMilliArrayArray(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringUnixMilliArrayArray", @@ -59313,7 +59314,7 @@ func (c *Client) sendTestResponseStringUnixMilliArrayArray(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -59367,11 +59368,11 @@ func (c *Client) sendTestResponseStringUnixMilliNullable(ctx context.Context, re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringUnixMilliNullable", @@ -59384,7 +59385,7 @@ func (c *Client) sendTestResponseStringUnixMilliNullable(ctx context.Context, re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -59438,11 +59439,11 @@ func (c *Client) sendTestResponseStringUnixMilliNullableArray(ctx context.Contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringUnixMilliNullableArray", @@ -59455,7 +59456,7 @@ func (c *Client) sendTestResponseStringUnixMilliNullableArray(ctx context.Contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -59509,11 +59510,11 @@ func (c *Client) sendTestResponseStringUnixMilliNullableArrayArray(ctx context.C startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringUnixMilliNullableArrayArray", @@ -59526,7 +59527,7 @@ func (c *Client) sendTestResponseStringUnixMilliNullableArrayArray(ctx context.C if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -59580,11 +59581,11 @@ func (c *Client) sendTestResponseStringUnixNano(ctx context.Context, request str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringUnixNano", @@ -59597,7 +59598,7 @@ func (c *Client) sendTestResponseStringUnixNano(ctx context.Context, request str if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -59651,11 +59652,11 @@ func (c *Client) sendTestResponseStringUnixNanoArray(ctx context.Context, reques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringUnixNanoArray", @@ -59668,7 +59669,7 @@ func (c *Client) sendTestResponseStringUnixNanoArray(ctx context.Context, reques if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -59722,11 +59723,11 @@ func (c *Client) sendTestResponseStringUnixNanoArrayArray(ctx context.Context, r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringUnixNanoArrayArray", @@ -59739,7 +59740,7 @@ func (c *Client) sendTestResponseStringUnixNanoArrayArray(ctx context.Context, r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -59793,11 +59794,11 @@ func (c *Client) sendTestResponseStringUnixNanoNullable(ctx context.Context, req startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringUnixNanoNullable", @@ -59810,7 +59811,7 @@ func (c *Client) sendTestResponseStringUnixNanoNullable(ctx context.Context, req if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -59864,11 +59865,11 @@ func (c *Client) sendTestResponseStringUnixNanoNullableArray(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringUnixNanoNullableArray", @@ -59881,7 +59882,7 @@ func (c *Client) sendTestResponseStringUnixNanoNullableArray(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -59935,11 +59936,11 @@ func (c *Client) sendTestResponseStringUnixNanoNullableArrayArray(ctx context.Co startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringUnixNanoNullableArrayArray", @@ -59952,7 +59953,7 @@ func (c *Client) sendTestResponseStringUnixNanoNullableArrayArray(ctx context.Co if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -60006,11 +60007,11 @@ func (c *Client) sendTestResponseStringUnixNullable(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringUnixNullable", @@ -60023,7 +60024,7 @@ func (c *Client) sendTestResponseStringUnixNullable(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -60077,11 +60078,11 @@ func (c *Client) sendTestResponseStringUnixNullableArray(ctx context.Context, re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringUnixNullableArray", @@ -60094,7 +60095,7 @@ func (c *Client) sendTestResponseStringUnixNullableArray(ctx context.Context, re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -60148,11 +60149,11 @@ func (c *Client) sendTestResponseStringUnixNullableArrayArray(ctx context.Contex startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringUnixNullableArrayArray", @@ -60165,7 +60166,7 @@ func (c *Client) sendTestResponseStringUnixNullableArrayArray(ctx context.Contex if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -60219,11 +60220,11 @@ func (c *Client) sendTestResponseStringUnixSeconds(ctx context.Context, request startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringUnixSeconds", @@ -60236,7 +60237,7 @@ func (c *Client) sendTestResponseStringUnixSeconds(ctx context.Context, request if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -60290,11 +60291,11 @@ func (c *Client) sendTestResponseStringUnixSecondsArray(ctx context.Context, req startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringUnixSecondsArray", @@ -60307,7 +60308,7 @@ func (c *Client) sendTestResponseStringUnixSecondsArray(ctx context.Context, req if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -60361,11 +60362,11 @@ func (c *Client) sendTestResponseStringUnixSecondsArrayArray(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringUnixSecondsArrayArray", @@ -60378,7 +60379,7 @@ func (c *Client) sendTestResponseStringUnixSecondsArrayArray(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -60432,11 +60433,11 @@ func (c *Client) sendTestResponseStringUnixSecondsNullable(ctx context.Context, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringUnixSecondsNullable", @@ -60449,7 +60450,7 @@ func (c *Client) sendTestResponseStringUnixSecondsNullable(ctx context.Context, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -60503,11 +60504,11 @@ func (c *Client) sendTestResponseStringUnixSecondsNullableArray(ctx context.Cont startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringUnixSecondsNullableArray", @@ -60520,7 +60521,7 @@ func (c *Client) sendTestResponseStringUnixSecondsNullableArray(ctx context.Cont if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -60574,11 +60575,11 @@ func (c *Client) sendTestResponseStringUnixSecondsNullableArrayArray(ctx context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestResponseStringUnixSecondsNullableArrayArray", @@ -60591,7 +60592,7 @@ func (c *Client) sendTestResponseStringUnixSecondsNullableArrayArray(ctx context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() diff --git a/examples/ex_test_format/oas_handlers_gen.go b/examples/ex_test_format/oas_handlers_gen.go index 6ff6bcd48..96604f0a1 100644 --- a/examples/ex_test_format/oas_handlers_gen.go +++ b/examples/ex_test_format/oas_handlers_gen.go @@ -13,6 +13,7 @@ import ( "github.com/google/uuid" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" semconv "go.opentelemetry.io/otel/semconv/v1.17.0" "go.opentelemetry.io/otel/trace" @@ -42,17 +43,17 @@ func (s *Server) handleTestQueryParameterRequest(args [0]string, argsEscaped boo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -473,17 +474,17 @@ func (s *Server) handleTestRequestAnyRequest(args [0]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -573,17 +574,17 @@ func (s *Server) handleTestRequestBooleanRequest(args [0]string, argsEscaped boo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -673,17 +674,17 @@ func (s *Server) handleTestRequestBooleanArrayRequest(args [0]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -773,17 +774,17 @@ func (s *Server) handleTestRequestBooleanArrayArrayRequest(args [0]string, argsE startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -873,17 +874,17 @@ func (s *Server) handleTestRequestBooleanNullableRequest(args [0]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -973,17 +974,17 @@ func (s *Server) handleTestRequestBooleanNullableArrayRequest(args [0]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1073,17 +1074,17 @@ func (s *Server) handleTestRequestBooleanNullableArrayArrayRequest(args [0]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1173,17 +1174,17 @@ func (s *Server) handleTestRequestEmptyStructRequest(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1273,17 +1274,17 @@ func (s *Server) handleTestRequestFormatTestRequest(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1373,17 +1374,17 @@ func (s *Server) handleTestRequestIntegerRequest(args [0]string, argsEscaped boo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1473,17 +1474,17 @@ func (s *Server) handleTestRequestIntegerArrayRequest(args [0]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1573,17 +1574,17 @@ func (s *Server) handleTestRequestIntegerArrayArrayRequest(args [0]string, argsE startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1673,17 +1674,17 @@ func (s *Server) handleTestRequestIntegerInt32Request(args [0]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1773,17 +1774,17 @@ func (s *Server) handleTestRequestIntegerInt32ArrayRequest(args [0]string, argsE startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1873,17 +1874,17 @@ func (s *Server) handleTestRequestIntegerInt32ArrayArrayRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1973,17 +1974,17 @@ func (s *Server) handleTestRequestIntegerInt32NullableRequest(args [0]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2073,17 +2074,17 @@ func (s *Server) handleTestRequestIntegerInt32NullableArrayRequest(args [0]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2173,17 +2174,17 @@ func (s *Server) handleTestRequestIntegerInt32NullableArrayArrayRequest(args [0] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2273,17 +2274,17 @@ func (s *Server) handleTestRequestIntegerInt64Request(args [0]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2373,17 +2374,17 @@ func (s *Server) handleTestRequestIntegerInt64ArrayRequest(args [0]string, argsE startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2473,17 +2474,17 @@ func (s *Server) handleTestRequestIntegerInt64ArrayArrayRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2573,17 +2574,17 @@ func (s *Server) handleTestRequestIntegerInt64NullableRequest(args [0]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2673,17 +2674,17 @@ func (s *Server) handleTestRequestIntegerInt64NullableArrayRequest(args [0]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2773,17 +2774,17 @@ func (s *Server) handleTestRequestIntegerInt64NullableArrayArrayRequest(args [0] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2873,17 +2874,17 @@ func (s *Server) handleTestRequestIntegerNullableRequest(args [0]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2973,17 +2974,17 @@ func (s *Server) handleTestRequestIntegerNullableArrayRequest(args [0]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -3073,17 +3074,17 @@ func (s *Server) handleTestRequestIntegerNullableArrayArrayRequest(args [0]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -3173,17 +3174,17 @@ func (s *Server) handleTestRequestIntegerUintRequest(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -3273,17 +3274,17 @@ func (s *Server) handleTestRequestIntegerUint32Request(args [0]string, argsEscap startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -3373,17 +3374,17 @@ func (s *Server) handleTestRequestIntegerUint32ArrayRequest(args [0]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -3473,17 +3474,17 @@ func (s *Server) handleTestRequestIntegerUint32ArrayArrayRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -3573,17 +3574,17 @@ func (s *Server) handleTestRequestIntegerUint32NullableRequest(args [0]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -3673,17 +3674,17 @@ func (s *Server) handleTestRequestIntegerUint32NullableArrayRequest(args [0]stri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -3773,17 +3774,17 @@ func (s *Server) handleTestRequestIntegerUint32NullableArrayArrayRequest(args [0 startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -3873,17 +3874,17 @@ func (s *Server) handleTestRequestIntegerUint64Request(args [0]string, argsEscap startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -3973,17 +3974,17 @@ func (s *Server) handleTestRequestIntegerUint64ArrayRequest(args [0]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -4073,17 +4074,17 @@ func (s *Server) handleTestRequestIntegerUint64ArrayArrayRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -4173,17 +4174,17 @@ func (s *Server) handleTestRequestIntegerUint64NullableRequest(args [0]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -4273,17 +4274,17 @@ func (s *Server) handleTestRequestIntegerUint64NullableArrayRequest(args [0]stri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -4373,17 +4374,17 @@ func (s *Server) handleTestRequestIntegerUint64NullableArrayArrayRequest(args [0 startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -4473,17 +4474,17 @@ func (s *Server) handleTestRequestIntegerUintArrayRequest(args [0]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -4573,17 +4574,17 @@ func (s *Server) handleTestRequestIntegerUintArrayArrayRequest(args [0]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -4673,17 +4674,17 @@ func (s *Server) handleTestRequestIntegerUintNullableRequest(args [0]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -4773,17 +4774,17 @@ func (s *Server) handleTestRequestIntegerUintNullableArrayRequest(args [0]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -4873,17 +4874,17 @@ func (s *Server) handleTestRequestIntegerUintNullableArrayArrayRequest(args [0]s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -4973,17 +4974,17 @@ func (s *Server) handleTestRequestIntegerUnixRequest(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -5073,17 +5074,17 @@ func (s *Server) handleTestRequestIntegerUnixArrayRequest(args [0]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -5173,17 +5174,17 @@ func (s *Server) handleTestRequestIntegerUnixArrayArrayRequest(args [0]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -5273,17 +5274,17 @@ func (s *Server) handleTestRequestIntegerUnixMicroRequest(args [0]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -5373,17 +5374,17 @@ func (s *Server) handleTestRequestIntegerUnixMicroArrayRequest(args [0]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -5473,17 +5474,17 @@ func (s *Server) handleTestRequestIntegerUnixMicroArrayArrayRequest(args [0]stri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -5573,17 +5574,17 @@ func (s *Server) handleTestRequestIntegerUnixMicroNullableRequest(args [0]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -5673,17 +5674,17 @@ func (s *Server) handleTestRequestIntegerUnixMicroNullableArrayRequest(args [0]s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -5773,17 +5774,17 @@ func (s *Server) handleTestRequestIntegerUnixMicroNullableArrayArrayRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -5873,17 +5874,17 @@ func (s *Server) handleTestRequestIntegerUnixMilliRequest(args [0]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -5973,17 +5974,17 @@ func (s *Server) handleTestRequestIntegerUnixMilliArrayRequest(args [0]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -6073,17 +6074,17 @@ func (s *Server) handleTestRequestIntegerUnixMilliArrayArrayRequest(args [0]stri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -6173,17 +6174,17 @@ func (s *Server) handleTestRequestIntegerUnixMilliNullableRequest(args [0]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -6273,17 +6274,17 @@ func (s *Server) handleTestRequestIntegerUnixMilliNullableArrayRequest(args [0]s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -6373,17 +6374,17 @@ func (s *Server) handleTestRequestIntegerUnixMilliNullableArrayArrayRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -6473,17 +6474,17 @@ func (s *Server) handleTestRequestIntegerUnixNanoRequest(args [0]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -6573,17 +6574,17 @@ func (s *Server) handleTestRequestIntegerUnixNanoArrayRequest(args [0]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -6673,17 +6674,17 @@ func (s *Server) handleTestRequestIntegerUnixNanoArrayArrayRequest(args [0]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -6773,17 +6774,17 @@ func (s *Server) handleTestRequestIntegerUnixNanoNullableRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -6873,17 +6874,17 @@ func (s *Server) handleTestRequestIntegerUnixNanoNullableArrayRequest(args [0]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -6973,17 +6974,17 @@ func (s *Server) handleTestRequestIntegerUnixNanoNullableArrayArrayRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -7073,17 +7074,17 @@ func (s *Server) handleTestRequestIntegerUnixNullableRequest(args [0]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -7173,17 +7174,17 @@ func (s *Server) handleTestRequestIntegerUnixNullableArrayRequest(args [0]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -7273,17 +7274,17 @@ func (s *Server) handleTestRequestIntegerUnixNullableArrayArrayRequest(args [0]s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -7373,17 +7374,17 @@ func (s *Server) handleTestRequestIntegerUnixSecondsRequest(args [0]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -7473,17 +7474,17 @@ func (s *Server) handleTestRequestIntegerUnixSecondsArrayRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -7573,17 +7574,17 @@ func (s *Server) handleTestRequestIntegerUnixSecondsArrayArrayRequest(args [0]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -7673,17 +7674,17 @@ func (s *Server) handleTestRequestIntegerUnixSecondsNullableRequest(args [0]stri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -7773,17 +7774,17 @@ func (s *Server) handleTestRequestIntegerUnixSecondsNullableArrayRequest(args [0 startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -7873,17 +7874,17 @@ func (s *Server) handleTestRequestIntegerUnixSecondsNullableArrayArrayRequest(ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -7973,17 +7974,17 @@ func (s *Server) handleTestRequestNullRequest(args [0]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -8073,17 +8074,17 @@ func (s *Server) handleTestRequestNullArrayRequest(args [0]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -8173,17 +8174,17 @@ func (s *Server) handleTestRequestNullArrayArrayRequest(args [0]string, argsEsca startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -8273,17 +8274,17 @@ func (s *Server) handleTestRequestNullNullableRequest(args [0]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -8373,17 +8374,17 @@ func (s *Server) handleTestRequestNullNullableArrayRequest(args [0]string, argsE startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -8473,17 +8474,17 @@ func (s *Server) handleTestRequestNullNullableArrayArrayRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -8573,17 +8574,17 @@ func (s *Server) handleTestRequestNumberRequest(args [0]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -8673,17 +8674,17 @@ func (s *Server) handleTestRequestNumberArrayRequest(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -8773,17 +8774,17 @@ func (s *Server) handleTestRequestNumberArrayArrayRequest(args [0]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -8873,17 +8874,17 @@ func (s *Server) handleTestRequestNumberDoubleRequest(args [0]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -8973,17 +8974,17 @@ func (s *Server) handleTestRequestNumberDoubleArrayRequest(args [0]string, argsE startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -9073,17 +9074,17 @@ func (s *Server) handleTestRequestNumberDoubleArrayArrayRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -9173,17 +9174,17 @@ func (s *Server) handleTestRequestNumberDoubleNullableRequest(args [0]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -9273,17 +9274,17 @@ func (s *Server) handleTestRequestNumberDoubleNullableArrayRequest(args [0]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -9373,17 +9374,17 @@ func (s *Server) handleTestRequestNumberDoubleNullableArrayArrayRequest(args [0] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -9473,17 +9474,17 @@ func (s *Server) handleTestRequestNumberFloatRequest(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -9573,17 +9574,17 @@ func (s *Server) handleTestRequestNumberFloatArrayRequest(args [0]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -9673,17 +9674,17 @@ func (s *Server) handleTestRequestNumberFloatArrayArrayRequest(args [0]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -9773,17 +9774,17 @@ func (s *Server) handleTestRequestNumberFloatNullableRequest(args [0]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -9873,17 +9874,17 @@ func (s *Server) handleTestRequestNumberFloatNullableArrayRequest(args [0]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -9973,17 +9974,17 @@ func (s *Server) handleTestRequestNumberFloatNullableArrayArrayRequest(args [0]s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -10073,17 +10074,17 @@ func (s *Server) handleTestRequestNumberInt32Request(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -10173,17 +10174,17 @@ func (s *Server) handleTestRequestNumberInt32ArrayRequest(args [0]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -10273,17 +10274,17 @@ func (s *Server) handleTestRequestNumberInt32ArrayArrayRequest(args [0]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -10373,17 +10374,17 @@ func (s *Server) handleTestRequestNumberInt32NullableRequest(args [0]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -10473,17 +10474,17 @@ func (s *Server) handleTestRequestNumberInt32NullableArrayRequest(args [0]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -10573,17 +10574,17 @@ func (s *Server) handleTestRequestNumberInt32NullableArrayArrayRequest(args [0]s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -10673,17 +10674,17 @@ func (s *Server) handleTestRequestNumberInt64Request(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -10773,17 +10774,17 @@ func (s *Server) handleTestRequestNumberInt64ArrayRequest(args [0]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -10873,17 +10874,17 @@ func (s *Server) handleTestRequestNumberInt64ArrayArrayRequest(args [0]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -10973,17 +10974,17 @@ func (s *Server) handleTestRequestNumberInt64NullableRequest(args [0]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -11073,17 +11074,17 @@ func (s *Server) handleTestRequestNumberInt64NullableArrayRequest(args [0]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -11173,17 +11174,17 @@ func (s *Server) handleTestRequestNumberInt64NullableArrayArrayRequest(args [0]s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -11273,17 +11274,17 @@ func (s *Server) handleTestRequestNumberNullableRequest(args [0]string, argsEsca startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -11373,17 +11374,17 @@ func (s *Server) handleTestRequestNumberNullableArrayRequest(args [0]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -11473,17 +11474,17 @@ func (s *Server) handleTestRequestNumberNullableArrayArrayRequest(args [0]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -11573,17 +11574,17 @@ func (s *Server) handleTestRequestRequiredAnyRequest(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -11673,17 +11674,17 @@ func (s *Server) handleTestRequestRequiredBooleanRequest(args [0]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -11773,17 +11774,17 @@ func (s *Server) handleTestRequestRequiredBooleanArrayRequest(args [0]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -11873,17 +11874,17 @@ func (s *Server) handleTestRequestRequiredBooleanArrayArrayRequest(args [0]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -11973,17 +11974,17 @@ func (s *Server) handleTestRequestRequiredBooleanNullableRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -12073,17 +12074,17 @@ func (s *Server) handleTestRequestRequiredBooleanNullableArrayRequest(args [0]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -12173,17 +12174,17 @@ func (s *Server) handleTestRequestRequiredBooleanNullableArrayArrayRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -12273,17 +12274,17 @@ func (s *Server) handleTestRequestRequiredEmptyStructRequest(args [0]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -12373,17 +12374,17 @@ func (s *Server) handleTestRequestRequiredFormatTestRequest(args [0]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -12473,17 +12474,17 @@ func (s *Server) handleTestRequestRequiredIntegerRequest(args [0]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -12573,17 +12574,17 @@ func (s *Server) handleTestRequestRequiredIntegerArrayRequest(args [0]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -12673,17 +12674,17 @@ func (s *Server) handleTestRequestRequiredIntegerArrayArrayRequest(args [0]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -12773,17 +12774,17 @@ func (s *Server) handleTestRequestRequiredIntegerInt32Request(args [0]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -12873,17 +12874,17 @@ func (s *Server) handleTestRequestRequiredIntegerInt32ArrayRequest(args [0]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -12973,17 +12974,17 @@ func (s *Server) handleTestRequestRequiredIntegerInt32ArrayArrayRequest(args [0] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -13073,17 +13074,17 @@ func (s *Server) handleTestRequestRequiredIntegerInt32NullableRequest(args [0]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -13173,17 +13174,17 @@ func (s *Server) handleTestRequestRequiredIntegerInt32NullableArrayRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -13273,17 +13274,17 @@ func (s *Server) handleTestRequestRequiredIntegerInt32NullableArrayArrayRequest( startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -13373,17 +13374,17 @@ func (s *Server) handleTestRequestRequiredIntegerInt64Request(args [0]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -13473,17 +13474,17 @@ func (s *Server) handleTestRequestRequiredIntegerInt64ArrayRequest(args [0]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -13573,17 +13574,17 @@ func (s *Server) handleTestRequestRequiredIntegerInt64ArrayArrayRequest(args [0] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -13673,17 +13674,17 @@ func (s *Server) handleTestRequestRequiredIntegerInt64NullableRequest(args [0]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -13773,17 +13774,17 @@ func (s *Server) handleTestRequestRequiredIntegerInt64NullableArrayRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -13873,17 +13874,17 @@ func (s *Server) handleTestRequestRequiredIntegerInt64NullableArrayArrayRequest( startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -13973,17 +13974,17 @@ func (s *Server) handleTestRequestRequiredIntegerNullableRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -14073,17 +14074,17 @@ func (s *Server) handleTestRequestRequiredIntegerNullableArrayRequest(args [0]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -14173,17 +14174,17 @@ func (s *Server) handleTestRequestRequiredIntegerNullableArrayArrayRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -14273,17 +14274,17 @@ func (s *Server) handleTestRequestRequiredIntegerUintRequest(args [0]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -14373,17 +14374,17 @@ func (s *Server) handleTestRequestRequiredIntegerUint32Request(args [0]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -14473,17 +14474,17 @@ func (s *Server) handleTestRequestRequiredIntegerUint32ArrayRequest(args [0]stri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -14573,17 +14574,17 @@ func (s *Server) handleTestRequestRequiredIntegerUint32ArrayArrayRequest(args [0 startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -14673,17 +14674,17 @@ func (s *Server) handleTestRequestRequiredIntegerUint32NullableRequest(args [0]s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -14773,17 +14774,17 @@ func (s *Server) handleTestRequestRequiredIntegerUint32NullableArrayRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -14873,17 +14874,17 @@ func (s *Server) handleTestRequestRequiredIntegerUint32NullableArrayArrayRequest startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -14973,17 +14974,17 @@ func (s *Server) handleTestRequestRequiredIntegerUint64Request(args [0]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -15073,17 +15074,17 @@ func (s *Server) handleTestRequestRequiredIntegerUint64ArrayRequest(args [0]stri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -15173,17 +15174,17 @@ func (s *Server) handleTestRequestRequiredIntegerUint64ArrayArrayRequest(args [0 startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -15273,17 +15274,17 @@ func (s *Server) handleTestRequestRequiredIntegerUint64NullableRequest(args [0]s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -15373,17 +15374,17 @@ func (s *Server) handleTestRequestRequiredIntegerUint64NullableArrayRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -15473,17 +15474,17 @@ func (s *Server) handleTestRequestRequiredIntegerUint64NullableArrayArrayRequest startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -15573,17 +15574,17 @@ func (s *Server) handleTestRequestRequiredIntegerUintArrayRequest(args [0]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -15673,17 +15674,17 @@ func (s *Server) handleTestRequestRequiredIntegerUintArrayArrayRequest(args [0]s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -15773,17 +15774,17 @@ func (s *Server) handleTestRequestRequiredIntegerUintNullableRequest(args [0]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -15873,17 +15874,17 @@ func (s *Server) handleTestRequestRequiredIntegerUintNullableArrayRequest(args [ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -15973,17 +15974,17 @@ func (s *Server) handleTestRequestRequiredIntegerUintNullableArrayArrayRequest(a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -16073,17 +16074,17 @@ func (s *Server) handleTestRequestRequiredIntegerUnixRequest(args [0]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -16173,17 +16174,17 @@ func (s *Server) handleTestRequestRequiredIntegerUnixArrayRequest(args [0]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -16273,17 +16274,17 @@ func (s *Server) handleTestRequestRequiredIntegerUnixArrayArrayRequest(args [0]s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -16373,17 +16374,17 @@ func (s *Server) handleTestRequestRequiredIntegerUnixMicroRequest(args [0]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -16473,17 +16474,17 @@ func (s *Server) handleTestRequestRequiredIntegerUnixMicroArrayRequest(args [0]s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -16573,17 +16574,17 @@ func (s *Server) handleTestRequestRequiredIntegerUnixMicroArrayArrayRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -16673,17 +16674,17 @@ func (s *Server) handleTestRequestRequiredIntegerUnixMicroNullableRequest(args [ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -16773,17 +16774,17 @@ func (s *Server) handleTestRequestRequiredIntegerUnixMicroNullableArrayRequest(a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -16873,17 +16874,17 @@ func (s *Server) handleTestRequestRequiredIntegerUnixMicroNullableArrayArrayRequ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -16973,17 +16974,17 @@ func (s *Server) handleTestRequestRequiredIntegerUnixMilliRequest(args [0]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -17073,17 +17074,17 @@ func (s *Server) handleTestRequestRequiredIntegerUnixMilliArrayRequest(args [0]s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -17173,17 +17174,17 @@ func (s *Server) handleTestRequestRequiredIntegerUnixMilliArrayArrayRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -17273,17 +17274,17 @@ func (s *Server) handleTestRequestRequiredIntegerUnixMilliNullableRequest(args [ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -17373,17 +17374,17 @@ func (s *Server) handleTestRequestRequiredIntegerUnixMilliNullableArrayRequest(a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -17473,17 +17474,17 @@ func (s *Server) handleTestRequestRequiredIntegerUnixMilliNullableArrayArrayRequ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -17573,17 +17574,17 @@ func (s *Server) handleTestRequestRequiredIntegerUnixNanoRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -17673,17 +17674,17 @@ func (s *Server) handleTestRequestRequiredIntegerUnixNanoArrayRequest(args [0]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -17773,17 +17774,17 @@ func (s *Server) handleTestRequestRequiredIntegerUnixNanoArrayArrayRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -17873,17 +17874,17 @@ func (s *Server) handleTestRequestRequiredIntegerUnixNanoNullableRequest(args [0 startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -17973,17 +17974,17 @@ func (s *Server) handleTestRequestRequiredIntegerUnixNanoNullableArrayRequest(ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -18073,17 +18074,17 @@ func (s *Server) handleTestRequestRequiredIntegerUnixNanoNullableArrayArrayReque startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -18173,17 +18174,17 @@ func (s *Server) handleTestRequestRequiredIntegerUnixNullableRequest(args [0]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -18273,17 +18274,17 @@ func (s *Server) handleTestRequestRequiredIntegerUnixNullableArrayRequest(args [ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -18373,17 +18374,17 @@ func (s *Server) handleTestRequestRequiredIntegerUnixNullableArrayArrayRequest(a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -18473,17 +18474,17 @@ func (s *Server) handleTestRequestRequiredIntegerUnixSecondsRequest(args [0]stri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -18573,17 +18574,17 @@ func (s *Server) handleTestRequestRequiredIntegerUnixSecondsArrayRequest(args [0 startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -18673,17 +18674,17 @@ func (s *Server) handleTestRequestRequiredIntegerUnixSecondsArrayArrayRequest(ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -18773,17 +18774,17 @@ func (s *Server) handleTestRequestRequiredIntegerUnixSecondsNullableRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -18873,17 +18874,17 @@ func (s *Server) handleTestRequestRequiredIntegerUnixSecondsNullableArrayRequest startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -18973,17 +18974,17 @@ func (s *Server) handleTestRequestRequiredIntegerUnixSecondsNullableArrayArrayRe startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -19073,17 +19074,17 @@ func (s *Server) handleTestRequestRequiredNullRequest(args [0]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -19173,17 +19174,17 @@ func (s *Server) handleTestRequestRequiredNullArrayRequest(args [0]string, argsE startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -19273,17 +19274,17 @@ func (s *Server) handleTestRequestRequiredNullArrayArrayRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -19373,17 +19374,17 @@ func (s *Server) handleTestRequestRequiredNullNullableRequest(args [0]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -19473,17 +19474,17 @@ func (s *Server) handleTestRequestRequiredNullNullableArrayRequest(args [0]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -19573,17 +19574,17 @@ func (s *Server) handleTestRequestRequiredNullNullableArrayArrayRequest(args [0] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -19673,17 +19674,17 @@ func (s *Server) handleTestRequestRequiredNumberRequest(args [0]string, argsEsca startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -19773,17 +19774,17 @@ func (s *Server) handleTestRequestRequiredNumberArrayRequest(args [0]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -19873,17 +19874,17 @@ func (s *Server) handleTestRequestRequiredNumberArrayArrayRequest(args [0]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -19973,17 +19974,17 @@ func (s *Server) handleTestRequestRequiredNumberDoubleRequest(args [0]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -20073,17 +20074,17 @@ func (s *Server) handleTestRequestRequiredNumberDoubleArrayRequest(args [0]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -20173,17 +20174,17 @@ func (s *Server) handleTestRequestRequiredNumberDoubleArrayArrayRequest(args [0] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -20273,17 +20274,17 @@ func (s *Server) handleTestRequestRequiredNumberDoubleNullableRequest(args [0]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -20373,17 +20374,17 @@ func (s *Server) handleTestRequestRequiredNumberDoubleNullableArrayRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -20473,17 +20474,17 @@ func (s *Server) handleTestRequestRequiredNumberDoubleNullableArrayArrayRequest( startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -20573,17 +20574,17 @@ func (s *Server) handleTestRequestRequiredNumberFloatRequest(args [0]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -20673,17 +20674,17 @@ func (s *Server) handleTestRequestRequiredNumberFloatArrayRequest(args [0]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -20773,17 +20774,17 @@ func (s *Server) handleTestRequestRequiredNumberFloatArrayArrayRequest(args [0]s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -20873,17 +20874,17 @@ func (s *Server) handleTestRequestRequiredNumberFloatNullableRequest(args [0]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -20973,17 +20974,17 @@ func (s *Server) handleTestRequestRequiredNumberFloatNullableArrayRequest(args [ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -21073,17 +21074,17 @@ func (s *Server) handleTestRequestRequiredNumberFloatNullableArrayArrayRequest(a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -21173,17 +21174,17 @@ func (s *Server) handleTestRequestRequiredNumberInt32Request(args [0]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -21273,17 +21274,17 @@ func (s *Server) handleTestRequestRequiredNumberInt32ArrayRequest(args [0]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -21373,17 +21374,17 @@ func (s *Server) handleTestRequestRequiredNumberInt32ArrayArrayRequest(args [0]s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -21473,17 +21474,17 @@ func (s *Server) handleTestRequestRequiredNumberInt32NullableRequest(args [0]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -21573,17 +21574,17 @@ func (s *Server) handleTestRequestRequiredNumberInt32NullableArrayRequest(args [ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -21673,17 +21674,17 @@ func (s *Server) handleTestRequestRequiredNumberInt32NullableArrayArrayRequest(a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -21773,17 +21774,17 @@ func (s *Server) handleTestRequestRequiredNumberInt64Request(args [0]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -21873,17 +21874,17 @@ func (s *Server) handleTestRequestRequiredNumberInt64ArrayRequest(args [0]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -21973,17 +21974,17 @@ func (s *Server) handleTestRequestRequiredNumberInt64ArrayArrayRequest(args [0]s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -22073,17 +22074,17 @@ func (s *Server) handleTestRequestRequiredNumberInt64NullableRequest(args [0]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -22173,17 +22174,17 @@ func (s *Server) handleTestRequestRequiredNumberInt64NullableArrayRequest(args [ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -22273,17 +22274,17 @@ func (s *Server) handleTestRequestRequiredNumberInt64NullableArrayArrayRequest(a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -22373,17 +22374,17 @@ func (s *Server) handleTestRequestRequiredNumberNullableRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -22473,17 +22474,17 @@ func (s *Server) handleTestRequestRequiredNumberNullableArrayRequest(args [0]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -22573,17 +22574,17 @@ func (s *Server) handleTestRequestRequiredNumberNullableArrayArrayRequest(args [ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -22673,17 +22674,17 @@ func (s *Server) handleTestRequestRequiredStringRequest(args [0]string, argsEsca startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -22773,17 +22774,17 @@ func (s *Server) handleTestRequestRequiredStringArrayRequest(args [0]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -22873,17 +22874,17 @@ func (s *Server) handleTestRequestRequiredStringArrayArrayRequest(args [0]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -22973,17 +22974,17 @@ func (s *Server) handleTestRequestRequiredStringBase64Request(args [0]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -23073,17 +23074,17 @@ func (s *Server) handleTestRequestRequiredStringBase64ArrayRequest(args [0]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -23173,17 +23174,17 @@ func (s *Server) handleTestRequestRequiredStringBase64ArrayArrayRequest(args [0] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -23273,17 +23274,17 @@ func (s *Server) handleTestRequestRequiredStringBase64NullableRequest(args [0]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -23373,17 +23374,17 @@ func (s *Server) handleTestRequestRequiredStringBase64NullableArrayRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -23473,17 +23474,17 @@ func (s *Server) handleTestRequestRequiredStringBase64NullableArrayArrayRequest( startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -23573,17 +23574,17 @@ func (s *Server) handleTestRequestRequiredStringBinaryRequest(args [0]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -23673,17 +23674,17 @@ func (s *Server) handleTestRequestRequiredStringBinaryArrayRequest(args [0]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -23773,17 +23774,17 @@ func (s *Server) handleTestRequestRequiredStringBinaryArrayArrayRequest(args [0] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -23873,17 +23874,17 @@ func (s *Server) handleTestRequestRequiredStringBinaryNullableRequest(args [0]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -23973,17 +23974,17 @@ func (s *Server) handleTestRequestRequiredStringBinaryNullableArrayRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -24073,17 +24074,17 @@ func (s *Server) handleTestRequestRequiredStringBinaryNullableArrayArrayRequest( startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -24173,17 +24174,17 @@ func (s *Server) handleTestRequestRequiredStringByteRequest(args [0]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -24273,17 +24274,17 @@ func (s *Server) handleTestRequestRequiredStringByteArrayRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -24373,17 +24374,17 @@ func (s *Server) handleTestRequestRequiredStringByteArrayArrayRequest(args [0]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -24473,17 +24474,17 @@ func (s *Server) handleTestRequestRequiredStringByteNullableRequest(args [0]stri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -24573,17 +24574,17 @@ func (s *Server) handleTestRequestRequiredStringByteNullableArrayRequest(args [0 startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -24673,17 +24674,17 @@ func (s *Server) handleTestRequestRequiredStringByteNullableArrayArrayRequest(ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -24773,17 +24774,17 @@ func (s *Server) handleTestRequestRequiredStringDateRequest(args [0]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -24873,17 +24874,17 @@ func (s *Server) handleTestRequestRequiredStringDateArrayRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -24973,17 +24974,17 @@ func (s *Server) handleTestRequestRequiredStringDateArrayArrayRequest(args [0]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -25073,17 +25074,17 @@ func (s *Server) handleTestRequestRequiredStringDateNullableRequest(args [0]stri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -25173,17 +25174,17 @@ func (s *Server) handleTestRequestRequiredStringDateNullableArrayRequest(args [0 startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -25273,17 +25274,17 @@ func (s *Server) handleTestRequestRequiredStringDateNullableArrayArrayRequest(ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -25373,17 +25374,17 @@ func (s *Server) handleTestRequestRequiredStringDateTimeRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -25473,17 +25474,17 @@ func (s *Server) handleTestRequestRequiredStringDateTimeArrayRequest(args [0]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -25573,17 +25574,17 @@ func (s *Server) handleTestRequestRequiredStringDateTimeArrayArrayRequest(args [ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -25673,17 +25674,17 @@ func (s *Server) handleTestRequestRequiredStringDateTimeNullableRequest(args [0] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -25773,17 +25774,17 @@ func (s *Server) handleTestRequestRequiredStringDateTimeNullableArrayRequest(arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -25873,17 +25874,17 @@ func (s *Server) handleTestRequestRequiredStringDateTimeNullableArrayArrayReques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -25973,17 +25974,17 @@ func (s *Server) handleTestRequestRequiredStringDurationRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -26073,17 +26074,17 @@ func (s *Server) handleTestRequestRequiredStringDurationArrayRequest(args [0]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -26173,17 +26174,17 @@ func (s *Server) handleTestRequestRequiredStringDurationArrayArrayRequest(args [ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -26273,17 +26274,17 @@ func (s *Server) handleTestRequestRequiredStringDurationNullableRequest(args [0] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -26373,17 +26374,17 @@ func (s *Server) handleTestRequestRequiredStringDurationNullableArrayRequest(arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -26473,17 +26474,17 @@ func (s *Server) handleTestRequestRequiredStringDurationNullableArrayArrayReques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -26573,17 +26574,17 @@ func (s *Server) handleTestRequestRequiredStringEmailRequest(args [0]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -26673,17 +26674,17 @@ func (s *Server) handleTestRequestRequiredStringEmailArrayRequest(args [0]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -26773,17 +26774,17 @@ func (s *Server) handleTestRequestRequiredStringEmailArrayArrayRequest(args [0]s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -26873,17 +26874,17 @@ func (s *Server) handleTestRequestRequiredStringEmailNullableRequest(args [0]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -26973,17 +26974,17 @@ func (s *Server) handleTestRequestRequiredStringEmailNullableArrayRequest(args [ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -27073,17 +27074,17 @@ func (s *Server) handleTestRequestRequiredStringEmailNullableArrayArrayRequest(a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -27173,17 +27174,17 @@ func (s *Server) handleTestRequestRequiredStringHostnameRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -27273,17 +27274,17 @@ func (s *Server) handleTestRequestRequiredStringHostnameArrayRequest(args [0]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -27373,17 +27374,17 @@ func (s *Server) handleTestRequestRequiredStringHostnameArrayArrayRequest(args [ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -27473,17 +27474,17 @@ func (s *Server) handleTestRequestRequiredStringHostnameNullableRequest(args [0] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -27573,17 +27574,17 @@ func (s *Server) handleTestRequestRequiredStringHostnameNullableArrayRequest(arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -27673,17 +27674,17 @@ func (s *Server) handleTestRequestRequiredStringHostnameNullableArrayArrayReques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -27773,17 +27774,17 @@ func (s *Server) handleTestRequestRequiredStringIPRequest(args [0]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -27873,17 +27874,17 @@ func (s *Server) handleTestRequestRequiredStringIPArrayRequest(args [0]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -27973,17 +27974,17 @@ func (s *Server) handleTestRequestRequiredStringIPArrayArrayRequest(args [0]stri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -28073,17 +28074,17 @@ func (s *Server) handleTestRequestRequiredStringIPNullableRequest(args [0]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -28173,17 +28174,17 @@ func (s *Server) handleTestRequestRequiredStringIPNullableArrayRequest(args [0]s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -28273,17 +28274,17 @@ func (s *Server) handleTestRequestRequiredStringIPNullableArrayArrayRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -28373,17 +28374,17 @@ func (s *Server) handleTestRequestRequiredStringInt32Request(args [0]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -28473,17 +28474,17 @@ func (s *Server) handleTestRequestRequiredStringInt32ArrayRequest(args [0]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -28573,17 +28574,17 @@ func (s *Server) handleTestRequestRequiredStringInt32ArrayArrayRequest(args [0]s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -28673,17 +28674,17 @@ func (s *Server) handleTestRequestRequiredStringInt32NullableRequest(args [0]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -28773,17 +28774,17 @@ func (s *Server) handleTestRequestRequiredStringInt32NullableArrayRequest(args [ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -28873,17 +28874,17 @@ func (s *Server) handleTestRequestRequiredStringInt32NullableArrayArrayRequest(a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -28973,17 +28974,17 @@ func (s *Server) handleTestRequestRequiredStringInt64Request(args [0]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -29073,17 +29074,17 @@ func (s *Server) handleTestRequestRequiredStringInt64ArrayRequest(args [0]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -29173,17 +29174,17 @@ func (s *Server) handleTestRequestRequiredStringInt64ArrayArrayRequest(args [0]s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -29273,17 +29274,17 @@ func (s *Server) handleTestRequestRequiredStringInt64NullableRequest(args [0]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -29373,17 +29374,17 @@ func (s *Server) handleTestRequestRequiredStringInt64NullableArrayRequest(args [ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -29473,17 +29474,17 @@ func (s *Server) handleTestRequestRequiredStringInt64NullableArrayArrayRequest(a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -29573,17 +29574,17 @@ func (s *Server) handleTestRequestRequiredStringIpv4Request(args [0]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -29673,17 +29674,17 @@ func (s *Server) handleTestRequestRequiredStringIpv4ArrayRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -29773,17 +29774,17 @@ func (s *Server) handleTestRequestRequiredStringIpv4ArrayArrayRequest(args [0]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -29873,17 +29874,17 @@ func (s *Server) handleTestRequestRequiredStringIpv4NullableRequest(args [0]stri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -29973,17 +29974,17 @@ func (s *Server) handleTestRequestRequiredStringIpv4NullableArrayRequest(args [0 startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -30073,17 +30074,17 @@ func (s *Server) handleTestRequestRequiredStringIpv4NullableArrayArrayRequest(ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -30173,17 +30174,17 @@ func (s *Server) handleTestRequestRequiredStringIpv6Request(args [0]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -30273,17 +30274,17 @@ func (s *Server) handleTestRequestRequiredStringIpv6ArrayRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -30373,17 +30374,17 @@ func (s *Server) handleTestRequestRequiredStringIpv6ArrayArrayRequest(args [0]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -30473,17 +30474,17 @@ func (s *Server) handleTestRequestRequiredStringIpv6NullableRequest(args [0]stri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -30573,17 +30574,17 @@ func (s *Server) handleTestRequestRequiredStringIpv6NullableArrayRequest(args [0 startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -30673,17 +30674,17 @@ func (s *Server) handleTestRequestRequiredStringIpv6NullableArrayArrayRequest(ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -30773,17 +30774,17 @@ func (s *Server) handleTestRequestRequiredStringNullableRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -30873,17 +30874,17 @@ func (s *Server) handleTestRequestRequiredStringNullableArrayRequest(args [0]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -30973,17 +30974,17 @@ func (s *Server) handleTestRequestRequiredStringNullableArrayArrayRequest(args [ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -31073,17 +31074,17 @@ func (s *Server) handleTestRequestRequiredStringPasswordRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -31173,17 +31174,17 @@ func (s *Server) handleTestRequestRequiredStringPasswordArrayRequest(args [0]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -31273,17 +31274,17 @@ func (s *Server) handleTestRequestRequiredStringPasswordArrayArrayRequest(args [ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -31373,17 +31374,17 @@ func (s *Server) handleTestRequestRequiredStringPasswordNullableRequest(args [0] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -31473,17 +31474,17 @@ func (s *Server) handleTestRequestRequiredStringPasswordNullableArrayRequest(arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -31573,17 +31574,17 @@ func (s *Server) handleTestRequestRequiredStringPasswordNullableArrayArrayReques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -31673,17 +31674,17 @@ func (s *Server) handleTestRequestRequiredStringTimeRequest(args [0]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -31773,17 +31774,17 @@ func (s *Server) handleTestRequestRequiredStringTimeArrayRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -31873,17 +31874,17 @@ func (s *Server) handleTestRequestRequiredStringTimeArrayArrayRequest(args [0]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -31973,17 +31974,17 @@ func (s *Server) handleTestRequestRequiredStringTimeNullableRequest(args [0]stri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -32073,17 +32074,17 @@ func (s *Server) handleTestRequestRequiredStringTimeNullableArrayRequest(args [0 startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -32173,17 +32174,17 @@ func (s *Server) handleTestRequestRequiredStringTimeNullableArrayArrayRequest(ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -32273,17 +32274,17 @@ func (s *Server) handleTestRequestRequiredStringURIRequest(args [0]string, argsE startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -32373,17 +32374,17 @@ func (s *Server) handleTestRequestRequiredStringURIArrayRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -32473,17 +32474,17 @@ func (s *Server) handleTestRequestRequiredStringURIArrayArrayRequest(args [0]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -32573,17 +32574,17 @@ func (s *Server) handleTestRequestRequiredStringURINullableRequest(args [0]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -32673,17 +32674,17 @@ func (s *Server) handleTestRequestRequiredStringURINullableArrayRequest(args [0] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -32773,17 +32774,17 @@ func (s *Server) handleTestRequestRequiredStringURINullableArrayArrayRequest(arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -32873,17 +32874,17 @@ func (s *Server) handleTestRequestRequiredStringUUIDRequest(args [0]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -32973,17 +32974,17 @@ func (s *Server) handleTestRequestRequiredStringUUIDArrayRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -33073,17 +33074,17 @@ func (s *Server) handleTestRequestRequiredStringUUIDArrayArrayRequest(args [0]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -33173,17 +33174,17 @@ func (s *Server) handleTestRequestRequiredStringUUIDNullableRequest(args [0]stri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -33273,17 +33274,17 @@ func (s *Server) handleTestRequestRequiredStringUUIDNullableArrayRequest(args [0 startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -33373,17 +33374,17 @@ func (s *Server) handleTestRequestRequiredStringUUIDNullableArrayArrayRequest(ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -33473,17 +33474,17 @@ func (s *Server) handleTestRequestRequiredStringUnixRequest(args [0]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -33573,17 +33574,17 @@ func (s *Server) handleTestRequestRequiredStringUnixArrayRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -33673,17 +33674,17 @@ func (s *Server) handleTestRequestRequiredStringUnixArrayArrayRequest(args [0]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -33773,17 +33774,17 @@ func (s *Server) handleTestRequestRequiredStringUnixMicroRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -33873,17 +33874,17 @@ func (s *Server) handleTestRequestRequiredStringUnixMicroArrayRequest(args [0]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -33973,17 +33974,17 @@ func (s *Server) handleTestRequestRequiredStringUnixMicroArrayArrayRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -34073,17 +34074,17 @@ func (s *Server) handleTestRequestRequiredStringUnixMicroNullableRequest(args [0 startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -34173,17 +34174,17 @@ func (s *Server) handleTestRequestRequiredStringUnixMicroNullableArrayRequest(ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -34273,17 +34274,17 @@ func (s *Server) handleTestRequestRequiredStringUnixMicroNullableArrayArrayReque startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -34373,17 +34374,17 @@ func (s *Server) handleTestRequestRequiredStringUnixMilliRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -34473,17 +34474,17 @@ func (s *Server) handleTestRequestRequiredStringUnixMilliArrayRequest(args [0]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -34573,17 +34574,17 @@ func (s *Server) handleTestRequestRequiredStringUnixMilliArrayArrayRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -34673,17 +34674,17 @@ func (s *Server) handleTestRequestRequiredStringUnixMilliNullableRequest(args [0 startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -34773,17 +34774,17 @@ func (s *Server) handleTestRequestRequiredStringUnixMilliNullableArrayRequest(ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -34873,17 +34874,17 @@ func (s *Server) handleTestRequestRequiredStringUnixMilliNullableArrayArrayReque startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -34973,17 +34974,17 @@ func (s *Server) handleTestRequestRequiredStringUnixNanoRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -35073,17 +35074,17 @@ func (s *Server) handleTestRequestRequiredStringUnixNanoArrayRequest(args [0]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -35173,17 +35174,17 @@ func (s *Server) handleTestRequestRequiredStringUnixNanoArrayArrayRequest(args [ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -35273,17 +35274,17 @@ func (s *Server) handleTestRequestRequiredStringUnixNanoNullableRequest(args [0] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -35373,17 +35374,17 @@ func (s *Server) handleTestRequestRequiredStringUnixNanoNullableArrayRequest(arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -35473,17 +35474,17 @@ func (s *Server) handleTestRequestRequiredStringUnixNanoNullableArrayArrayReques startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -35573,17 +35574,17 @@ func (s *Server) handleTestRequestRequiredStringUnixNullableRequest(args [0]stri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -35673,17 +35674,17 @@ func (s *Server) handleTestRequestRequiredStringUnixNullableArrayRequest(args [0 startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -35773,17 +35774,17 @@ func (s *Server) handleTestRequestRequiredStringUnixNullableArrayArrayRequest(ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -35873,17 +35874,17 @@ func (s *Server) handleTestRequestRequiredStringUnixSecondsRequest(args [0]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -35973,17 +35974,17 @@ func (s *Server) handleTestRequestRequiredStringUnixSecondsArrayRequest(args [0] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -36073,17 +36074,17 @@ func (s *Server) handleTestRequestRequiredStringUnixSecondsArrayArrayRequest(arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -36173,17 +36174,17 @@ func (s *Server) handleTestRequestRequiredStringUnixSecondsNullableRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -36273,17 +36274,17 @@ func (s *Server) handleTestRequestRequiredStringUnixSecondsNullableArrayRequest( startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -36373,17 +36374,17 @@ func (s *Server) handleTestRequestRequiredStringUnixSecondsNullableArrayArrayReq startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -36473,17 +36474,17 @@ func (s *Server) handleTestRequestStringRequest(args [0]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -36573,17 +36574,17 @@ func (s *Server) handleTestRequestStringArrayRequest(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -36673,17 +36674,17 @@ func (s *Server) handleTestRequestStringArrayArrayRequest(args [0]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -36773,17 +36774,17 @@ func (s *Server) handleTestRequestStringBase64Request(args [0]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -36873,17 +36874,17 @@ func (s *Server) handleTestRequestStringBase64ArrayRequest(args [0]string, argsE startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -36973,17 +36974,17 @@ func (s *Server) handleTestRequestStringBase64ArrayArrayRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -37073,17 +37074,17 @@ func (s *Server) handleTestRequestStringBase64NullableRequest(args [0]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -37173,17 +37174,17 @@ func (s *Server) handleTestRequestStringBase64NullableArrayRequest(args [0]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -37273,17 +37274,17 @@ func (s *Server) handleTestRequestStringBase64NullableArrayArrayRequest(args [0] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -37373,17 +37374,17 @@ func (s *Server) handleTestRequestStringBinaryRequest(args [0]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -37473,17 +37474,17 @@ func (s *Server) handleTestRequestStringBinaryArrayRequest(args [0]string, argsE startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -37573,17 +37574,17 @@ func (s *Server) handleTestRequestStringBinaryArrayArrayRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -37673,17 +37674,17 @@ func (s *Server) handleTestRequestStringBinaryNullableRequest(args [0]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -37773,17 +37774,17 @@ func (s *Server) handleTestRequestStringBinaryNullableArrayRequest(args [0]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -37873,17 +37874,17 @@ func (s *Server) handleTestRequestStringBinaryNullableArrayArrayRequest(args [0] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -37973,17 +37974,17 @@ func (s *Server) handleTestRequestStringByteRequest(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -38073,17 +38074,17 @@ func (s *Server) handleTestRequestStringByteArrayRequest(args [0]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -38173,17 +38174,17 @@ func (s *Server) handleTestRequestStringByteArrayArrayRequest(args [0]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -38273,17 +38274,17 @@ func (s *Server) handleTestRequestStringByteNullableRequest(args [0]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -38373,17 +38374,17 @@ func (s *Server) handleTestRequestStringByteNullableArrayRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -38473,17 +38474,17 @@ func (s *Server) handleTestRequestStringByteNullableArrayArrayRequest(args [0]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -38573,17 +38574,17 @@ func (s *Server) handleTestRequestStringDateRequest(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -38673,17 +38674,17 @@ func (s *Server) handleTestRequestStringDateArrayRequest(args [0]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -38773,17 +38774,17 @@ func (s *Server) handleTestRequestStringDateArrayArrayRequest(args [0]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -38873,17 +38874,17 @@ func (s *Server) handleTestRequestStringDateNullableRequest(args [0]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -38973,17 +38974,17 @@ func (s *Server) handleTestRequestStringDateNullableArrayRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -39073,17 +39074,17 @@ func (s *Server) handleTestRequestStringDateNullableArrayArrayRequest(args [0]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -39173,17 +39174,17 @@ func (s *Server) handleTestRequestStringDateTimeRequest(args [0]string, argsEsca startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -39273,17 +39274,17 @@ func (s *Server) handleTestRequestStringDateTimeArrayRequest(args [0]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -39373,17 +39374,17 @@ func (s *Server) handleTestRequestStringDateTimeArrayArrayRequest(args [0]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -39473,17 +39474,17 @@ func (s *Server) handleTestRequestStringDateTimeNullableRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -39573,17 +39574,17 @@ func (s *Server) handleTestRequestStringDateTimeNullableArrayRequest(args [0]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -39673,17 +39674,17 @@ func (s *Server) handleTestRequestStringDateTimeNullableArrayArrayRequest(args [ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -39773,17 +39774,17 @@ func (s *Server) handleTestRequestStringDurationRequest(args [0]string, argsEsca startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -39873,17 +39874,17 @@ func (s *Server) handleTestRequestStringDurationArrayRequest(args [0]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -39973,17 +39974,17 @@ func (s *Server) handleTestRequestStringDurationArrayArrayRequest(args [0]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -40073,17 +40074,17 @@ func (s *Server) handleTestRequestStringDurationNullableRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -40173,17 +40174,17 @@ func (s *Server) handleTestRequestStringDurationNullableArrayRequest(args [0]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -40273,17 +40274,17 @@ func (s *Server) handleTestRequestStringDurationNullableArrayArrayRequest(args [ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -40373,17 +40374,17 @@ func (s *Server) handleTestRequestStringEmailRequest(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -40473,17 +40474,17 @@ func (s *Server) handleTestRequestStringEmailArrayRequest(args [0]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -40573,17 +40574,17 @@ func (s *Server) handleTestRequestStringEmailArrayArrayRequest(args [0]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -40673,17 +40674,17 @@ func (s *Server) handleTestRequestStringEmailNullableRequest(args [0]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -40773,17 +40774,17 @@ func (s *Server) handleTestRequestStringEmailNullableArrayRequest(args [0]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -40873,17 +40874,17 @@ func (s *Server) handleTestRequestStringEmailNullableArrayArrayRequest(args [0]s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -40973,17 +40974,17 @@ func (s *Server) handleTestRequestStringHostnameRequest(args [0]string, argsEsca startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -41073,17 +41074,17 @@ func (s *Server) handleTestRequestStringHostnameArrayRequest(args [0]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -41173,17 +41174,17 @@ func (s *Server) handleTestRequestStringHostnameArrayArrayRequest(args [0]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -41273,17 +41274,17 @@ func (s *Server) handleTestRequestStringHostnameNullableRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -41373,17 +41374,17 @@ func (s *Server) handleTestRequestStringHostnameNullableArrayRequest(args [0]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -41473,17 +41474,17 @@ func (s *Server) handleTestRequestStringHostnameNullableArrayArrayRequest(args [ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -41573,17 +41574,17 @@ func (s *Server) handleTestRequestStringIPRequest(args [0]string, argsEscaped bo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -41673,17 +41674,17 @@ func (s *Server) handleTestRequestStringIPArrayRequest(args [0]string, argsEscap startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -41773,17 +41774,17 @@ func (s *Server) handleTestRequestStringIPArrayArrayRequest(args [0]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -41873,17 +41874,17 @@ func (s *Server) handleTestRequestStringIPNullableRequest(args [0]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -41973,17 +41974,17 @@ func (s *Server) handleTestRequestStringIPNullableArrayRequest(args [0]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -42073,17 +42074,17 @@ func (s *Server) handleTestRequestStringIPNullableArrayArrayRequest(args [0]stri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -42173,17 +42174,17 @@ func (s *Server) handleTestRequestStringInt32Request(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -42273,17 +42274,17 @@ func (s *Server) handleTestRequestStringInt32ArrayRequest(args [0]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -42373,17 +42374,17 @@ func (s *Server) handleTestRequestStringInt32ArrayArrayRequest(args [0]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -42473,17 +42474,17 @@ func (s *Server) handleTestRequestStringInt32NullableRequest(args [0]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -42573,17 +42574,17 @@ func (s *Server) handleTestRequestStringInt32NullableArrayRequest(args [0]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -42673,17 +42674,17 @@ func (s *Server) handleTestRequestStringInt32NullableArrayArrayRequest(args [0]s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -42773,17 +42774,17 @@ func (s *Server) handleTestRequestStringInt64Request(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -42873,17 +42874,17 @@ func (s *Server) handleTestRequestStringInt64ArrayRequest(args [0]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -42973,17 +42974,17 @@ func (s *Server) handleTestRequestStringInt64ArrayArrayRequest(args [0]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -43073,17 +43074,17 @@ func (s *Server) handleTestRequestStringInt64NullableRequest(args [0]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -43173,17 +43174,17 @@ func (s *Server) handleTestRequestStringInt64NullableArrayRequest(args [0]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -43273,17 +43274,17 @@ func (s *Server) handleTestRequestStringInt64NullableArrayArrayRequest(args [0]s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -43373,17 +43374,17 @@ func (s *Server) handleTestRequestStringIpv4Request(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -43473,17 +43474,17 @@ func (s *Server) handleTestRequestStringIpv4ArrayRequest(args [0]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -43573,17 +43574,17 @@ func (s *Server) handleTestRequestStringIpv4ArrayArrayRequest(args [0]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -43673,17 +43674,17 @@ func (s *Server) handleTestRequestStringIpv4NullableRequest(args [0]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -43773,17 +43774,17 @@ func (s *Server) handleTestRequestStringIpv4NullableArrayRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -43873,17 +43874,17 @@ func (s *Server) handleTestRequestStringIpv4NullableArrayArrayRequest(args [0]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -43973,17 +43974,17 @@ func (s *Server) handleTestRequestStringIpv6Request(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -44073,17 +44074,17 @@ func (s *Server) handleTestRequestStringIpv6ArrayRequest(args [0]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -44173,17 +44174,17 @@ func (s *Server) handleTestRequestStringIpv6ArrayArrayRequest(args [0]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -44273,17 +44274,17 @@ func (s *Server) handleTestRequestStringIpv6NullableRequest(args [0]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -44373,17 +44374,17 @@ func (s *Server) handleTestRequestStringIpv6NullableArrayRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -44473,17 +44474,17 @@ func (s *Server) handleTestRequestStringIpv6NullableArrayArrayRequest(args [0]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -44573,17 +44574,17 @@ func (s *Server) handleTestRequestStringNullableRequest(args [0]string, argsEsca startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -44673,17 +44674,17 @@ func (s *Server) handleTestRequestStringNullableArrayRequest(args [0]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -44773,17 +44774,17 @@ func (s *Server) handleTestRequestStringNullableArrayArrayRequest(args [0]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -44873,17 +44874,17 @@ func (s *Server) handleTestRequestStringPasswordRequest(args [0]string, argsEsca startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -44973,17 +44974,17 @@ func (s *Server) handleTestRequestStringPasswordArrayRequest(args [0]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -45073,17 +45074,17 @@ func (s *Server) handleTestRequestStringPasswordArrayArrayRequest(args [0]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -45173,17 +45174,17 @@ func (s *Server) handleTestRequestStringPasswordNullableRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -45273,17 +45274,17 @@ func (s *Server) handleTestRequestStringPasswordNullableArrayRequest(args [0]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -45373,17 +45374,17 @@ func (s *Server) handleTestRequestStringPasswordNullableArrayArrayRequest(args [ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -45473,17 +45474,17 @@ func (s *Server) handleTestRequestStringTimeRequest(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -45573,17 +45574,17 @@ func (s *Server) handleTestRequestStringTimeArrayRequest(args [0]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -45673,17 +45674,17 @@ func (s *Server) handleTestRequestStringTimeArrayArrayRequest(args [0]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -45773,17 +45774,17 @@ func (s *Server) handleTestRequestStringTimeNullableRequest(args [0]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -45873,17 +45874,17 @@ func (s *Server) handleTestRequestStringTimeNullableArrayRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -45973,17 +45974,17 @@ func (s *Server) handleTestRequestStringTimeNullableArrayArrayRequest(args [0]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -46073,17 +46074,17 @@ func (s *Server) handleTestRequestStringURIRequest(args [0]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -46173,17 +46174,17 @@ func (s *Server) handleTestRequestStringURIArrayRequest(args [0]string, argsEsca startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -46273,17 +46274,17 @@ func (s *Server) handleTestRequestStringURIArrayArrayRequest(args [0]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -46373,17 +46374,17 @@ func (s *Server) handleTestRequestStringURINullableRequest(args [0]string, argsE startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -46473,17 +46474,17 @@ func (s *Server) handleTestRequestStringURINullableArrayRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -46573,17 +46574,17 @@ func (s *Server) handleTestRequestStringURINullableArrayArrayRequest(args [0]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -46673,17 +46674,17 @@ func (s *Server) handleTestRequestStringUUIDRequest(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -46773,17 +46774,17 @@ func (s *Server) handleTestRequestStringUUIDArrayRequest(args [0]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -46873,17 +46874,17 @@ func (s *Server) handleTestRequestStringUUIDArrayArrayRequest(args [0]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -46973,17 +46974,17 @@ func (s *Server) handleTestRequestStringUUIDNullableRequest(args [0]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -47073,17 +47074,17 @@ func (s *Server) handleTestRequestStringUUIDNullableArrayRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -47173,17 +47174,17 @@ func (s *Server) handleTestRequestStringUUIDNullableArrayArrayRequest(args [0]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -47273,17 +47274,17 @@ func (s *Server) handleTestRequestStringUnixRequest(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -47373,17 +47374,17 @@ func (s *Server) handleTestRequestStringUnixArrayRequest(args [0]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -47473,17 +47474,17 @@ func (s *Server) handleTestRequestStringUnixArrayArrayRequest(args [0]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -47573,17 +47574,17 @@ func (s *Server) handleTestRequestStringUnixMicroRequest(args [0]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -47673,17 +47674,17 @@ func (s *Server) handleTestRequestStringUnixMicroArrayRequest(args [0]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -47773,17 +47774,17 @@ func (s *Server) handleTestRequestStringUnixMicroArrayArrayRequest(args [0]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -47873,17 +47874,17 @@ func (s *Server) handleTestRequestStringUnixMicroNullableRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -47973,17 +47974,17 @@ func (s *Server) handleTestRequestStringUnixMicroNullableArrayRequest(args [0]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -48073,17 +48074,17 @@ func (s *Server) handleTestRequestStringUnixMicroNullableArrayArrayRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -48173,17 +48174,17 @@ func (s *Server) handleTestRequestStringUnixMilliRequest(args [0]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -48273,17 +48274,17 @@ func (s *Server) handleTestRequestStringUnixMilliArrayRequest(args [0]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -48373,17 +48374,17 @@ func (s *Server) handleTestRequestStringUnixMilliArrayArrayRequest(args [0]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -48473,17 +48474,17 @@ func (s *Server) handleTestRequestStringUnixMilliNullableRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -48573,17 +48574,17 @@ func (s *Server) handleTestRequestStringUnixMilliNullableArrayRequest(args [0]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -48673,17 +48674,17 @@ func (s *Server) handleTestRequestStringUnixMilliNullableArrayArrayRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -48773,17 +48774,17 @@ func (s *Server) handleTestRequestStringUnixNanoRequest(args [0]string, argsEsca startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -48873,17 +48874,17 @@ func (s *Server) handleTestRequestStringUnixNanoArrayRequest(args [0]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -48973,17 +48974,17 @@ func (s *Server) handleTestRequestStringUnixNanoArrayArrayRequest(args [0]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -49073,17 +49074,17 @@ func (s *Server) handleTestRequestStringUnixNanoNullableRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -49173,17 +49174,17 @@ func (s *Server) handleTestRequestStringUnixNanoNullableArrayRequest(args [0]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -49273,17 +49274,17 @@ func (s *Server) handleTestRequestStringUnixNanoNullableArrayArrayRequest(args [ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -49373,17 +49374,17 @@ func (s *Server) handleTestRequestStringUnixNullableRequest(args [0]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -49473,17 +49474,17 @@ func (s *Server) handleTestRequestStringUnixNullableArrayRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -49573,17 +49574,17 @@ func (s *Server) handleTestRequestStringUnixNullableArrayArrayRequest(args [0]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -49673,17 +49674,17 @@ func (s *Server) handleTestRequestStringUnixSecondsRequest(args [0]string, argsE startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -49773,17 +49774,17 @@ func (s *Server) handleTestRequestStringUnixSecondsArrayRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -49873,17 +49874,17 @@ func (s *Server) handleTestRequestStringUnixSecondsArrayArrayRequest(args [0]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -49973,17 +49974,17 @@ func (s *Server) handleTestRequestStringUnixSecondsNullableRequest(args [0]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -50073,17 +50074,17 @@ func (s *Server) handleTestRequestStringUnixSecondsNullableArrayRequest(args [0] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -50173,17 +50174,17 @@ func (s *Server) handleTestRequestStringUnixSecondsNullableArrayArrayRequest(arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -50273,17 +50274,17 @@ func (s *Server) handleTestResponseAnyRequest(args [0]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -50373,17 +50374,17 @@ func (s *Server) handleTestResponseBooleanRequest(args [0]string, argsEscaped bo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -50473,17 +50474,17 @@ func (s *Server) handleTestResponseBooleanArrayRequest(args [0]string, argsEscap startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -50573,17 +50574,17 @@ func (s *Server) handleTestResponseBooleanArrayArrayRequest(args [0]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -50673,17 +50674,17 @@ func (s *Server) handleTestResponseBooleanNullableRequest(args [0]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -50773,17 +50774,17 @@ func (s *Server) handleTestResponseBooleanNullableArrayRequest(args [0]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -50873,17 +50874,17 @@ func (s *Server) handleTestResponseBooleanNullableArrayArrayRequest(args [0]stri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -50973,17 +50974,17 @@ func (s *Server) handleTestResponseEmptyStructRequest(args [0]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -51073,17 +51074,17 @@ func (s *Server) handleTestResponseFormatTestRequest(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -51173,17 +51174,17 @@ func (s *Server) handleTestResponseIntegerRequest(args [0]string, argsEscaped bo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -51273,17 +51274,17 @@ func (s *Server) handleTestResponseIntegerArrayRequest(args [0]string, argsEscap startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -51373,17 +51374,17 @@ func (s *Server) handleTestResponseIntegerArrayArrayRequest(args [0]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -51473,17 +51474,17 @@ func (s *Server) handleTestResponseIntegerInt32Request(args [0]string, argsEscap startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -51573,17 +51574,17 @@ func (s *Server) handleTestResponseIntegerInt32ArrayRequest(args [0]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -51673,17 +51674,17 @@ func (s *Server) handleTestResponseIntegerInt32ArrayArrayRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -51773,17 +51774,17 @@ func (s *Server) handleTestResponseIntegerInt32NullableRequest(args [0]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -51873,17 +51874,17 @@ func (s *Server) handleTestResponseIntegerInt32NullableArrayRequest(args [0]stri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -51973,17 +51974,17 @@ func (s *Server) handleTestResponseIntegerInt32NullableArrayArrayRequest(args [0 startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -52073,17 +52074,17 @@ func (s *Server) handleTestResponseIntegerInt64Request(args [0]string, argsEscap startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -52173,17 +52174,17 @@ func (s *Server) handleTestResponseIntegerInt64ArrayRequest(args [0]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -52273,17 +52274,17 @@ func (s *Server) handleTestResponseIntegerInt64ArrayArrayRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -52373,17 +52374,17 @@ func (s *Server) handleTestResponseIntegerInt64NullableRequest(args [0]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -52473,17 +52474,17 @@ func (s *Server) handleTestResponseIntegerInt64NullableArrayRequest(args [0]stri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -52573,17 +52574,17 @@ func (s *Server) handleTestResponseIntegerInt64NullableArrayArrayRequest(args [0 startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -52673,17 +52674,17 @@ func (s *Server) handleTestResponseIntegerNullableRequest(args [0]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -52773,17 +52774,17 @@ func (s *Server) handleTestResponseIntegerNullableArrayRequest(args [0]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -52873,17 +52874,17 @@ func (s *Server) handleTestResponseIntegerNullableArrayArrayRequest(args [0]stri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -52973,17 +52974,17 @@ func (s *Server) handleTestResponseIntegerUintRequest(args [0]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -53073,17 +53074,17 @@ func (s *Server) handleTestResponseIntegerUint32Request(args [0]string, argsEsca startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -53173,17 +53174,17 @@ func (s *Server) handleTestResponseIntegerUint32ArrayRequest(args [0]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -53273,17 +53274,17 @@ func (s *Server) handleTestResponseIntegerUint32ArrayArrayRequest(args [0]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -53373,17 +53374,17 @@ func (s *Server) handleTestResponseIntegerUint32NullableRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -53473,17 +53474,17 @@ func (s *Server) handleTestResponseIntegerUint32NullableArrayRequest(args [0]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -53573,17 +53574,17 @@ func (s *Server) handleTestResponseIntegerUint32NullableArrayArrayRequest(args [ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -53673,17 +53674,17 @@ func (s *Server) handleTestResponseIntegerUint64Request(args [0]string, argsEsca startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -53773,17 +53774,17 @@ func (s *Server) handleTestResponseIntegerUint64ArrayRequest(args [0]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -53873,17 +53874,17 @@ func (s *Server) handleTestResponseIntegerUint64ArrayArrayRequest(args [0]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -53973,17 +53974,17 @@ func (s *Server) handleTestResponseIntegerUint64NullableRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -54073,17 +54074,17 @@ func (s *Server) handleTestResponseIntegerUint64NullableArrayRequest(args [0]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -54173,17 +54174,17 @@ func (s *Server) handleTestResponseIntegerUint64NullableArrayArrayRequest(args [ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -54273,17 +54274,17 @@ func (s *Server) handleTestResponseIntegerUintArrayRequest(args [0]string, argsE startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -54373,17 +54374,17 @@ func (s *Server) handleTestResponseIntegerUintArrayArrayRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -54473,17 +54474,17 @@ func (s *Server) handleTestResponseIntegerUintNullableRequest(args [0]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -54573,17 +54574,17 @@ func (s *Server) handleTestResponseIntegerUintNullableArrayRequest(args [0]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -54673,17 +54674,17 @@ func (s *Server) handleTestResponseIntegerUintNullableArrayArrayRequest(args [0] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -54773,17 +54774,17 @@ func (s *Server) handleTestResponseIntegerUnixRequest(args [0]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -54873,17 +54874,17 @@ func (s *Server) handleTestResponseIntegerUnixArrayRequest(args [0]string, argsE startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -54973,17 +54974,17 @@ func (s *Server) handleTestResponseIntegerUnixArrayArrayRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -55073,17 +55074,17 @@ func (s *Server) handleTestResponseIntegerUnixMicroRequest(args [0]string, argsE startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -55173,17 +55174,17 @@ func (s *Server) handleTestResponseIntegerUnixMicroArrayRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -55273,17 +55274,17 @@ func (s *Server) handleTestResponseIntegerUnixMicroArrayArrayRequest(args [0]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -55373,17 +55374,17 @@ func (s *Server) handleTestResponseIntegerUnixMicroNullableRequest(args [0]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -55473,17 +55474,17 @@ func (s *Server) handleTestResponseIntegerUnixMicroNullableArrayRequest(args [0] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -55573,17 +55574,17 @@ func (s *Server) handleTestResponseIntegerUnixMicroNullableArrayArrayRequest(arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -55673,17 +55674,17 @@ func (s *Server) handleTestResponseIntegerUnixMilliRequest(args [0]string, argsE startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -55773,17 +55774,17 @@ func (s *Server) handleTestResponseIntegerUnixMilliArrayRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -55873,17 +55874,17 @@ func (s *Server) handleTestResponseIntegerUnixMilliArrayArrayRequest(args [0]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -55973,17 +55974,17 @@ func (s *Server) handleTestResponseIntegerUnixMilliNullableRequest(args [0]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -56073,17 +56074,17 @@ func (s *Server) handleTestResponseIntegerUnixMilliNullableArrayRequest(args [0] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -56173,17 +56174,17 @@ func (s *Server) handleTestResponseIntegerUnixMilliNullableArrayArrayRequest(arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -56273,17 +56274,17 @@ func (s *Server) handleTestResponseIntegerUnixNanoRequest(args [0]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -56373,17 +56374,17 @@ func (s *Server) handleTestResponseIntegerUnixNanoArrayRequest(args [0]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -56473,17 +56474,17 @@ func (s *Server) handleTestResponseIntegerUnixNanoArrayArrayRequest(args [0]stri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -56573,17 +56574,17 @@ func (s *Server) handleTestResponseIntegerUnixNanoNullableRequest(args [0]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -56673,17 +56674,17 @@ func (s *Server) handleTestResponseIntegerUnixNanoNullableArrayRequest(args [0]s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -56773,17 +56774,17 @@ func (s *Server) handleTestResponseIntegerUnixNanoNullableArrayArrayRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -56873,17 +56874,17 @@ func (s *Server) handleTestResponseIntegerUnixNullableRequest(args [0]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -56973,17 +56974,17 @@ func (s *Server) handleTestResponseIntegerUnixNullableArrayRequest(args [0]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -57073,17 +57074,17 @@ func (s *Server) handleTestResponseIntegerUnixNullableArrayArrayRequest(args [0] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -57173,17 +57174,17 @@ func (s *Server) handleTestResponseIntegerUnixSecondsRequest(args [0]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -57273,17 +57274,17 @@ func (s *Server) handleTestResponseIntegerUnixSecondsArrayRequest(args [0]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -57373,17 +57374,17 @@ func (s *Server) handleTestResponseIntegerUnixSecondsArrayArrayRequest(args [0]s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -57473,17 +57474,17 @@ func (s *Server) handleTestResponseIntegerUnixSecondsNullableRequest(args [0]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -57573,17 +57574,17 @@ func (s *Server) handleTestResponseIntegerUnixSecondsNullableArrayRequest(args [ startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -57673,17 +57674,17 @@ func (s *Server) handleTestResponseIntegerUnixSecondsNullableArrayArrayRequest(a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -57773,17 +57774,17 @@ func (s *Server) handleTestResponseNullRequest(args [0]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -57873,17 +57874,17 @@ func (s *Server) handleTestResponseNullArrayRequest(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -57973,17 +57974,17 @@ func (s *Server) handleTestResponseNullArrayArrayRequest(args [0]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -58073,17 +58074,17 @@ func (s *Server) handleTestResponseNullNullableRequest(args [0]string, argsEscap startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -58173,17 +58174,17 @@ func (s *Server) handleTestResponseNullNullableArrayRequest(args [0]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -58273,17 +58274,17 @@ func (s *Server) handleTestResponseNullNullableArrayArrayRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -58373,17 +58374,17 @@ func (s *Server) handleTestResponseNumberRequest(args [0]string, argsEscaped boo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -58473,17 +58474,17 @@ func (s *Server) handleTestResponseNumberArrayRequest(args [0]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -58573,17 +58574,17 @@ func (s *Server) handleTestResponseNumberArrayArrayRequest(args [0]string, argsE startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -58673,17 +58674,17 @@ func (s *Server) handleTestResponseNumberDoubleRequest(args [0]string, argsEscap startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -58773,17 +58774,17 @@ func (s *Server) handleTestResponseNumberDoubleArrayRequest(args [0]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -58873,17 +58874,17 @@ func (s *Server) handleTestResponseNumberDoubleArrayArrayRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -58973,17 +58974,17 @@ func (s *Server) handleTestResponseNumberDoubleNullableRequest(args [0]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -59073,17 +59074,17 @@ func (s *Server) handleTestResponseNumberDoubleNullableArrayRequest(args [0]stri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -59173,17 +59174,17 @@ func (s *Server) handleTestResponseNumberDoubleNullableArrayArrayRequest(args [0 startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -59273,17 +59274,17 @@ func (s *Server) handleTestResponseNumberFloatRequest(args [0]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -59373,17 +59374,17 @@ func (s *Server) handleTestResponseNumberFloatArrayRequest(args [0]string, argsE startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -59473,17 +59474,17 @@ func (s *Server) handleTestResponseNumberFloatArrayArrayRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -59573,17 +59574,17 @@ func (s *Server) handleTestResponseNumberFloatNullableRequest(args [0]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -59673,17 +59674,17 @@ func (s *Server) handleTestResponseNumberFloatNullableArrayRequest(args [0]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -59773,17 +59774,17 @@ func (s *Server) handleTestResponseNumberFloatNullableArrayArrayRequest(args [0] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -59873,17 +59874,17 @@ func (s *Server) handleTestResponseNumberInt32Request(args [0]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -59973,17 +59974,17 @@ func (s *Server) handleTestResponseNumberInt32ArrayRequest(args [0]string, argsE startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -60073,17 +60074,17 @@ func (s *Server) handleTestResponseNumberInt32ArrayArrayRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -60173,17 +60174,17 @@ func (s *Server) handleTestResponseNumberInt32NullableRequest(args [0]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -60273,17 +60274,17 @@ func (s *Server) handleTestResponseNumberInt32NullableArrayRequest(args [0]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -60373,17 +60374,17 @@ func (s *Server) handleTestResponseNumberInt32NullableArrayArrayRequest(args [0] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -60473,17 +60474,17 @@ func (s *Server) handleTestResponseNumberInt64Request(args [0]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -60573,17 +60574,17 @@ func (s *Server) handleTestResponseNumberInt64ArrayRequest(args [0]string, argsE startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -60673,17 +60674,17 @@ func (s *Server) handleTestResponseNumberInt64ArrayArrayRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -60773,17 +60774,17 @@ func (s *Server) handleTestResponseNumberInt64NullableRequest(args [0]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -60873,17 +60874,17 @@ func (s *Server) handleTestResponseNumberInt64NullableArrayRequest(args [0]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -60973,17 +60974,17 @@ func (s *Server) handleTestResponseNumberInt64NullableArrayArrayRequest(args [0] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -61073,17 +61074,17 @@ func (s *Server) handleTestResponseNumberNullableRequest(args [0]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -61173,17 +61174,17 @@ func (s *Server) handleTestResponseNumberNullableArrayRequest(args [0]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -61273,17 +61274,17 @@ func (s *Server) handleTestResponseNumberNullableArrayArrayRequest(args [0]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -61373,17 +61374,17 @@ func (s *Server) handleTestResponseStringRequest(args [0]string, argsEscaped boo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -61473,17 +61474,17 @@ func (s *Server) handleTestResponseStringArrayRequest(args [0]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -61573,17 +61574,17 @@ func (s *Server) handleTestResponseStringArrayArrayRequest(args [0]string, argsE startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -61673,17 +61674,17 @@ func (s *Server) handleTestResponseStringBase64Request(args [0]string, argsEscap startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -61773,17 +61774,17 @@ func (s *Server) handleTestResponseStringBase64ArrayRequest(args [0]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -61873,17 +61874,17 @@ func (s *Server) handleTestResponseStringBase64ArrayArrayRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -61973,17 +61974,17 @@ func (s *Server) handleTestResponseStringBase64NullableRequest(args [0]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -62073,17 +62074,17 @@ func (s *Server) handleTestResponseStringBase64NullableArrayRequest(args [0]stri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -62173,17 +62174,17 @@ func (s *Server) handleTestResponseStringBase64NullableArrayArrayRequest(args [0 startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -62273,17 +62274,17 @@ func (s *Server) handleTestResponseStringBinaryRequest(args [0]string, argsEscap startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -62373,17 +62374,17 @@ func (s *Server) handleTestResponseStringBinaryArrayRequest(args [0]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -62473,17 +62474,17 @@ func (s *Server) handleTestResponseStringBinaryArrayArrayRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -62573,17 +62574,17 @@ func (s *Server) handleTestResponseStringBinaryNullableRequest(args [0]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -62673,17 +62674,17 @@ func (s *Server) handleTestResponseStringBinaryNullableArrayRequest(args [0]stri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -62773,17 +62774,17 @@ func (s *Server) handleTestResponseStringBinaryNullableArrayArrayRequest(args [0 startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -62873,17 +62874,17 @@ func (s *Server) handleTestResponseStringByteRequest(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -62973,17 +62974,17 @@ func (s *Server) handleTestResponseStringByteArrayRequest(args [0]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -63073,17 +63074,17 @@ func (s *Server) handleTestResponseStringByteArrayArrayRequest(args [0]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -63173,17 +63174,17 @@ func (s *Server) handleTestResponseStringByteNullableRequest(args [0]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -63273,17 +63274,17 @@ func (s *Server) handleTestResponseStringByteNullableArrayRequest(args [0]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -63373,17 +63374,17 @@ func (s *Server) handleTestResponseStringByteNullableArrayArrayRequest(args [0]s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -63473,17 +63474,17 @@ func (s *Server) handleTestResponseStringDateRequest(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -63573,17 +63574,17 @@ func (s *Server) handleTestResponseStringDateArrayRequest(args [0]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -63673,17 +63674,17 @@ func (s *Server) handleTestResponseStringDateArrayArrayRequest(args [0]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -63773,17 +63774,17 @@ func (s *Server) handleTestResponseStringDateNullableRequest(args [0]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -63873,17 +63874,17 @@ func (s *Server) handleTestResponseStringDateNullableArrayRequest(args [0]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -63973,17 +63974,17 @@ func (s *Server) handleTestResponseStringDateNullableArrayArrayRequest(args [0]s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -64073,17 +64074,17 @@ func (s *Server) handleTestResponseStringDateTimeRequest(args [0]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -64173,17 +64174,17 @@ func (s *Server) handleTestResponseStringDateTimeArrayRequest(args [0]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -64273,17 +64274,17 @@ func (s *Server) handleTestResponseStringDateTimeArrayArrayRequest(args [0]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -64373,17 +64374,17 @@ func (s *Server) handleTestResponseStringDateTimeNullableRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -64473,17 +64474,17 @@ func (s *Server) handleTestResponseStringDateTimeNullableArrayRequest(args [0]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -64573,17 +64574,17 @@ func (s *Server) handleTestResponseStringDateTimeNullableArrayArrayRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -64673,17 +64674,17 @@ func (s *Server) handleTestResponseStringDurationRequest(args [0]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -64773,17 +64774,17 @@ func (s *Server) handleTestResponseStringDurationArrayRequest(args [0]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -64873,17 +64874,17 @@ func (s *Server) handleTestResponseStringDurationArrayArrayRequest(args [0]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -64973,17 +64974,17 @@ func (s *Server) handleTestResponseStringDurationNullableRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -65073,17 +65074,17 @@ func (s *Server) handleTestResponseStringDurationNullableArrayRequest(args [0]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -65173,17 +65174,17 @@ func (s *Server) handleTestResponseStringDurationNullableArrayArrayRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -65273,17 +65274,17 @@ func (s *Server) handleTestResponseStringEmailRequest(args [0]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -65373,17 +65374,17 @@ func (s *Server) handleTestResponseStringEmailArrayRequest(args [0]string, argsE startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -65473,17 +65474,17 @@ func (s *Server) handleTestResponseStringEmailArrayArrayRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -65573,17 +65574,17 @@ func (s *Server) handleTestResponseStringEmailNullableRequest(args [0]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -65673,17 +65674,17 @@ func (s *Server) handleTestResponseStringEmailNullableArrayRequest(args [0]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -65773,17 +65774,17 @@ func (s *Server) handleTestResponseStringEmailNullableArrayArrayRequest(args [0] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -65873,17 +65874,17 @@ func (s *Server) handleTestResponseStringHostnameRequest(args [0]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -65973,17 +65974,17 @@ func (s *Server) handleTestResponseStringHostnameArrayRequest(args [0]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -66073,17 +66074,17 @@ func (s *Server) handleTestResponseStringHostnameArrayArrayRequest(args [0]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -66173,17 +66174,17 @@ func (s *Server) handleTestResponseStringHostnameNullableRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -66273,17 +66274,17 @@ func (s *Server) handleTestResponseStringHostnameNullableArrayRequest(args [0]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -66373,17 +66374,17 @@ func (s *Server) handleTestResponseStringHostnameNullableArrayArrayRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -66473,17 +66474,17 @@ func (s *Server) handleTestResponseStringIPRequest(args [0]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -66573,17 +66574,17 @@ func (s *Server) handleTestResponseStringIPArrayRequest(args [0]string, argsEsca startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -66673,17 +66674,17 @@ func (s *Server) handleTestResponseStringIPArrayArrayRequest(args [0]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -66773,17 +66774,17 @@ func (s *Server) handleTestResponseStringIPNullableRequest(args [0]string, argsE startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -66873,17 +66874,17 @@ func (s *Server) handleTestResponseStringIPNullableArrayRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -66973,17 +66974,17 @@ func (s *Server) handleTestResponseStringIPNullableArrayArrayRequest(args [0]str startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -67073,17 +67074,17 @@ func (s *Server) handleTestResponseStringInt32Request(args [0]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -67173,17 +67174,17 @@ func (s *Server) handleTestResponseStringInt32ArrayRequest(args [0]string, argsE startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -67273,17 +67274,17 @@ func (s *Server) handleTestResponseStringInt32ArrayArrayRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -67373,17 +67374,17 @@ func (s *Server) handleTestResponseStringInt32NullableRequest(args [0]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -67473,17 +67474,17 @@ func (s *Server) handleTestResponseStringInt32NullableArrayRequest(args [0]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -67573,17 +67574,17 @@ func (s *Server) handleTestResponseStringInt32NullableArrayArrayRequest(args [0] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -67673,17 +67674,17 @@ func (s *Server) handleTestResponseStringInt64Request(args [0]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -67773,17 +67774,17 @@ func (s *Server) handleTestResponseStringInt64ArrayRequest(args [0]string, argsE startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -67873,17 +67874,17 @@ func (s *Server) handleTestResponseStringInt64ArrayArrayRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -67973,17 +67974,17 @@ func (s *Server) handleTestResponseStringInt64NullableRequest(args [0]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -68073,17 +68074,17 @@ func (s *Server) handleTestResponseStringInt64NullableArrayRequest(args [0]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -68173,17 +68174,17 @@ func (s *Server) handleTestResponseStringInt64NullableArrayArrayRequest(args [0] startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -68273,17 +68274,17 @@ func (s *Server) handleTestResponseStringIpv4Request(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -68373,17 +68374,17 @@ func (s *Server) handleTestResponseStringIpv4ArrayRequest(args [0]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -68473,17 +68474,17 @@ func (s *Server) handleTestResponseStringIpv4ArrayArrayRequest(args [0]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -68573,17 +68574,17 @@ func (s *Server) handleTestResponseStringIpv4NullableRequest(args [0]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -68673,17 +68674,17 @@ func (s *Server) handleTestResponseStringIpv4NullableArrayRequest(args [0]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -68773,17 +68774,17 @@ func (s *Server) handleTestResponseStringIpv4NullableArrayArrayRequest(args [0]s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -68873,17 +68874,17 @@ func (s *Server) handleTestResponseStringIpv6Request(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -68973,17 +68974,17 @@ func (s *Server) handleTestResponseStringIpv6ArrayRequest(args [0]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -69073,17 +69074,17 @@ func (s *Server) handleTestResponseStringIpv6ArrayArrayRequest(args [0]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -69173,17 +69174,17 @@ func (s *Server) handleTestResponseStringIpv6NullableRequest(args [0]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -69273,17 +69274,17 @@ func (s *Server) handleTestResponseStringIpv6NullableArrayRequest(args [0]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -69373,17 +69374,17 @@ func (s *Server) handleTestResponseStringIpv6NullableArrayArrayRequest(args [0]s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -69473,17 +69474,17 @@ func (s *Server) handleTestResponseStringNullableRequest(args [0]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -69573,17 +69574,17 @@ func (s *Server) handleTestResponseStringNullableArrayRequest(args [0]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -69673,17 +69674,17 @@ func (s *Server) handleTestResponseStringNullableArrayArrayRequest(args [0]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -69773,17 +69774,17 @@ func (s *Server) handleTestResponseStringPasswordRequest(args [0]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -69873,17 +69874,17 @@ func (s *Server) handleTestResponseStringPasswordArrayRequest(args [0]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -69973,17 +69974,17 @@ func (s *Server) handleTestResponseStringPasswordArrayArrayRequest(args [0]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -70073,17 +70074,17 @@ func (s *Server) handleTestResponseStringPasswordNullableRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -70173,17 +70174,17 @@ func (s *Server) handleTestResponseStringPasswordNullableArrayRequest(args [0]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -70273,17 +70274,17 @@ func (s *Server) handleTestResponseStringPasswordNullableArrayArrayRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -70373,17 +70374,17 @@ func (s *Server) handleTestResponseStringTimeRequest(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -70473,17 +70474,17 @@ func (s *Server) handleTestResponseStringTimeArrayRequest(args [0]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -70573,17 +70574,17 @@ func (s *Server) handleTestResponseStringTimeArrayArrayRequest(args [0]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -70673,17 +70674,17 @@ func (s *Server) handleTestResponseStringTimeNullableRequest(args [0]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -70773,17 +70774,17 @@ func (s *Server) handleTestResponseStringTimeNullableArrayRequest(args [0]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -70873,17 +70874,17 @@ func (s *Server) handleTestResponseStringTimeNullableArrayArrayRequest(args [0]s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -70973,17 +70974,17 @@ func (s *Server) handleTestResponseStringURIRequest(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -71073,17 +71074,17 @@ func (s *Server) handleTestResponseStringURIArrayRequest(args [0]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -71173,17 +71174,17 @@ func (s *Server) handleTestResponseStringURIArrayArrayRequest(args [0]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -71273,17 +71274,17 @@ func (s *Server) handleTestResponseStringURINullableRequest(args [0]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -71373,17 +71374,17 @@ func (s *Server) handleTestResponseStringURINullableArrayRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -71473,17 +71474,17 @@ func (s *Server) handleTestResponseStringURINullableArrayArrayRequest(args [0]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -71573,17 +71574,17 @@ func (s *Server) handleTestResponseStringUUIDRequest(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -71673,17 +71674,17 @@ func (s *Server) handleTestResponseStringUUIDArrayRequest(args [0]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -71773,17 +71774,17 @@ func (s *Server) handleTestResponseStringUUIDArrayArrayRequest(args [0]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -71873,17 +71874,17 @@ func (s *Server) handleTestResponseStringUUIDNullableRequest(args [0]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -71973,17 +71974,17 @@ func (s *Server) handleTestResponseStringUUIDNullableArrayRequest(args [0]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -72073,17 +72074,17 @@ func (s *Server) handleTestResponseStringUUIDNullableArrayArrayRequest(args [0]s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -72173,17 +72174,17 @@ func (s *Server) handleTestResponseStringUnixRequest(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -72273,17 +72274,17 @@ func (s *Server) handleTestResponseStringUnixArrayRequest(args [0]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -72373,17 +72374,17 @@ func (s *Server) handleTestResponseStringUnixArrayArrayRequest(args [0]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -72473,17 +72474,17 @@ func (s *Server) handleTestResponseStringUnixMicroRequest(args [0]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -72573,17 +72574,17 @@ func (s *Server) handleTestResponseStringUnixMicroArrayRequest(args [0]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -72673,17 +72674,17 @@ func (s *Server) handleTestResponseStringUnixMicroArrayArrayRequest(args [0]stri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -72773,17 +72774,17 @@ func (s *Server) handleTestResponseStringUnixMicroNullableRequest(args [0]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -72873,17 +72874,17 @@ func (s *Server) handleTestResponseStringUnixMicroNullableArrayRequest(args [0]s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -72973,17 +72974,17 @@ func (s *Server) handleTestResponseStringUnixMicroNullableArrayArrayRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -73073,17 +73074,17 @@ func (s *Server) handleTestResponseStringUnixMilliRequest(args [0]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -73173,17 +73174,17 @@ func (s *Server) handleTestResponseStringUnixMilliArrayRequest(args [0]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -73273,17 +73274,17 @@ func (s *Server) handleTestResponseStringUnixMilliArrayArrayRequest(args [0]stri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -73373,17 +73374,17 @@ func (s *Server) handleTestResponseStringUnixMilliNullableRequest(args [0]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -73473,17 +73474,17 @@ func (s *Server) handleTestResponseStringUnixMilliNullableArrayRequest(args [0]s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -73573,17 +73574,17 @@ func (s *Server) handleTestResponseStringUnixMilliNullableArrayArrayRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -73673,17 +73674,17 @@ func (s *Server) handleTestResponseStringUnixNanoRequest(args [0]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -73773,17 +73774,17 @@ func (s *Server) handleTestResponseStringUnixNanoArrayRequest(args [0]string, ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -73873,17 +73874,17 @@ func (s *Server) handleTestResponseStringUnixNanoArrayArrayRequest(args [0]strin startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -73973,17 +73974,17 @@ func (s *Server) handleTestResponseStringUnixNanoNullableRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -74073,17 +74074,17 @@ func (s *Server) handleTestResponseStringUnixNanoNullableArrayRequest(args [0]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -74173,17 +74174,17 @@ func (s *Server) handleTestResponseStringUnixNanoNullableArrayArrayRequest(args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -74273,17 +74274,17 @@ func (s *Server) handleTestResponseStringUnixNullableRequest(args [0]string, arg startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -74373,17 +74374,17 @@ func (s *Server) handleTestResponseStringUnixNullableArrayRequest(args [0]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -74473,17 +74474,17 @@ func (s *Server) handleTestResponseStringUnixNullableArrayArrayRequest(args [0]s startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -74573,17 +74574,17 @@ func (s *Server) handleTestResponseStringUnixSecondsRequest(args [0]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -74673,17 +74674,17 @@ func (s *Server) handleTestResponseStringUnixSecondsArrayRequest(args [0]string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -74773,17 +74774,17 @@ func (s *Server) handleTestResponseStringUnixSecondsArrayArrayRequest(args [0]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -74873,17 +74874,17 @@ func (s *Server) handleTestResponseStringUnixSecondsNullableRequest(args [0]stri startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -74973,17 +74974,17 @@ func (s *Server) handleTestResponseStringUnixSecondsNullableArrayRequest(args [0 startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -75073,17 +75074,17 @@ func (s *Server) handleTestResponseStringUnixSecondsNullableArrayArrayRequest(ar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ diff --git a/examples/ex_tinkoff/oas_cfg_gen.go b/examples/ex_tinkoff/oas_cfg_gen.go index 200975a4a..2674bd0c4 100644 --- a/examples/ex_tinkoff/oas_cfg_gen.go +++ b/examples/ex_tinkoff/oas_cfg_gen.go @@ -7,6 +7,7 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/global" "go.opentelemetry.io/otel/metric/instrument" "go.opentelemetry.io/otel/trace" @@ -40,7 +41,7 @@ func (cfg *otelConfig) initOTEL() { cfg.TracerProvider = otel.GetTracerProvider() } if cfg.MeterProvider == nil { - cfg.MeterProvider = metric.NewNoopMeterProvider() + cfg.MeterProvider = global.MeterProvider() } cfg.Tracer = cfg.TracerProvider.Tracer(otelogen.Name, trace.WithInstrumentationVersion(otelogen.SemVersion()), @@ -200,7 +201,7 @@ func WithTracerProvider(provider trace.TracerProvider) Option { // WithMeterProvider specifies a meter provider to use for creating a meter. // -// If none is specified, the metric.NewNoopMeterProvider is used. +// If none is specified, the global.MeterProvider() is used. func WithMeterProvider(provider metric.MeterProvider) Option { return otelOptionFunc(func(cfg *otelConfig) { if provider != nil { diff --git a/examples/ex_tinkoff/oas_client_gen.go b/examples/ex_tinkoff/oas_client_gen.go index f95923cf6..e94f59cf9 100644 --- a/examples/ex_tinkoff/oas_client_gen.go +++ b/examples/ex_tinkoff/oas_client_gen.go @@ -11,6 +11,7 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" "github.com/ogen-go/ogen/conv" ht "github.com/ogen-go/ogen/http" @@ -86,11 +87,11 @@ func (c *Client) sendMarketBondsGet(ctx context.Context) (res MarketBondsGetRes, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "MarketBondsGet", @@ -102,7 +103,7 @@ func (c *Client) sendMarketBondsGet(ctx context.Context) (res MarketBondsGetRes, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -186,11 +187,11 @@ func (c *Client) sendMarketCandlesGet(ctx context.Context, params MarketCandlesG startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "MarketCandlesGet", @@ -202,7 +203,7 @@ func (c *Client) sendMarketCandlesGet(ctx context.Context, params MarketCandlesG if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -346,11 +347,11 @@ func (c *Client) sendMarketCurrenciesGet(ctx context.Context) (res MarketCurrenc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "MarketCurrenciesGet", @@ -362,7 +363,7 @@ func (c *Client) sendMarketCurrenciesGet(ctx context.Context) (res MarketCurrenc if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -446,11 +447,11 @@ func (c *Client) sendMarketEtfsGet(ctx context.Context) (res MarketEtfsGetRes, e startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "MarketEtfsGet", @@ -462,7 +463,7 @@ func (c *Client) sendMarketEtfsGet(ctx context.Context) (res MarketEtfsGetRes, e if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -546,11 +547,11 @@ func (c *Client) sendMarketOrderbookGet(ctx context.Context, params MarketOrderb startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "MarketOrderbookGet", @@ -562,7 +563,7 @@ func (c *Client) sendMarketOrderbookGet(ctx context.Context, params MarketOrderb if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -678,11 +679,11 @@ func (c *Client) sendMarketSearchByFigiGet(ctx context.Context, params MarketSea startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "MarketSearchByFigiGet", @@ -694,7 +695,7 @@ func (c *Client) sendMarketSearchByFigiGet(ctx context.Context, params MarketSea if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -796,11 +797,11 @@ func (c *Client) sendMarketSearchByTickerGet(ctx context.Context, params MarketS startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "MarketSearchByTickerGet", @@ -812,7 +813,7 @@ func (c *Client) sendMarketSearchByTickerGet(ctx context.Context, params MarketS if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -914,11 +915,11 @@ func (c *Client) sendMarketStocksGet(ctx context.Context) (res MarketStocksGetRe startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "MarketStocksGet", @@ -930,7 +931,7 @@ func (c *Client) sendMarketStocksGet(ctx context.Context) (res MarketStocksGetRe if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1014,11 +1015,11 @@ func (c *Client) sendOperationsGet(ctx context.Context, params OperationsGetPara startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OperationsGet", @@ -1030,7 +1031,7 @@ func (c *Client) sendOperationsGet(ctx context.Context, params OperationsGetPara if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1180,11 +1181,11 @@ func (c *Client) sendOrdersCancelPost(ctx context.Context, params OrdersCancelPo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OrdersCancelPost", @@ -1196,7 +1197,7 @@ func (c *Client) sendOrdersCancelPost(ctx context.Context, params OrdersCancelPo if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1315,11 +1316,11 @@ func (c *Client) sendOrdersGet(ctx context.Context, params OrdersGetParams) (res startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OrdersGet", @@ -1331,7 +1332,7 @@ func (c *Client) sendOrdersGet(ctx context.Context, params OrdersGetParams) (res if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1445,11 +1446,11 @@ func (c *Client) sendOrdersLimitOrderPost(ctx context.Context, request *LimitOrd startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OrdersLimitOrderPost", @@ -1461,7 +1462,7 @@ func (c *Client) sendOrdersLimitOrderPost(ctx context.Context, request *LimitOrd if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1592,11 +1593,11 @@ func (c *Client) sendOrdersMarketOrderPost(ctx context.Context, request *MarketO startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OrdersMarketOrderPost", @@ -1608,7 +1609,7 @@ func (c *Client) sendOrdersMarketOrderPost(ctx context.Context, request *MarketO if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1730,11 +1731,11 @@ func (c *Client) sendPortfolioCurrenciesGet(ctx context.Context, params Portfoli startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PortfolioCurrenciesGet", @@ -1746,7 +1747,7 @@ func (c *Client) sendPortfolioCurrenciesGet(ctx context.Context, params Portfoli if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1851,11 +1852,11 @@ func (c *Client) sendPortfolioGet(ctx context.Context, params PortfolioGetParams startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PortfolioGet", @@ -1867,7 +1868,7 @@ func (c *Client) sendPortfolioGet(ctx context.Context, params PortfolioGetParams if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1972,11 +1973,11 @@ func (c *Client) sendSandboxClearPost(ctx context.Context, params SandboxClearPo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SandboxClearPost", @@ -1988,7 +1989,7 @@ func (c *Client) sendSandboxClearPost(ctx context.Context, params SandboxClearPo if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2102,11 +2103,11 @@ func (c *Client) sendSandboxCurrenciesBalancePost(ctx context.Context, request * startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SandboxCurrenciesBalancePost", @@ -2118,7 +2119,7 @@ func (c *Client) sendSandboxCurrenciesBalancePost(ctx context.Context, request * if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2235,11 +2236,11 @@ func (c *Client) sendSandboxPositionsBalancePost(ctx context.Context, request *S startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SandboxPositionsBalancePost", @@ -2251,7 +2252,7 @@ func (c *Client) sendSandboxPositionsBalancePost(ctx context.Context, request *S if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2375,11 +2376,11 @@ func (c *Client) sendSandboxRegisterPost(ctx context.Context, request OptSandbox startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SandboxRegisterPost", @@ -2391,7 +2392,7 @@ func (c *Client) sendSandboxRegisterPost(ctx context.Context, request OptSandbox if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2478,11 +2479,11 @@ func (c *Client) sendSandboxRemovePost(ctx context.Context, params SandboxRemove startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SandboxRemovePost", @@ -2494,7 +2495,7 @@ func (c *Client) sendSandboxRemovePost(ctx context.Context, params SandboxRemove if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2599,11 +2600,11 @@ func (c *Client) sendUserAccountsGet(ctx context.Context) (res UserAccountsGetRe startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "UserAccountsGet", @@ -2615,7 +2616,7 @@ func (c *Client) sendUserAccountsGet(ctx context.Context) (res UserAccountsGetRe if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() diff --git a/examples/ex_tinkoff/oas_handlers_gen.go b/examples/ex_tinkoff/oas_handlers_gen.go index bcc7b55a2..a54fc6146 100644 --- a/examples/ex_tinkoff/oas_handlers_gen.go +++ b/examples/ex_tinkoff/oas_handlers_gen.go @@ -9,6 +9,7 @@ import ( "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" "github.com/ogen-go/ogen/middleware" "github.com/ogen-go/ogen/ogenerrors" @@ -32,17 +33,17 @@ func (s *Server) handleMarketBondsGetRequest(args [0]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -158,17 +159,17 @@ func (s *Server) handleMarketCandlesGetRequest(args [0]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -311,17 +312,17 @@ func (s *Server) handleMarketCurrenciesGetRequest(args [0]string, argsEscaped bo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -437,17 +438,17 @@ func (s *Server) handleMarketEtfsGetRequest(args [0]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -563,17 +564,17 @@ func (s *Server) handleMarketOrderbookGetRequest(args [0]string, argsEscaped boo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -708,17 +709,17 @@ func (s *Server) handleMarketSearchByFigiGetRequest(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -849,17 +850,17 @@ func (s *Server) handleMarketSearchByTickerGetRequest(args [0]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -990,17 +991,17 @@ func (s *Server) handleMarketStocksGetRequest(args [0]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1116,17 +1117,17 @@ func (s *Server) handleOperationsGetRequest(args [0]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1269,17 +1270,17 @@ func (s *Server) handleOrdersCancelPostRequest(args [0]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1414,17 +1415,17 @@ func (s *Server) handleOrdersGetRequest(args [0]string, argsEscaped bool, w http startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1555,17 +1556,17 @@ func (s *Server) handleOrdersLimitOrderPostRequest(args [0]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1715,17 +1716,17 @@ func (s *Server) handleOrdersMarketOrderPostRequest(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1875,17 +1876,17 @@ func (s *Server) handlePortfolioCurrenciesGetRequest(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2016,17 +2017,17 @@ func (s *Server) handlePortfolioGetRequest(args [0]string, argsEscaped bool, w h startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2157,17 +2158,17 @@ func (s *Server) handleSandboxClearPostRequest(args [0]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2298,17 +2299,17 @@ func (s *Server) handleSandboxCurrenciesBalancePostRequest(args [0]string, argsE startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2454,17 +2455,17 @@ func (s *Server) handleSandboxPositionsBalancePostRequest(args [0]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2610,17 +2611,17 @@ func (s *Server) handleSandboxRegisterPostRequest(args [0]string, argsEscaped bo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2751,17 +2752,17 @@ func (s *Server) handleSandboxRemovePostRequest(args [0]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2892,17 +2893,17 @@ func (s *Server) handleUserAccountsGetRequest(args [0]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ diff --git a/examples/go.mod b/examples/go.mod index 972d5698d..19cefa567 100644 --- a/examples/go.mod +++ b/examples/go.mod @@ -1,6 +1,6 @@ module github.com/ogen-go/ogen/examples -go 1.19 +go 1.20 require ( github.com/go-faster/errors v0.6.1 @@ -8,9 +8,9 @@ require ( github.com/google/uuid v1.3.0 github.com/ogen-go/ogen v0.0.0 github.com/stretchr/testify v1.8.2 - go.opentelemetry.io/otel v1.14.0 - go.opentelemetry.io/otel/metric v0.37.0 - go.opentelemetry.io/otel/trace v1.14.0 + go.opentelemetry.io/otel v1.15.0 + go.opentelemetry.io/otel/metric v0.38.0 + go.opentelemetry.io/otel/trace v1.15.0 go.uber.org/multierr v1.11.0 go.uber.org/zap v1.24.0 golang.org/x/exp v0.0.0-20230321023759-10a507213a29 diff --git a/examples/go.sum b/examples/go.sum index 2bb53aaa6..a1353c527 100644 --- a/examples/go.sum +++ b/examples/go.sum @@ -22,7 +22,7 @@ github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/kr/pretty v0.2.1 h1:Fmg33tUaq4/8ym9TJN1x7sLJnHVwhP33CNkpYV/7rwI= +github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= @@ -32,6 +32,7 @@ github.com/mattn/go-isatty v0.0.18/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjRBZyWFQ= github.com/segmentio/asm v1.2.0 h1:9BQrFxC+YOHJlTlHGkTrFWf59nbL3XnCoFLTwDCI7ys= github.com/segmentio/asm v1.2.0/go.mod h1:BqMnlJP91P8d+4ibuonYZw9mfnzI9HfxselHZr5aAcs= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= @@ -41,15 +42,15 @@ github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/ github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.2 h1:+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8= github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= -go.opentelemetry.io/otel v1.14.0 h1:/79Huy8wbf5DnIPhemGB+zEPVwnN6fuQybr/SRXa6hM= -go.opentelemetry.io/otel v1.14.0/go.mod h1:o4buv+dJzx8rohcUeRmWUZhqupFvzWis188WlggnNeU= -go.opentelemetry.io/otel/metric v0.37.0 h1:pHDQuLQOZwYD+Km0eb657A25NaRzy0a+eLyKfDXedEs= -go.opentelemetry.io/otel/metric v0.37.0/go.mod h1:DmdaHfGt54iV6UKxsV9slj2bBRJcKC1B1uvDLIioc1s= -go.opentelemetry.io/otel/trace v1.14.0 h1:wp2Mmvj41tDsyAJXiWDWpfNsOiIyd38fy85pyKcFq/M= -go.opentelemetry.io/otel/trace v1.14.0/go.mod h1:8avnQLK+CG77yNLUae4ea2JDQ6iT+gozhnZjy/rw9G8= +go.opentelemetry.io/otel v1.15.0 h1:NIl24d4eiLJPM0vKn4HjLYM+UZf6gSfi9Z+NmCxkWbk= +go.opentelemetry.io/otel v1.15.0/go.mod h1:qfwLEbWhLPk5gyWrne4XnF0lC8wtywbuJbgfAE3zbek= +go.opentelemetry.io/otel/metric v0.38.0 h1:vv/Nv/44S3GzMMmeUhaesBKsAenE6xLkTVWL+zuv30w= +go.opentelemetry.io/otel/metric v0.38.0/go.mod h1:uAtxN5hl8aXh5irD8afBtSwQU5Zjg64WWSz6KheZxBg= +go.opentelemetry.io/otel/trace v1.15.0 h1:5Fwje4O2ooOxkfyqI/kJwxWotggDLix4BSAvpE1wlpo= +go.opentelemetry.io/otel/trace v1.15.0/go.mod h1:CUsmE2Ht1CRkvE8OsMESvraoZrrcgD1J2W8GV1ev0Y4= go.uber.org/atomic v1.10.0 h1:9qC72Qh0+3MqyJbAn8YU5xVq1frD8bn3JtD2oXtafVQ= go.uber.org/atomic v1.10.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0= -go.uber.org/goleak v1.1.11 h1:wy28qYRKZgnJTxGxvye5/wgWr1EKjmUDGYox5mGlRlI= +go.uber.org/goleak v1.2.1 h1:NBol2c7O1ZokfZ0LEU9K6Whx/KnwvepVetCUhtKja4A= go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= go.uber.org/zap v1.24.0 h1:FiJd5l1UOLj0wCgbSE0rwwXHzEdAZS6hiiSnxJN/D60= @@ -69,7 +70,7 @@ golang.org/x/text v0.9.0 h1:2sjJmO8cDvYveuX97RDLsxlyUxLl+GHoLxBiRdHllBE= golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= golang.org/x/tools v0.8.0 h1:vSDcovVPld282ceKgDimkRSC8kpaH1dgyc9UMzlt84Y= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/internal/integration/referenced_path_item/oas_cfg_gen.go b/internal/integration/referenced_path_item/oas_cfg_gen.go index 200975a4a..2674bd0c4 100644 --- a/internal/integration/referenced_path_item/oas_cfg_gen.go +++ b/internal/integration/referenced_path_item/oas_cfg_gen.go @@ -7,6 +7,7 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/global" "go.opentelemetry.io/otel/metric/instrument" "go.opentelemetry.io/otel/trace" @@ -40,7 +41,7 @@ func (cfg *otelConfig) initOTEL() { cfg.TracerProvider = otel.GetTracerProvider() } if cfg.MeterProvider == nil { - cfg.MeterProvider = metric.NewNoopMeterProvider() + cfg.MeterProvider = global.MeterProvider() } cfg.Tracer = cfg.TracerProvider.Tracer(otelogen.Name, trace.WithInstrumentationVersion(otelogen.SemVersion()), @@ -200,7 +201,7 @@ func WithTracerProvider(provider trace.TracerProvider) Option { // WithMeterProvider specifies a meter provider to use for creating a meter. // -// If none is specified, the metric.NewNoopMeterProvider is used. +// If none is specified, the global.MeterProvider() is used. func WithMeterProvider(provider metric.MeterProvider) Option { return otelOptionFunc(func(cfg *otelConfig) { if provider != nil { diff --git a/internal/integration/referenced_path_item/oas_client_gen.go b/internal/integration/referenced_path_item/oas_client_gen.go index f13f8660b..5d3ba6a59 100644 --- a/internal/integration/referenced_path_item/oas_client_gen.go +++ b/internal/integration/referenced_path_item/oas_client_gen.go @@ -11,6 +11,7 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" ht "github.com/ogen-go/ogen/http" "github.com/ogen-go/ogen/uri" @@ -80,11 +81,11 @@ func (c *Client) sendFooGet(ctx context.Context) (res string, err error) { startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "FooGet", @@ -96,7 +97,7 @@ func (c *Client) sendFooGet(ctx context.Context) (res string, err error) { if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() diff --git a/internal/integration/referenced_path_item/oas_handlers_gen.go b/internal/integration/referenced_path_item/oas_handlers_gen.go index c3a2bef30..f170702da 100644 --- a/internal/integration/referenced_path_item/oas_handlers_gen.go +++ b/internal/integration/referenced_path_item/oas_handlers_gen.go @@ -9,6 +9,7 @@ import ( "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" "github.com/ogen-go/ogen/middleware" ) @@ -29,17 +30,17 @@ func (s *Server) handleFooGetRequest(args [0]string, argsEscaped bool, w http.Re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) diff --git a/internal/integration/sample_api/oas_cfg_gen.go b/internal/integration/sample_api/oas_cfg_gen.go index 28988d14e..1f629b910 100644 --- a/internal/integration/sample_api/oas_cfg_gen.go +++ b/internal/integration/sample_api/oas_cfg_gen.go @@ -9,6 +9,7 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/global" "go.opentelemetry.io/otel/metric/instrument" "go.opentelemetry.io/otel/trace" @@ -64,7 +65,7 @@ func (cfg *otelConfig) initOTEL() { cfg.TracerProvider = otel.GetTracerProvider() } if cfg.MeterProvider == nil { - cfg.MeterProvider = metric.NewNoopMeterProvider() + cfg.MeterProvider = global.MeterProvider() } cfg.Tracer = cfg.TracerProvider.Tracer(otelogen.Name, trace.WithInstrumentationVersion(otelogen.SemVersion()), @@ -224,7 +225,7 @@ func WithTracerProvider(provider trace.TracerProvider) Option { // WithMeterProvider specifies a meter provider to use for creating a meter. // -// If none is specified, the metric.NewNoopMeterProvider is used. +// If none is specified, the global.MeterProvider() is used. func WithMeterProvider(provider metric.MeterProvider) Option { return otelOptionFunc(func(cfg *otelConfig) { if provider != nil { diff --git a/internal/integration/sample_api/oas_client_gen.go b/internal/integration/sample_api/oas_client_gen.go index aa38997cf..72febf4a9 100644 --- a/internal/integration/sample_api/oas_client_gen.go +++ b/internal/integration/sample_api/oas_client_gen.go @@ -11,6 +11,7 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" "go.opentelemetry.io/otel/trace" "github.com/ogen-go/ogen/conv" @@ -91,11 +92,11 @@ func (c *Client) sendDataGetFormat(ctx context.Context, params DataGetFormatPara startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "DataGetFormat", @@ -108,7 +109,7 @@ func (c *Client) sendDataGetFormat(ctx context.Context, params DataGetFormatPara if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -262,11 +263,11 @@ func (c *Client) sendDefaultTest(ctx context.Context, request *DefaultTest, para startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "DefaultTest", @@ -279,7 +280,7 @@ func (c *Client) sendDefaultTest(ctx context.Context, request *DefaultTest, para if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -356,11 +357,11 @@ func (c *Client) sendErrorGet(ctx context.Context) (res *ErrorStatusCode, err er startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ErrorGet", @@ -373,7 +374,7 @@ func (c *Client) sendErrorGet(ctx context.Context) (res *ErrorStatusCode, err er if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -426,11 +427,11 @@ func (c *Client) sendFoobarGet(ctx context.Context, params FoobarGetParams) (res startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "FoobarGet", @@ -443,7 +444,7 @@ func (c *Client) sendFoobarGet(ctx context.Context, params FoobarGetParams) (res if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -544,11 +545,11 @@ func (c *Client) sendFoobarPost(ctx context.Context, request OptPet) (res Foobar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "FoobarPost", @@ -561,7 +562,7 @@ func (c *Client) sendFoobarPost(ctx context.Context, request OptPet) (res Foobar if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -613,11 +614,11 @@ func (c *Client) sendFoobarPut(ctx context.Context) (res *FoobarPutDef, err erro startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "FoobarPut", @@ -629,7 +630,7 @@ func (c *Client) sendFoobarPut(ctx context.Context) (res *FoobarPutDef, err erro if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -680,11 +681,11 @@ func (c *Client) sendNoAdditionalPropertiesTest(ctx context.Context) (res *NoAdd startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "NoAdditionalPropertiesTest", @@ -697,7 +698,7 @@ func (c *Client) sendNoAdditionalPropertiesTest(ctx context.Context) (res *NoAdd if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -748,11 +749,11 @@ func (c *Client) sendNullableDefaultResponse(ctx context.Context) (res *NilIntSt startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "NullableDefaultResponse", @@ -765,7 +766,7 @@ func (c *Client) sendNullableDefaultResponse(ctx context.Context) (res *NilIntSt if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -825,11 +826,11 @@ func (c *Client) sendOneofBug(ctx context.Context, request *OneOfBugs) (res *One startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OneofBug", @@ -842,7 +843,7 @@ func (c *Client) sendOneofBug(ctx context.Context, request *OneOfBugs) (res *One if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -894,11 +895,11 @@ func (c *Client) sendPatternRecursiveMapGet(ctx context.Context) (res PatternRec startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PatternRecursiveMapGet", @@ -910,7 +911,7 @@ func (c *Client) sendPatternRecursiveMapGet(ctx context.Context) (res PatternRec if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -979,11 +980,11 @@ func (c *Client) sendPetCreate(ctx context.Context, request OptPet) (res *Pet, e startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PetCreate", @@ -996,7 +997,7 @@ func (c *Client) sendPetCreate(ctx context.Context, request OptPet) (res *Pet, e if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1052,11 +1053,11 @@ func (c *Client) sendPetFriendsNamesByID(ctx context.Context, params PetFriendsN startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PetFriendsNamesByID", @@ -1069,7 +1070,7 @@ func (c *Client) sendPetFriendsNamesByID(ctx context.Context, params PetFriendsN if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1140,11 +1141,11 @@ func (c *Client) sendPetGet(ctx context.Context, params PetGetParams) (res PetGe startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PetGet", @@ -1157,7 +1158,7 @@ func (c *Client) sendPetGet(ctx context.Context, params PetGetParams) (res PetGe if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1285,11 +1286,11 @@ func (c *Client) sendPetGetAvatarByID(ctx context.Context, params PetGetAvatarBy startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PetGetAvatarByID", @@ -1302,7 +1303,7 @@ func (c *Client) sendPetGetAvatarByID(ctx context.Context, params PetGetAvatarBy if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1373,11 +1374,11 @@ func (c *Client) sendPetGetAvatarByName(ctx context.Context, params PetGetAvatar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PetGetAvatarByName", @@ -1390,7 +1391,7 @@ func (c *Client) sendPetGetAvatarByName(ctx context.Context, params PetGetAvatar if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1462,11 +1463,11 @@ func (c *Client) sendPetGetByName(ctx context.Context, params PetGetByNameParams startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PetGetByName", @@ -1479,7 +1480,7 @@ func (c *Client) sendPetGetByName(ctx context.Context, params PetGetByNameParams if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1550,11 +1551,11 @@ func (c *Client) sendPetNameByID(ctx context.Context, params PetNameByIDParams) startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PetNameByID", @@ -1567,7 +1568,7 @@ func (c *Client) sendPetNameByID(ctx context.Context, params PetNameByIDParams) if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1650,11 +1651,11 @@ func (c *Client) sendPetUpdateNameAliasPost(ctx context.Context, request OptPetN startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PetUpdateNameAliasPost", @@ -1666,7 +1667,7 @@ func (c *Client) sendPetUpdateNameAliasPost(ctx context.Context, request OptPetN if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1742,11 +1743,11 @@ func (c *Client) sendPetUpdateNamePost(ctx context.Context, request OptString) ( startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PetUpdateNamePost", @@ -1758,7 +1759,7 @@ func (c *Client) sendPetUpdateNamePost(ctx context.Context, request OptString) ( if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1814,11 +1815,11 @@ func (c *Client) sendPetUploadAvatarByID(ctx context.Context, request PetUploadA startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PetUploadAvatarByID", @@ -1831,7 +1832,7 @@ func (c *Client) sendPetUploadAvatarByID(ctx context.Context, request PetUploadA if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1901,11 +1902,11 @@ func (c *Client) sendRecursiveArrayGet(ctx context.Context) (res RecursiveArray, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "RecursiveArrayGet", @@ -1917,7 +1918,7 @@ func (c *Client) sendRecursiveArrayGet(ctx context.Context) (res RecursiveArray, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1966,11 +1967,11 @@ func (c *Client) sendRecursiveMapGet(ctx context.Context) (res *RecursiveMap, er startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "RecursiveMapGet", @@ -1982,7 +1983,7 @@ func (c *Client) sendRecursiveMapGet(ctx context.Context) (res *RecursiveMap, er if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2033,11 +2034,11 @@ func (c *Client) sendSecurityTest(ctx context.Context) (res string, err error) { startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SecurityTest", @@ -2050,7 +2051,7 @@ func (c *Client) sendSecurityTest(ctx context.Context) (res string, err error) { if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2132,11 +2133,11 @@ func (c *Client) sendStringIntMapGet(ctx context.Context) (res *StringIntMap, er startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "StringIntMapGet", @@ -2148,7 +2149,7 @@ func (c *Client) sendStringIntMapGet(ctx context.Context) (res *StringIntMap, er if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2208,11 +2209,11 @@ func (c *Client) sendTestFloatValidation(ctx context.Context, request *TestFloat startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestFloatValidation", @@ -2225,7 +2226,7 @@ func (c *Client) sendTestFloatValidation(ctx context.Context, request *TestFloat if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2279,11 +2280,11 @@ func (c *Client) sendTestNullableOneofs(ctx context.Context) (res TestNullableOn startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestNullableOneofs", @@ -2296,7 +2297,7 @@ func (c *Client) sendTestNullableOneofs(ctx context.Context) (res TestNullableOn if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() diff --git a/internal/integration/sample_api/oas_handlers_gen.go b/internal/integration/sample_api/oas_handlers_gen.go index 05f905f0c..5d5e80198 100644 --- a/internal/integration/sample_api/oas_handlers_gen.go +++ b/internal/integration/sample_api/oas_handlers_gen.go @@ -9,6 +9,7 @@ import ( "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" semconv "go.opentelemetry.io/otel/semconv/v1.17.0" "go.opentelemetry.io/otel/trace" @@ -40,17 +41,17 @@ func (s *Server) handleDataGetFormatRequest(args [5]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -156,17 +157,17 @@ func (s *Server) handleDefaultTestRequest(args [0]string, argsEscaped bool, w ht startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -273,17 +274,17 @@ func (s *Server) handleErrorGetRequest(args [0]string, argsEscaped bool, w http. startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -356,17 +357,17 @@ func (s *Server) handleFoobarGetRequest(args [0]string, argsEscaped bool, w http startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -462,17 +463,17 @@ func (s *Server) handleFoobarPostRequest(args [0]string, argsEscaped bool, w htt startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -557,17 +558,17 @@ func (s *Server) handleFoobarPutRequest(args [0]string, argsEscaped bool, w http startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -638,17 +639,17 @@ func (s *Server) handleNoAdditionalPropertiesTestRequest(args [0]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -719,17 +720,17 @@ func (s *Server) handleNullableDefaultResponseRequest(args [0]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -800,17 +801,17 @@ func (s *Server) handleOneofBugRequest(args [0]string, argsEscaped bool, w http. startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -895,17 +896,17 @@ func (s *Server) handlePatternRecursiveMapGetRequest(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -978,17 +979,17 @@ func (s *Server) handlePetCreateRequest(args [0]string, argsEscaped bool, w http startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1080,17 +1081,17 @@ func (s *Server) handlePetFriendsNamesByIDRequest(args [1]string, argsEscaped bo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1182,17 +1183,17 @@ func (s *Server) handlePetGetRequest(args [0]string, argsEscaped bool, w http.Re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1296,17 +1297,17 @@ func (s *Server) handlePetGetAvatarByIDRequest(args [0]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1398,17 +1399,17 @@ func (s *Server) handlePetGetAvatarByNameRequest(args [1]string, argsEscaped boo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1500,17 +1501,17 @@ func (s *Server) handlePetGetByNameRequest(args [1]string, argsEscaped bool, w h startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1602,17 +1603,17 @@ func (s *Server) handlePetNameByIDRequest(args [1]string, argsEscaped bool, w ht startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1697,17 +1698,17 @@ func (s *Server) handlePetUpdateNameAliasPostRequest(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1792,17 +1793,17 @@ func (s *Server) handlePetUpdateNamePostRequest(args [0]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1894,17 +1895,17 @@ func (s *Server) handlePetUploadAvatarByIDRequest(args [0]string, argsEscaped bo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2004,17 +2005,17 @@ func (s *Server) handleRecursiveArrayGetRequest(args [0]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -2080,17 +2081,17 @@ func (s *Server) handleRecursiveMapGetRequest(args [0]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -2161,17 +2162,17 @@ func (s *Server) handleSecurityTestRequest(args [0]string, argsEscaped bool, w h startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2285,17 +2286,17 @@ func (s *Server) handleStringIntMapGetRequest(args [0]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -2366,17 +2367,17 @@ func (s *Server) handleTestFloatValidationRequest(args [0]string, argsEscaped bo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2466,17 +2467,17 @@ func (s *Server) handleTestNullableOneofsRequest(args [0]string, argsEscaped boo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) diff --git a/internal/integration/sample_api_nc/oas_cfg_gen.go b/internal/integration/sample_api_nc/oas_cfg_gen.go index 6030946a6..42b057849 100644 --- a/internal/integration/sample_api_nc/oas_cfg_gen.go +++ b/internal/integration/sample_api_nc/oas_cfg_gen.go @@ -9,6 +9,7 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/global" "go.opentelemetry.io/otel/metric/instrument" "go.opentelemetry.io/otel/trace" @@ -61,7 +62,7 @@ func (cfg *otelConfig) initOTEL() { cfg.TracerProvider = otel.GetTracerProvider() } if cfg.MeterProvider == nil { - cfg.MeterProvider = metric.NewNoopMeterProvider() + cfg.MeterProvider = global.MeterProvider() } cfg.Tracer = cfg.TracerProvider.Tracer(otelogen.Name, trace.WithInstrumentationVersion(otelogen.SemVersion()), @@ -165,7 +166,7 @@ func WithTracerProvider(provider trace.TracerProvider) Option { // WithMeterProvider specifies a meter provider to use for creating a meter. // -// If none is specified, the metric.NewNoopMeterProvider is used. +// If none is specified, the global.MeterProvider() is used. func WithMeterProvider(provider metric.MeterProvider) Option { return otelOptionFunc(func(cfg *otelConfig) { if provider != nil { diff --git a/internal/integration/sample_api_nc/oas_handlers_gen.go b/internal/integration/sample_api_nc/oas_handlers_gen.go index 05f905f0c..5d5e80198 100644 --- a/internal/integration/sample_api_nc/oas_handlers_gen.go +++ b/internal/integration/sample_api_nc/oas_handlers_gen.go @@ -9,6 +9,7 @@ import ( "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" semconv "go.opentelemetry.io/otel/semconv/v1.17.0" "go.opentelemetry.io/otel/trace" @@ -40,17 +41,17 @@ func (s *Server) handleDataGetFormatRequest(args [5]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -156,17 +157,17 @@ func (s *Server) handleDefaultTestRequest(args [0]string, argsEscaped bool, w ht startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -273,17 +274,17 @@ func (s *Server) handleErrorGetRequest(args [0]string, argsEscaped bool, w http. startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -356,17 +357,17 @@ func (s *Server) handleFoobarGetRequest(args [0]string, argsEscaped bool, w http startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -462,17 +463,17 @@ func (s *Server) handleFoobarPostRequest(args [0]string, argsEscaped bool, w htt startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -557,17 +558,17 @@ func (s *Server) handleFoobarPutRequest(args [0]string, argsEscaped bool, w http startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -638,17 +639,17 @@ func (s *Server) handleNoAdditionalPropertiesTestRequest(args [0]string, argsEsc startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -719,17 +720,17 @@ func (s *Server) handleNullableDefaultResponseRequest(args [0]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -800,17 +801,17 @@ func (s *Server) handleOneofBugRequest(args [0]string, argsEscaped bool, w http. startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -895,17 +896,17 @@ func (s *Server) handlePatternRecursiveMapGetRequest(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -978,17 +979,17 @@ func (s *Server) handlePetCreateRequest(args [0]string, argsEscaped bool, w http startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1080,17 +1081,17 @@ func (s *Server) handlePetFriendsNamesByIDRequest(args [1]string, argsEscaped bo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1182,17 +1183,17 @@ func (s *Server) handlePetGetRequest(args [0]string, argsEscaped bool, w http.Re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1296,17 +1297,17 @@ func (s *Server) handlePetGetAvatarByIDRequest(args [0]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1398,17 +1399,17 @@ func (s *Server) handlePetGetAvatarByNameRequest(args [1]string, argsEscaped boo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1500,17 +1501,17 @@ func (s *Server) handlePetGetByNameRequest(args [1]string, argsEscaped bool, w h startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1602,17 +1603,17 @@ func (s *Server) handlePetNameByIDRequest(args [1]string, argsEscaped bool, w ht startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1697,17 +1698,17 @@ func (s *Server) handlePetUpdateNameAliasPostRequest(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1792,17 +1793,17 @@ func (s *Server) handlePetUpdateNamePostRequest(args [0]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1894,17 +1895,17 @@ func (s *Server) handlePetUploadAvatarByIDRequest(args [0]string, argsEscaped bo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2004,17 +2005,17 @@ func (s *Server) handleRecursiveArrayGetRequest(args [0]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -2080,17 +2081,17 @@ func (s *Server) handleRecursiveMapGetRequest(args [0]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -2161,17 +2162,17 @@ func (s *Server) handleSecurityTestRequest(args [0]string, argsEscaped bool, w h startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2285,17 +2286,17 @@ func (s *Server) handleStringIntMapGetRequest(args [0]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -2366,17 +2367,17 @@ func (s *Server) handleTestFloatValidationRequest(args [0]string, argsEscaped bo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -2466,17 +2467,17 @@ func (s *Server) handleTestNullableOneofsRequest(args [0]string, argsEscaped boo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) diff --git a/internal/integration/sample_api_ns/oas_cfg_gen.go b/internal/integration/sample_api_ns/oas_cfg_gen.go index 5fe40ca0b..1d242c287 100644 --- a/internal/integration/sample_api_ns/oas_cfg_gen.go +++ b/internal/integration/sample_api_ns/oas_cfg_gen.go @@ -9,6 +9,7 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/global" "go.opentelemetry.io/otel/metric/instrument" "go.opentelemetry.io/otel/trace" @@ -60,7 +61,7 @@ func (cfg *otelConfig) initOTEL() { cfg.TracerProvider = otel.GetTracerProvider() } if cfg.MeterProvider == nil { - cfg.MeterProvider = metric.NewNoopMeterProvider() + cfg.MeterProvider = global.MeterProvider() } cfg.Tracer = cfg.TracerProvider.Tracer(otelogen.Name, trace.WithInstrumentationVersion(otelogen.SemVersion()), @@ -141,7 +142,7 @@ func WithTracerProvider(provider trace.TracerProvider) Option { // WithMeterProvider specifies a meter provider to use for creating a meter. // -// If none is specified, the metric.NewNoopMeterProvider is used. +// If none is specified, the global.MeterProvider() is used. func WithMeterProvider(provider metric.MeterProvider) Option { return otelOptionFunc(func(cfg *otelConfig) { if provider != nil { diff --git a/internal/integration/sample_api_ns/oas_client_gen.go b/internal/integration/sample_api_ns/oas_client_gen.go index 22e4533eb..2d10729ef 100644 --- a/internal/integration/sample_api_ns/oas_client_gen.go +++ b/internal/integration/sample_api_ns/oas_client_gen.go @@ -11,6 +11,7 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" "go.opentelemetry.io/otel/trace" "github.com/ogen-go/ogen/conv" @@ -87,11 +88,11 @@ func (c *Client) sendDataGetFormat(ctx context.Context, params DataGetFormatPara startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "DataGetFormat", @@ -104,7 +105,7 @@ func (c *Client) sendDataGetFormat(ctx context.Context, params DataGetFormatPara if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -258,11 +259,11 @@ func (c *Client) sendDefaultTest(ctx context.Context, request *DefaultTest, para startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "DefaultTest", @@ -275,7 +276,7 @@ func (c *Client) sendDefaultTest(ctx context.Context, request *DefaultTest, para if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -352,11 +353,11 @@ func (c *Client) sendErrorGet(ctx context.Context) (res *ErrorStatusCode, err er startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ErrorGet", @@ -369,7 +370,7 @@ func (c *Client) sendErrorGet(ctx context.Context) (res *ErrorStatusCode, err er if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -422,11 +423,11 @@ func (c *Client) sendFoobarGet(ctx context.Context, params FoobarGetParams) (res startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "FoobarGet", @@ -439,7 +440,7 @@ func (c *Client) sendFoobarGet(ctx context.Context, params FoobarGetParams) (res if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -540,11 +541,11 @@ func (c *Client) sendFoobarPost(ctx context.Context, request OptPet) (res Foobar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "FoobarPost", @@ -557,7 +558,7 @@ func (c *Client) sendFoobarPost(ctx context.Context, request OptPet) (res Foobar if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -609,11 +610,11 @@ func (c *Client) sendFoobarPut(ctx context.Context) (res *FoobarPutDef, err erro startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "FoobarPut", @@ -625,7 +626,7 @@ func (c *Client) sendFoobarPut(ctx context.Context) (res *FoobarPutDef, err erro if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -676,11 +677,11 @@ func (c *Client) sendNoAdditionalPropertiesTest(ctx context.Context) (res *NoAdd startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "NoAdditionalPropertiesTest", @@ -693,7 +694,7 @@ func (c *Client) sendNoAdditionalPropertiesTest(ctx context.Context) (res *NoAdd if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -744,11 +745,11 @@ func (c *Client) sendNullableDefaultResponse(ctx context.Context) (res *NilIntSt startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "NullableDefaultResponse", @@ -761,7 +762,7 @@ func (c *Client) sendNullableDefaultResponse(ctx context.Context) (res *NilIntSt if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -821,11 +822,11 @@ func (c *Client) sendOneofBug(ctx context.Context, request *OneOfBugs) (res *One startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OneofBug", @@ -838,7 +839,7 @@ func (c *Client) sendOneofBug(ctx context.Context, request *OneOfBugs) (res *One if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -890,11 +891,11 @@ func (c *Client) sendPatternRecursiveMapGet(ctx context.Context) (res PatternRec startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PatternRecursiveMapGet", @@ -906,7 +907,7 @@ func (c *Client) sendPatternRecursiveMapGet(ctx context.Context) (res PatternRec if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -975,11 +976,11 @@ func (c *Client) sendPetCreate(ctx context.Context, request OptPet) (res *Pet, e startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PetCreate", @@ -992,7 +993,7 @@ func (c *Client) sendPetCreate(ctx context.Context, request OptPet) (res *Pet, e if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1048,11 +1049,11 @@ func (c *Client) sendPetFriendsNamesByID(ctx context.Context, params PetFriendsN startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PetFriendsNamesByID", @@ -1065,7 +1066,7 @@ func (c *Client) sendPetFriendsNamesByID(ctx context.Context, params PetFriendsN if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1136,11 +1137,11 @@ func (c *Client) sendPetGet(ctx context.Context, params PetGetParams) (res PetGe startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PetGet", @@ -1153,7 +1154,7 @@ func (c *Client) sendPetGet(ctx context.Context, params PetGetParams) (res PetGe if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1281,11 +1282,11 @@ func (c *Client) sendPetGetAvatarByID(ctx context.Context, params PetGetAvatarBy startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PetGetAvatarByID", @@ -1298,7 +1299,7 @@ func (c *Client) sendPetGetAvatarByID(ctx context.Context, params PetGetAvatarBy if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1369,11 +1370,11 @@ func (c *Client) sendPetGetAvatarByName(ctx context.Context, params PetGetAvatar startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PetGetAvatarByName", @@ -1386,7 +1387,7 @@ func (c *Client) sendPetGetAvatarByName(ctx context.Context, params PetGetAvatar if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1458,11 +1459,11 @@ func (c *Client) sendPetGetByName(ctx context.Context, params PetGetByNameParams startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PetGetByName", @@ -1475,7 +1476,7 @@ func (c *Client) sendPetGetByName(ctx context.Context, params PetGetByNameParams if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1546,11 +1547,11 @@ func (c *Client) sendPetNameByID(ctx context.Context, params PetNameByIDParams) startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PetNameByID", @@ -1563,7 +1564,7 @@ func (c *Client) sendPetNameByID(ctx context.Context, params PetNameByIDParams) if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1646,11 +1647,11 @@ func (c *Client) sendPetUpdateNameAliasPost(ctx context.Context, request OptPetN startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PetUpdateNameAliasPost", @@ -1662,7 +1663,7 @@ func (c *Client) sendPetUpdateNameAliasPost(ctx context.Context, request OptPetN if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1738,11 +1739,11 @@ func (c *Client) sendPetUpdateNamePost(ctx context.Context, request OptString) ( startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PetUpdateNamePost", @@ -1754,7 +1755,7 @@ func (c *Client) sendPetUpdateNamePost(ctx context.Context, request OptString) ( if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1810,11 +1811,11 @@ func (c *Client) sendPetUploadAvatarByID(ctx context.Context, request PetUploadA startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PetUploadAvatarByID", @@ -1827,7 +1828,7 @@ func (c *Client) sendPetUploadAvatarByID(ctx context.Context, request PetUploadA if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1897,11 +1898,11 @@ func (c *Client) sendRecursiveArrayGet(ctx context.Context) (res RecursiveArray, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "RecursiveArrayGet", @@ -1913,7 +1914,7 @@ func (c *Client) sendRecursiveArrayGet(ctx context.Context) (res RecursiveArray, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1962,11 +1963,11 @@ func (c *Client) sendRecursiveMapGet(ctx context.Context) (res *RecursiveMap, er startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "RecursiveMapGet", @@ -1978,7 +1979,7 @@ func (c *Client) sendRecursiveMapGet(ctx context.Context) (res *RecursiveMap, er if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2029,11 +2030,11 @@ func (c *Client) sendSecurityTest(ctx context.Context) (res string, err error) { startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SecurityTest", @@ -2046,7 +2047,7 @@ func (c *Client) sendSecurityTest(ctx context.Context) (res string, err error) { if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2128,11 +2129,11 @@ func (c *Client) sendStringIntMapGet(ctx context.Context) (res *StringIntMap, er startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "StringIntMapGet", @@ -2144,7 +2145,7 @@ func (c *Client) sendStringIntMapGet(ctx context.Context) (res *StringIntMap, er if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2204,11 +2205,11 @@ func (c *Client) sendTestFloatValidation(ctx context.Context, request *TestFloat startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestFloatValidation", @@ -2221,7 +2222,7 @@ func (c *Client) sendTestFloatValidation(ctx context.Context, request *TestFloat if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -2275,11 +2276,11 @@ func (c *Client) sendTestNullableOneofs(ctx context.Context) (res TestNullableOn startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestNullableOneofs", @@ -2292,7 +2293,7 @@ func (c *Client) sendTestNullableOneofs(ctx context.Context) (res TestNullableOn if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() diff --git a/internal/integration/sample_err/oas_cfg_gen.go b/internal/integration/sample_err/oas_cfg_gen.go index 200975a4a..2674bd0c4 100644 --- a/internal/integration/sample_err/oas_cfg_gen.go +++ b/internal/integration/sample_err/oas_cfg_gen.go @@ -7,6 +7,7 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/global" "go.opentelemetry.io/otel/metric/instrument" "go.opentelemetry.io/otel/trace" @@ -40,7 +41,7 @@ func (cfg *otelConfig) initOTEL() { cfg.TracerProvider = otel.GetTracerProvider() } if cfg.MeterProvider == nil { - cfg.MeterProvider = metric.NewNoopMeterProvider() + cfg.MeterProvider = global.MeterProvider() } cfg.Tracer = cfg.TracerProvider.Tracer(otelogen.Name, trace.WithInstrumentationVersion(otelogen.SemVersion()), @@ -200,7 +201,7 @@ func WithTracerProvider(provider trace.TracerProvider) Option { // WithMeterProvider specifies a meter provider to use for creating a meter. // -// If none is specified, the metric.NewNoopMeterProvider is used. +// If none is specified, the global.MeterProvider() is used. func WithMeterProvider(provider metric.MeterProvider) Option { return otelOptionFunc(func(cfg *otelConfig) { if provider != nil { diff --git a/internal/integration/sample_err/oas_client_gen.go b/internal/integration/sample_err/oas_client_gen.go index bb96fc13c..4b1e71134 100644 --- a/internal/integration/sample_err/oas_client_gen.go +++ b/internal/integration/sample_err/oas_client_gen.go @@ -11,6 +11,7 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" "go.opentelemetry.io/otel/trace" ht "github.com/ogen-go/ogen/http" @@ -90,11 +91,11 @@ func (c *Client) sendDataCreate(ctx context.Context, request OptData) (res *Data startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "DataCreate", @@ -107,7 +108,7 @@ func (c *Client) sendDataCreate(ctx context.Context, request OptData) (res *Data if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -163,11 +164,11 @@ func (c *Client) sendDataGet(ctx context.Context) (res *Data, err error) { startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "DataGet", @@ -180,7 +181,7 @@ func (c *Client) sendDataGet(ctx context.Context) (res *Data, err error) { if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() diff --git a/internal/integration/sample_err/oas_handlers_gen.go b/internal/integration/sample_err/oas_handlers_gen.go index 315be7e3e..78a733e19 100644 --- a/internal/integration/sample_err/oas_handlers_gen.go +++ b/internal/integration/sample_err/oas_handlers_gen.go @@ -10,6 +10,7 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" semconv "go.opentelemetry.io/otel/semconv/v1.17.0" "go.opentelemetry.io/otel/trace" @@ -42,17 +43,17 @@ func (s *Server) handleDataCreateRequest(args [0]string, argsEscaped bool, w htt startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -152,17 +153,17 @@ func (s *Server) handleDataGetRequest(args [0]string, argsEscaped bool, w http.R startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) diff --git a/internal/integration/techempower/oas_cfg_gen.go b/internal/integration/techempower/oas_cfg_gen.go index c1d86eef1..50a5931eb 100644 --- a/internal/integration/techempower/oas_cfg_gen.go +++ b/internal/integration/techempower/oas_cfg_gen.go @@ -7,6 +7,7 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/global" "go.opentelemetry.io/otel/metric/instrument" "go.opentelemetry.io/otel/trace" @@ -40,7 +41,7 @@ func (cfg *otelConfig) initOTEL() { cfg.TracerProvider = otel.GetTracerProvider() } if cfg.MeterProvider == nil { - cfg.MeterProvider = metric.NewNoopMeterProvider() + cfg.MeterProvider = global.MeterProvider() } cfg.Tracer = cfg.TracerProvider.Tracer(otelogen.Name, trace.WithInstrumentationVersion(otelogen.SemVersion()), @@ -200,7 +201,7 @@ func WithTracerProvider(provider trace.TracerProvider) Option { // WithMeterProvider specifies a meter provider to use for creating a meter. // -// If none is specified, the metric.NewNoopMeterProvider is used. +// If none is specified, the global.MeterProvider() is used. func WithMeterProvider(provider metric.MeterProvider) Option { return otelOptionFunc(func(cfg *otelConfig) { if provider != nil { diff --git a/internal/integration/techempower/oas_client_gen.go b/internal/integration/techempower/oas_client_gen.go index 48affa860..b32eceb7c 100644 --- a/internal/integration/techempower/oas_client_gen.go +++ b/internal/integration/techempower/oas_client_gen.go @@ -11,6 +11,7 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" "go.opentelemetry.io/otel/trace" "github.com/ogen-go/ogen/conv" @@ -92,11 +93,11 @@ func (c *Client) sendCaching(ctx context.Context, params CachingParams) (res Wor startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "Caching", @@ -109,7 +110,7 @@ func (c *Client) sendCaching(ctx context.Context, params CachingParams) (res Wor if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -181,11 +182,11 @@ func (c *Client) sendDB(ctx context.Context) (res *WorldObject, err error) { startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "DB", @@ -198,7 +199,7 @@ func (c *Client) sendDB(ctx context.Context) (res *WorldObject, err error) { if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -253,11 +254,11 @@ func (c *Client) sendJSON(ctx context.Context) (res *HelloWorld, err error) { startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "JSON", @@ -270,7 +271,7 @@ func (c *Client) sendJSON(ctx context.Context) (res *HelloWorld, err error) { if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -326,11 +327,11 @@ func (c *Client) sendQueries(ctx context.Context, params QueriesParams) (res Wor startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "Queries", @@ -343,7 +344,7 @@ func (c *Client) sendQueries(ctx context.Context, params QueriesParams) (res Wor if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -416,11 +417,11 @@ func (c *Client) sendUpdates(ctx context.Context, params UpdatesParams) (res Wor startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "Updates", @@ -433,7 +434,7 @@ func (c *Client) sendUpdates(ctx context.Context, params UpdatesParams) (res Wor if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() diff --git a/internal/integration/techempower/oas_handlers_gen.go b/internal/integration/techempower/oas_handlers_gen.go index 574a9e63a..d75c7c81a 100644 --- a/internal/integration/techempower/oas_handlers_gen.go +++ b/internal/integration/techempower/oas_handlers_gen.go @@ -9,6 +9,7 @@ import ( "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" semconv "go.opentelemetry.io/otel/semconv/v1.17.0" "go.opentelemetry.io/otel/trace" @@ -45,17 +46,17 @@ func (s *Server) handleCachingRequest(args [0]string, argsEscaped bool, w http.R startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -148,17 +149,17 @@ func (s *Server) handleDBRequest(args [0]string, argsEscaped bool, w http.Respon startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -233,17 +234,17 @@ func (s *Server) handleJSONRequest(args [0]string, argsEscaped bool, w http.Resp startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -319,17 +320,17 @@ func (s *Server) handleQueriesRequest(args [0]string, argsEscaped bool, w http.R startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -423,17 +424,17 @@ func (s *Server) handleUpdatesRequest(args [0]string, argsEscaped bool, w http.R startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ diff --git a/internal/integration/test_allof/oas_cfg_gen.go b/internal/integration/test_allof/oas_cfg_gen.go index fd02e24e4..4307a6802 100644 --- a/internal/integration/test_allof/oas_cfg_gen.go +++ b/internal/integration/test_allof/oas_cfg_gen.go @@ -7,6 +7,7 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/global" "go.opentelemetry.io/otel/metric/instrument" "go.opentelemetry.io/otel/trace" @@ -44,7 +45,7 @@ func (cfg *otelConfig) initOTEL() { cfg.TracerProvider = otel.GetTracerProvider() } if cfg.MeterProvider == nil { - cfg.MeterProvider = metric.NewNoopMeterProvider() + cfg.MeterProvider = global.MeterProvider() } cfg.Tracer = cfg.TracerProvider.Tracer(otelogen.Name, trace.WithInstrumentationVersion(otelogen.SemVersion()), @@ -204,7 +205,7 @@ func WithTracerProvider(provider trace.TracerProvider) Option { // WithMeterProvider specifies a meter provider to use for creating a meter. // -// If none is specified, the metric.NewNoopMeterProvider is used. +// If none is specified, the global.MeterProvider() is used. func WithMeterProvider(provider metric.MeterProvider) Option { return otelOptionFunc(func(cfg *otelConfig) { if provider != nil { diff --git a/internal/integration/test_allof/oas_client_gen.go b/internal/integration/test_allof/oas_client_gen.go index 224065e20..34d9e9a0a 100644 --- a/internal/integration/test_allof/oas_client_gen.go +++ b/internal/integration/test_allof/oas_client_gen.go @@ -11,6 +11,7 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" "go.opentelemetry.io/otel/trace" ht "github.com/ogen-go/ogen/http" @@ -104,11 +105,11 @@ func (c *Client) sendNullableStrings(ctx context.Context, request NilString) (re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "NullableStrings", @@ -121,7 +122,7 @@ func (c *Client) sendNullableStrings(ctx context.Context, request NilString) (re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -186,11 +187,11 @@ func (c *Client) sendObjectsWithConflictingArrayProperty(ctx context.Context, re startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ObjectsWithConflictingArrayProperty", @@ -203,7 +204,7 @@ func (c *Client) sendObjectsWithConflictingArrayProperty(ctx context.Context, re if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -268,11 +269,11 @@ func (c *Client) sendObjectsWithConflictingProperties(ctx context.Context, reque startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ObjectsWithConflictingProperties", @@ -285,7 +286,7 @@ func (c *Client) sendObjectsWithConflictingProperties(ctx context.Context, reque if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -364,11 +365,11 @@ func (c *Client) sendReferencedAllof(ctx context.Context, request ReferencedAllo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReferencedAllof", @@ -381,7 +382,7 @@ func (c *Client) sendReferencedAllof(ctx context.Context, request ReferencedAllo if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -462,11 +463,11 @@ func (c *Client) sendReferencedAllofOptional(ctx context.Context, request Refere startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ReferencedAllofOptional", @@ -479,7 +480,7 @@ func (c *Client) sendReferencedAllofOptional(ctx context.Context, request Refere if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -553,11 +554,11 @@ func (c *Client) sendSimpleInteger(ctx context.Context, request int) (res *Simpl startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SimpleInteger", @@ -570,7 +571,7 @@ func (c *Client) sendSimpleInteger(ctx context.Context, request int) (res *Simpl if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -626,11 +627,11 @@ func (c *Client) sendSimpleObjects(ctx context.Context, request *SimpleObjectsRe startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SimpleObjects", @@ -643,7 +644,7 @@ func (c *Client) sendSimpleObjects(ctx context.Context, request *SimpleObjectsRe if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -714,11 +715,11 @@ func (c *Client) sendStringsNotype(ctx context.Context, request NilString) (res startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "StringsNotype", @@ -731,7 +732,7 @@ func (c *Client) sendStringsNotype(ctx context.Context, request NilString) (res if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() diff --git a/internal/integration/test_allof/oas_handlers_gen.go b/internal/integration/test_allof/oas_handlers_gen.go index d4d0494b9..c848f969c 100644 --- a/internal/integration/test_allof/oas_handlers_gen.go +++ b/internal/integration/test_allof/oas_handlers_gen.go @@ -9,6 +9,7 @@ import ( "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" semconv "go.opentelemetry.io/otel/semconv/v1.17.0" "go.opentelemetry.io/otel/trace" @@ -40,17 +41,17 @@ func (s *Server) handleNullableStringsRequest(args [0]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -142,17 +143,17 @@ func (s *Server) handleObjectsWithConflictingArrayPropertyRequest(args [0]string startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -244,17 +245,17 @@ func (s *Server) handleObjectsWithConflictingPropertiesRequest(args [0]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -346,17 +347,17 @@ func (s *Server) handleReferencedAllofRequest(args [0]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -448,17 +449,17 @@ func (s *Server) handleReferencedAllofOptionalRequest(args [0]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -550,17 +551,17 @@ func (s *Server) handleSimpleIntegerRequest(args [0]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -652,17 +653,17 @@ func (s *Server) handleSimpleObjectsRequest(args [0]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -752,17 +753,17 @@ func (s *Server) handleStringsNotypeRequest(args [0]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ diff --git a/internal/integration/test_anyof/oas_cfg_gen.go b/internal/integration/test_anyof/oas_cfg_gen.go index 8917263de..557ce42ed 100644 --- a/internal/integration/test_anyof/oas_cfg_gen.go +++ b/internal/integration/test_anyof/oas_cfg_gen.go @@ -7,6 +7,7 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/global" "go.opentelemetry.io/otel/metric/instrument" "go.opentelemetry.io/otel/trace" @@ -44,7 +45,7 @@ func (cfg *otelConfig) initOTEL() { cfg.TracerProvider = otel.GetTracerProvider() } if cfg.MeterProvider == nil { - cfg.MeterProvider = metric.NewNoopMeterProvider() + cfg.MeterProvider = global.MeterProvider() } cfg.Tracer = cfg.TracerProvider.Tracer(otelogen.Name, trace.WithInstrumentationVersion(otelogen.SemVersion()), @@ -204,7 +205,7 @@ func WithTracerProvider(provider trace.TracerProvider) Option { // WithMeterProvider specifies a meter provider to use for creating a meter. // -// If none is specified, the metric.NewNoopMeterProvider is used. +// If none is specified, the global.MeterProvider() is used. func WithMeterProvider(provider metric.MeterProvider) Option { return otelOptionFunc(func(cfg *otelConfig) { if provider != nil { diff --git a/internal/integration/test_anyof/oas_client_gen.go b/internal/integration/test_anyof/oas_client_gen.go index 6e64a35ea..e76b2e1e4 100644 --- a/internal/integration/test_anyof/oas_client_gen.go +++ b/internal/integration/test_anyof/oas_client_gen.go @@ -11,6 +11,7 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" "go.opentelemetry.io/otel/trace" ht "github.com/ogen-go/ogen/http" @@ -84,11 +85,11 @@ func (c *Client) sendIntegerNumber(ctx context.Context) (res *IntegerNumber, err startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "IntegerNumber", @@ -101,7 +102,7 @@ func (c *Client) sendIntegerNumber(ctx context.Context) (res *IntegerNumber, err if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -152,11 +153,11 @@ func (c *Client) sendJaegerAnyOf(ctx context.Context) (res *JaegerAnyOf, err err startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "JaegerAnyOf", @@ -169,7 +170,7 @@ func (c *Client) sendJaegerAnyOf(ctx context.Context) (res *JaegerAnyOf, err err if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -220,11 +221,11 @@ func (c *Client) sendOneUUID(ctx context.Context) (res *OneUUID, err error) { startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OneUUID", @@ -237,7 +238,7 @@ func (c *Client) sendOneUUID(ctx context.Context) (res *OneUUID, err error) { if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() diff --git a/internal/integration/test_anyof/oas_handlers_gen.go b/internal/integration/test_anyof/oas_handlers_gen.go index f9d39ee05..f8190cc85 100644 --- a/internal/integration/test_anyof/oas_handlers_gen.go +++ b/internal/integration/test_anyof/oas_handlers_gen.go @@ -9,6 +9,7 @@ import ( "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" semconv "go.opentelemetry.io/otel/semconv/v1.17.0" "go.opentelemetry.io/otel/trace" @@ -37,17 +38,17 @@ func (s *Server) handleIntegerNumberRequest(args [0]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -118,17 +119,17 @@ func (s *Server) handleJaegerAnyOfRequest(args [0]string, argsEscaped bool, w ht startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -199,17 +200,17 @@ func (s *Server) handleOneUUIDRequest(args [0]string, argsEscaped bool, w http.R startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) diff --git a/internal/integration/test_customformats/oas_cfg_gen.go b/internal/integration/test_customformats/oas_cfg_gen.go index bbc8c33fa..abab7ec57 100644 --- a/internal/integration/test_customformats/oas_cfg_gen.go +++ b/internal/integration/test_customformats/oas_cfg_gen.go @@ -7,6 +7,7 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/global" "go.opentelemetry.io/otel/metric/instrument" "go.opentelemetry.io/otel/trace" @@ -70,7 +71,7 @@ func (cfg *otelConfig) initOTEL() { cfg.TracerProvider = otel.GetTracerProvider() } if cfg.MeterProvider == nil { - cfg.MeterProvider = metric.NewNoopMeterProvider() + cfg.MeterProvider = global.MeterProvider() } cfg.Tracer = cfg.TracerProvider.Tracer(otelogen.Name, trace.WithInstrumentationVersion(otelogen.SemVersion()), @@ -230,7 +231,7 @@ func WithTracerProvider(provider trace.TracerProvider) Option { // WithMeterProvider specifies a meter provider to use for creating a meter. // -// If none is specified, the metric.NewNoopMeterProvider is used. +// If none is specified, the global.MeterProvider() is used. func WithMeterProvider(provider metric.MeterProvider) Option { return otelOptionFunc(func(cfg *otelConfig) { if provider != nil { diff --git a/internal/integration/test_customformats/oas_client_gen.go b/internal/integration/test_customformats/oas_client_gen.go index fc43bced5..31017da35 100644 --- a/internal/integration/test_customformats/oas_client_gen.go +++ b/internal/integration/test_customformats/oas_client_gen.go @@ -11,6 +11,7 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" ht "github.com/ogen-go/ogen/http" "github.com/ogen-go/ogen/uri" @@ -80,11 +81,11 @@ func (c *Client) sendEventPost(ctx context.Context, request any) (res any, err e startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "EventPost", @@ -96,7 +97,7 @@ func (c *Client) sendEventPost(ctx context.Context, request any) (res any, err e if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -148,11 +149,11 @@ func (c *Client) sendPhoneGet(ctx context.Context, request *User, params PhoneGe startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PhoneGet", @@ -164,7 +165,7 @@ func (c *Client) sendPhoneGet(ctx context.Context, request *User, params PhoneGe if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() diff --git a/internal/integration/test_customformats/oas_handlers_gen.go b/internal/integration/test_customformats/oas_handlers_gen.go index 7b2e5f438..f28fb0993 100644 --- a/internal/integration/test_customformats/oas_handlers_gen.go +++ b/internal/integration/test_customformats/oas_handlers_gen.go @@ -9,6 +9,7 @@ import ( "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" "github.com/ogen-go/ogen/middleware" "github.com/ogen-go/ogen/ogenerrors" @@ -30,17 +31,17 @@ func (s *Server) handleEventPostRequest(args [0]string, argsEscaped bool, w http startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -125,17 +126,17 @@ func (s *Server) handlePhoneGetRequest(args [0]string, argsEscaped bool, w http. startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ diff --git a/internal/integration/test_enum_naming/oas_cfg_gen.go b/internal/integration/test_enum_naming/oas_cfg_gen.go index 200975a4a..2674bd0c4 100644 --- a/internal/integration/test_enum_naming/oas_cfg_gen.go +++ b/internal/integration/test_enum_naming/oas_cfg_gen.go @@ -7,6 +7,7 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/global" "go.opentelemetry.io/otel/metric/instrument" "go.opentelemetry.io/otel/trace" @@ -40,7 +41,7 @@ func (cfg *otelConfig) initOTEL() { cfg.TracerProvider = otel.GetTracerProvider() } if cfg.MeterProvider == nil { - cfg.MeterProvider = metric.NewNoopMeterProvider() + cfg.MeterProvider = global.MeterProvider() } cfg.Tracer = cfg.TracerProvider.Tracer(otelogen.Name, trace.WithInstrumentationVersion(otelogen.SemVersion()), @@ -200,7 +201,7 @@ func WithTracerProvider(provider trace.TracerProvider) Option { // WithMeterProvider specifies a meter provider to use for creating a meter. // -// If none is specified, the metric.NewNoopMeterProvider is used. +// If none is specified, the global.MeterProvider() is used. func WithMeterProvider(provider metric.MeterProvider) Option { return otelOptionFunc(func(cfg *otelConfig) { if provider != nil { diff --git a/internal/integration/test_enum_naming/oas_client_gen.go b/internal/integration/test_enum_naming/oas_client_gen.go index 803dded9e..cc2485ed7 100644 --- a/internal/integration/test_enum_naming/oas_client_gen.go +++ b/internal/integration/test_enum_naming/oas_client_gen.go @@ -11,6 +11,7 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" "go.opentelemetry.io/otel/trace" ht "github.com/ogen-go/ogen/http" @@ -86,11 +87,11 @@ func (c *Client) sendProbeLiveness(ctx context.Context) (res *ProbeLivenessOK, e startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ProbeLiveness", @@ -103,7 +104,7 @@ func (c *Client) sendProbeLiveness(ctx context.Context) (res *ProbeLivenessOK, e if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() diff --git a/internal/integration/test_enum_naming/oas_handlers_gen.go b/internal/integration/test_enum_naming/oas_handlers_gen.go index 929fea543..cd69876b0 100644 --- a/internal/integration/test_enum_naming/oas_handlers_gen.go +++ b/internal/integration/test_enum_naming/oas_handlers_gen.go @@ -9,6 +9,7 @@ import ( "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" semconv "go.opentelemetry.io/otel/semconv/v1.17.0" "go.opentelemetry.io/otel/trace" @@ -39,17 +40,17 @@ func (s *Server) handleProbeLivenessRequest(args [0]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) diff --git a/internal/integration/test_form/oas_cfg_gen.go b/internal/integration/test_form/oas_cfg_gen.go index 200975a4a..2674bd0c4 100644 --- a/internal/integration/test_form/oas_cfg_gen.go +++ b/internal/integration/test_form/oas_cfg_gen.go @@ -7,6 +7,7 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/global" "go.opentelemetry.io/otel/metric/instrument" "go.opentelemetry.io/otel/trace" @@ -40,7 +41,7 @@ func (cfg *otelConfig) initOTEL() { cfg.TracerProvider = otel.GetTracerProvider() } if cfg.MeterProvider == nil { - cfg.MeterProvider = metric.NewNoopMeterProvider() + cfg.MeterProvider = global.MeterProvider() } cfg.Tracer = cfg.TracerProvider.Tracer(otelogen.Name, trace.WithInstrumentationVersion(otelogen.SemVersion()), @@ -200,7 +201,7 @@ func WithTracerProvider(provider trace.TracerProvider) Option { // WithMeterProvider specifies a meter provider to use for creating a meter. // -// If none is specified, the metric.NewNoopMeterProvider is used. +// If none is specified, the global.MeterProvider() is used. func WithMeterProvider(provider metric.MeterProvider) Option { return otelOptionFunc(func(cfg *otelConfig) { if provider != nil { diff --git a/internal/integration/test_form/oas_client_gen.go b/internal/integration/test_form/oas_client_gen.go index 629e32397..cc08e4023 100644 --- a/internal/integration/test_form/oas_client_gen.go +++ b/internal/integration/test_form/oas_client_gen.go @@ -11,6 +11,7 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" "go.opentelemetry.io/otel/trace" ht "github.com/ogen-go/ogen/http" @@ -84,11 +85,11 @@ func (c *Client) sendOnlyForm(ctx context.Context, request *OnlyFormReq) (res *O startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OnlyForm", @@ -101,7 +102,7 @@ func (c *Client) sendOnlyForm(ctx context.Context, request *OnlyFormReq) (res *O if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -155,11 +156,11 @@ func (c *Client) sendOnlyMultipartFile(ctx context.Context, request *OnlyMultipa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OnlyMultipartFile", @@ -172,7 +173,7 @@ func (c *Client) sendOnlyMultipartFile(ctx context.Context, request *OnlyMultipa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -226,11 +227,11 @@ func (c *Client) sendOnlyMultipartForm(ctx context.Context, request *OnlyMultipa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OnlyMultipartForm", @@ -243,7 +244,7 @@ func (c *Client) sendOnlyMultipartForm(ctx context.Context, request *OnlyMultipa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -297,11 +298,11 @@ func (c *Client) sendTestFormURLEncoded(ctx context.Context, request *TestForm) startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestFormURLEncoded", @@ -314,7 +315,7 @@ func (c *Client) sendTestFormURLEncoded(ctx context.Context, request *TestForm) if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -368,11 +369,11 @@ func (c *Client) sendTestMultipart(ctx context.Context, request *TestFormMultipa startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestMultipart", @@ -385,7 +386,7 @@ func (c *Client) sendTestMultipart(ctx context.Context, request *TestFormMultipa if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -448,11 +449,11 @@ func (c *Client) sendTestMultipartUpload(ctx context.Context, request *TestMulti startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestMultipartUpload", @@ -465,7 +466,7 @@ func (c *Client) sendTestMultipartUpload(ctx context.Context, request *TestMulti if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -519,11 +520,11 @@ func (c *Client) sendTestReuseFormOptionalSchema(ctx context.Context, request Op startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestReuseFormOptionalSchema", @@ -536,7 +537,7 @@ func (c *Client) sendTestReuseFormOptionalSchema(ctx context.Context, request Op if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -590,11 +591,11 @@ func (c *Client) sendTestReuseFormSchema(ctx context.Context, request *SharedReq startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestReuseFormSchema", @@ -607,7 +608,7 @@ func (c *Client) sendTestReuseFormSchema(ctx context.Context, request *SharedReq if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -670,11 +671,11 @@ func (c *Client) sendTestShareFormSchema(ctx context.Context, request TestShareF startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TestShareFormSchema", @@ -687,7 +688,7 @@ func (c *Client) sendTestShareFormSchema(ctx context.Context, request TestShareF if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() diff --git a/internal/integration/test_form/oas_handlers_gen.go b/internal/integration/test_form/oas_handlers_gen.go index f4e49f532..436e94db1 100644 --- a/internal/integration/test_form/oas_handlers_gen.go +++ b/internal/integration/test_form/oas_handlers_gen.go @@ -9,6 +9,7 @@ import ( "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" semconv "go.opentelemetry.io/otel/semconv/v1.17.0" "go.opentelemetry.io/otel/trace" @@ -38,17 +39,17 @@ func (s *Server) handleOnlyFormRequest(args [0]string, argsEscaped bool, w http. startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -138,17 +139,17 @@ func (s *Server) handleOnlyMultipartFileRequest(args [0]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -238,17 +239,17 @@ func (s *Server) handleOnlyMultipartFormRequest(args [0]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -338,17 +339,17 @@ func (s *Server) handleTestFormURLEncodedRequest(args [0]string, argsEscaped boo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -438,17 +439,17 @@ func (s *Server) handleTestMultipartRequest(args [0]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -538,17 +539,17 @@ func (s *Server) handleTestMultipartUploadRequest(args [0]string, argsEscaped bo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -638,17 +639,17 @@ func (s *Server) handleTestReuseFormOptionalSchemaRequest(args [0]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -738,17 +739,17 @@ func (s *Server) handleTestReuseFormSchemaRequest(args [0]string, argsEscaped bo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -838,17 +839,17 @@ func (s *Server) handleTestShareFormSchemaRequest(args [0]string, argsEscaped bo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ diff --git a/internal/integration/test_http_requests/oas_cfg_gen.go b/internal/integration/test_http_requests/oas_cfg_gen.go index 200975a4a..2674bd0c4 100644 --- a/internal/integration/test_http_requests/oas_cfg_gen.go +++ b/internal/integration/test_http_requests/oas_cfg_gen.go @@ -7,6 +7,7 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/global" "go.opentelemetry.io/otel/metric/instrument" "go.opentelemetry.io/otel/trace" @@ -40,7 +41,7 @@ func (cfg *otelConfig) initOTEL() { cfg.TracerProvider = otel.GetTracerProvider() } if cfg.MeterProvider == nil { - cfg.MeterProvider = metric.NewNoopMeterProvider() + cfg.MeterProvider = global.MeterProvider() } cfg.Tracer = cfg.TracerProvider.Tracer(otelogen.Name, trace.WithInstrumentationVersion(otelogen.SemVersion()), @@ -200,7 +201,7 @@ func WithTracerProvider(provider trace.TracerProvider) Option { // WithMeterProvider specifies a meter provider to use for creating a meter. // -// If none is specified, the metric.NewNoopMeterProvider is used. +// If none is specified, the global.MeterProvider() is used. func WithMeterProvider(provider metric.MeterProvider) Option { return otelOptionFunc(func(cfg *otelConfig) { if provider != nil { diff --git a/internal/integration/test_http_requests/oas_client_gen.go b/internal/integration/test_http_requests/oas_client_gen.go index 34e0e257f..e020530ee 100644 --- a/internal/integration/test_http_requests/oas_client_gen.go +++ b/internal/integration/test_http_requests/oas_client_gen.go @@ -12,6 +12,7 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" "go.opentelemetry.io/otel/trace" ht "github.com/ogen-go/ogen/http" @@ -101,11 +102,11 @@ func (c *Client) sendAllRequestBodies(ctx context.Context, request AllRequestBod startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "AllRequestBodies", @@ -118,7 +119,7 @@ func (c *Client) sendAllRequestBodies(ctx context.Context, request AllRequestBod if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -189,11 +190,11 @@ func (c *Client) sendAllRequestBodiesOptional(ctx context.Context, request AllRe startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "AllRequestBodiesOptional", @@ -206,7 +207,7 @@ func (c *Client) sendAllRequestBodiesOptional(ctx context.Context, request AllRe if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -260,11 +261,11 @@ func (c *Client) sendBase64Request(ctx context.Context, request Base64RequestReq startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "Base64Request", @@ -277,7 +278,7 @@ func (c *Client) sendBase64Request(ctx context.Context, request Base64RequestReq if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -331,11 +332,11 @@ func (c *Client) sendMaskContentType(ctx context.Context, request *MaskContentTy startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "MaskContentType", @@ -348,7 +349,7 @@ func (c *Client) sendMaskContentType(ctx context.Context, request *MaskContentTy if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -402,11 +403,11 @@ func (c *Client) sendMaskContentTypeOptional(ctx context.Context, request *MaskC startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "MaskContentTypeOptional", @@ -419,7 +420,7 @@ func (c *Client) sendMaskContentTypeOptional(ctx context.Context, request *MaskC if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -499,11 +500,11 @@ func (c *Client) sendStreamJSON(ctx context.Context, request []float64) (res flo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "StreamJSON", @@ -516,7 +517,7 @@ func (c *Client) sendStreamJSON(ctx context.Context, request []float64) (res flo if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() diff --git a/internal/integration/test_http_requests/oas_handlers_gen.go b/internal/integration/test_http_requests/oas_handlers_gen.go index 342aafed7..1767d9bb1 100644 --- a/internal/integration/test_http_requests/oas_handlers_gen.go +++ b/internal/integration/test_http_requests/oas_handlers_gen.go @@ -9,6 +9,7 @@ import ( "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" semconv "go.opentelemetry.io/otel/semconv/v1.17.0" "go.opentelemetry.io/otel/trace" @@ -38,17 +39,17 @@ func (s *Server) handleAllRequestBodiesRequest(args [0]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -138,17 +139,17 @@ func (s *Server) handleAllRequestBodiesOptionalRequest(args [0]string, argsEscap startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -238,17 +239,17 @@ func (s *Server) handleBase64RequestRequest(args [0]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -338,17 +339,17 @@ func (s *Server) handleMaskContentTypeRequest(args [0]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -438,17 +439,17 @@ func (s *Server) handleMaskContentTypeOptionalRequest(args [0]string, argsEscape startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -538,17 +539,17 @@ func (s *Server) handleStreamJSONRequest(args [0]string, argsEscaped bool, w htt startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ diff --git a/internal/integration/test_http_responses/oas_cfg_gen.go b/internal/integration/test_http_responses/oas_cfg_gen.go index 200975a4a..2674bd0c4 100644 --- a/internal/integration/test_http_responses/oas_cfg_gen.go +++ b/internal/integration/test_http_responses/oas_cfg_gen.go @@ -7,6 +7,7 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/global" "go.opentelemetry.io/otel/metric/instrument" "go.opentelemetry.io/otel/trace" @@ -40,7 +41,7 @@ func (cfg *otelConfig) initOTEL() { cfg.TracerProvider = otel.GetTracerProvider() } if cfg.MeterProvider == nil { - cfg.MeterProvider = metric.NewNoopMeterProvider() + cfg.MeterProvider = global.MeterProvider() } cfg.Tracer = cfg.TracerProvider.Tracer(otelogen.Name, trace.WithInstrumentationVersion(otelogen.SemVersion()), @@ -200,7 +201,7 @@ func WithTracerProvider(provider trace.TracerProvider) Option { // WithMeterProvider specifies a meter provider to use for creating a meter. // -// If none is specified, the metric.NewNoopMeterProvider is used. +// If none is specified, the global.MeterProvider() is used. func WithMeterProvider(provider metric.MeterProvider) Option { return otelOptionFunc(func(cfg *otelConfig) { if provider != nil { diff --git a/internal/integration/test_http_responses/oas_client_gen.go b/internal/integration/test_http_responses/oas_client_gen.go index c3334581a..6f543ba04 100644 --- a/internal/integration/test_http_responses/oas_client_gen.go +++ b/internal/integration/test_http_responses/oas_client_gen.go @@ -11,6 +11,7 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" "go.opentelemetry.io/otel/trace" "github.com/ogen-go/ogen/conv" @@ -85,11 +86,11 @@ func (c *Client) sendAnyContentTypeBinaryStringSchema(ctx context.Context) (res startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "AnyContentTypeBinaryStringSchema", @@ -102,7 +103,7 @@ func (c *Client) sendAnyContentTypeBinaryStringSchema(ctx context.Context) (res if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -153,11 +154,11 @@ func (c *Client) sendAnyContentTypeBinaryStringSchemaDefault(ctx context.Context startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "AnyContentTypeBinaryStringSchemaDefault", @@ -170,7 +171,7 @@ func (c *Client) sendAnyContentTypeBinaryStringSchemaDefault(ctx context.Context if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -221,11 +222,11 @@ func (c *Client) sendCombined(ctx context.Context, params CombinedParams) (res C startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "Combined", @@ -238,7 +239,7 @@ func (c *Client) sendCombined(ctx context.Context, params CombinedParams) (res C if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -307,11 +308,11 @@ func (c *Client) sendHeaders200(ctx context.Context) (res *Headers200OK, err err startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "Headers200", @@ -324,7 +325,7 @@ func (c *Client) sendHeaders200(ctx context.Context) (res *Headers200OK, err err if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -375,11 +376,11 @@ func (c *Client) sendHeadersCombined(ctx context.Context, params HeadersCombined startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "HeadersCombined", @@ -392,7 +393,7 @@ func (c *Client) sendHeadersCombined(ctx context.Context, params HeadersCombined if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -461,11 +462,11 @@ func (c *Client) sendHeadersDefault(ctx context.Context) (res *HeadersDefaultDef startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "HeadersDefault", @@ -478,7 +479,7 @@ func (c *Client) sendHeadersDefault(ctx context.Context) (res *HeadersDefaultDef if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -529,11 +530,11 @@ func (c *Client) sendHeadersJSON(ctx context.Context) (res *HeadersJSONOK, err e startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "HeadersJSON", @@ -546,7 +547,7 @@ func (c *Client) sendHeadersJSON(ctx context.Context) (res *HeadersJSONOK, err e if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -597,11 +598,11 @@ func (c *Client) sendHeadersPattern(ctx context.Context) (res *HeadersPattern4XX startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "HeadersPattern", @@ -614,7 +615,7 @@ func (c *Client) sendHeadersPattern(ctx context.Context) (res *HeadersPattern4XX if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -668,11 +669,11 @@ func (c *Client) sendIntersectPatternCode(ctx context.Context, params IntersectP startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "IntersectPatternCode", @@ -685,7 +686,7 @@ func (c *Client) sendIntersectPatternCode(ctx context.Context, params IntersectP if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -754,11 +755,11 @@ func (c *Client) sendMultipleGenericResponses(ctx context.Context) (res Multiple startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "MultipleGenericResponses", @@ -771,7 +772,7 @@ func (c *Client) sendMultipleGenericResponses(ctx context.Context) (res Multiple if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -822,11 +823,11 @@ func (c *Client) sendOctetStreamBinaryStringSchema(ctx context.Context) (res Oct startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OctetStreamBinaryStringSchema", @@ -839,7 +840,7 @@ func (c *Client) sendOctetStreamBinaryStringSchema(ctx context.Context) (res Oct if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -890,11 +891,11 @@ func (c *Client) sendOctetStreamEmptySchema(ctx context.Context) (res OctetStrea startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OctetStreamEmptySchema", @@ -907,7 +908,7 @@ func (c *Client) sendOctetStreamEmptySchema(ctx context.Context) (res OctetStrea if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -960,11 +961,11 @@ func (c *Client) sendOptionalHeaders(ctx context.Context) (res *OptionalHeadersO startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OptionalHeaders", @@ -977,7 +978,7 @@ func (c *Client) sendOptionalHeaders(ctx context.Context) (res *OptionalHeadersO if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1028,11 +1029,11 @@ func (c *Client) sendStreamJSON(ctx context.Context, params StreamJSONParams) (r startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "StreamJSON", @@ -1045,7 +1046,7 @@ func (c *Client) sendStreamJSON(ctx context.Context, params StreamJSONParams) (r if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -1114,11 +1115,11 @@ func (c *Client) sendTextPlainBinaryStringSchema(ctx context.Context) (res TextP startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "TextPlainBinaryStringSchema", @@ -1131,7 +1132,7 @@ func (c *Client) sendTextPlainBinaryStringSchema(ctx context.Context) (res TextP if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() diff --git a/internal/integration/test_http_responses/oas_handlers_gen.go b/internal/integration/test_http_responses/oas_handlers_gen.go index a8e4f3515..bd9373207 100644 --- a/internal/integration/test_http_responses/oas_handlers_gen.go +++ b/internal/integration/test_http_responses/oas_handlers_gen.go @@ -9,6 +9,7 @@ import ( "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" semconv "go.opentelemetry.io/otel/semconv/v1.17.0" "go.opentelemetry.io/otel/trace" @@ -38,17 +39,17 @@ func (s *Server) handleAnyContentTypeBinaryStringSchemaRequest(args [0]string, a startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -119,17 +120,17 @@ func (s *Server) handleAnyContentTypeBinaryStringSchemaDefaultRequest(args [0]st startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -200,17 +201,17 @@ func (s *Server) handleCombinedRequest(args [0]string, argsEscaped bool, w http. startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -300,17 +301,17 @@ func (s *Server) handleHeaders200Request(args [0]string, argsEscaped bool, w htt startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -381,17 +382,17 @@ func (s *Server) handleHeadersCombinedRequest(args [0]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -481,17 +482,17 @@ func (s *Server) handleHeadersDefaultRequest(args [0]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -562,17 +563,17 @@ func (s *Server) handleHeadersJSONRequest(args [0]string, argsEscaped bool, w ht startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -643,17 +644,17 @@ func (s *Server) handleHeadersPatternRequest(args [0]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -727,17 +728,17 @@ func (s *Server) handleIntersectPatternCodeRequest(args [0]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -827,17 +828,17 @@ func (s *Server) handleMultipleGenericResponsesRequest(args [0]string, argsEscap startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -908,17 +909,17 @@ func (s *Server) handleOctetStreamBinaryStringSchemaRequest(args [0]string, args startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -989,17 +990,17 @@ func (s *Server) handleOctetStreamEmptySchemaRequest(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -1072,17 +1073,17 @@ func (s *Server) handleOptionalHeadersRequest(args [0]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -1153,17 +1154,17 @@ func (s *Server) handleStreamJSONRequest(args [0]string, argsEscaped bool, w htt startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -1253,17 +1254,17 @@ func (s *Server) handleTextPlainBinaryStringSchemaRequest(args [0]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) diff --git a/internal/integration/test_naming_extensions/oas_cfg_gen.go b/internal/integration/test_naming_extensions/oas_cfg_gen.go index 200975a4a..2674bd0c4 100644 --- a/internal/integration/test_naming_extensions/oas_cfg_gen.go +++ b/internal/integration/test_naming_extensions/oas_cfg_gen.go @@ -7,6 +7,7 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/global" "go.opentelemetry.io/otel/metric/instrument" "go.opentelemetry.io/otel/trace" @@ -40,7 +41,7 @@ func (cfg *otelConfig) initOTEL() { cfg.TracerProvider = otel.GetTracerProvider() } if cfg.MeterProvider == nil { - cfg.MeterProvider = metric.NewNoopMeterProvider() + cfg.MeterProvider = global.MeterProvider() } cfg.Tracer = cfg.TracerProvider.Tracer(otelogen.Name, trace.WithInstrumentationVersion(otelogen.SemVersion()), @@ -200,7 +201,7 @@ func WithTracerProvider(provider trace.TracerProvider) Option { // WithMeterProvider specifies a meter provider to use for creating a meter. // -// If none is specified, the metric.NewNoopMeterProvider is used. +// If none is specified, the global.MeterProvider() is used. func WithMeterProvider(provider metric.MeterProvider) Option { return otelOptionFunc(func(cfg *otelConfig) { if provider != nil { diff --git a/internal/integration/test_naming_extensions/oas_client_gen.go b/internal/integration/test_naming_extensions/oas_client_gen.go index 71a5f62ed..5d6d265a4 100644 --- a/internal/integration/test_naming_extensions/oas_client_gen.go +++ b/internal/integration/test_naming_extensions/oas_client_gen.go @@ -11,6 +11,7 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" ht "github.com/ogen-go/ogen/http" "github.com/ogen-go/ogen/uri" @@ -80,11 +81,11 @@ func (c *Client) sendHealthzGet(ctx context.Context) (res *Person, err error) { startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "HealthzGet", @@ -96,7 +97,7 @@ func (c *Client) sendHealthzGet(ctx context.Context) (res *Person, err error) { if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() diff --git a/internal/integration/test_naming_extensions/oas_handlers_gen.go b/internal/integration/test_naming_extensions/oas_handlers_gen.go index 02cf97aae..01ab745ca 100644 --- a/internal/integration/test_naming_extensions/oas_handlers_gen.go +++ b/internal/integration/test_naming_extensions/oas_handlers_gen.go @@ -9,6 +9,7 @@ import ( "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" "github.com/ogen-go/ogen/middleware" ) @@ -29,17 +30,17 @@ func (s *Server) handleHealthzGetRequest(args [0]string, argsEscaped bool, w htt startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) diff --git a/internal/integration/test_parameters/oas_cfg_gen.go b/internal/integration/test_parameters/oas_cfg_gen.go index 200975a4a..2674bd0c4 100644 --- a/internal/integration/test_parameters/oas_cfg_gen.go +++ b/internal/integration/test_parameters/oas_cfg_gen.go @@ -7,6 +7,7 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/global" "go.opentelemetry.io/otel/metric/instrument" "go.opentelemetry.io/otel/trace" @@ -40,7 +41,7 @@ func (cfg *otelConfig) initOTEL() { cfg.TracerProvider = otel.GetTracerProvider() } if cfg.MeterProvider == nil { - cfg.MeterProvider = metric.NewNoopMeterProvider() + cfg.MeterProvider = global.MeterProvider() } cfg.Tracer = cfg.TracerProvider.Tracer(otelogen.Name, trace.WithInstrumentationVersion(otelogen.SemVersion()), @@ -200,7 +201,7 @@ func WithTracerProvider(provider trace.TracerProvider) Option { // WithMeterProvider specifies a meter provider to use for creating a meter. // -// If none is specified, the metric.NewNoopMeterProvider is used. +// If none is specified, the global.MeterProvider() is used. func WithMeterProvider(provider metric.MeterProvider) Option { return otelOptionFunc(func(cfg *otelConfig) { if provider != nil { diff --git a/internal/integration/test_parameters/oas_client_gen.go b/internal/integration/test_parameters/oas_client_gen.go index ca7eae1e5..dc58adc1a 100644 --- a/internal/integration/test_parameters/oas_client_gen.go +++ b/internal/integration/test_parameters/oas_client_gen.go @@ -12,6 +12,7 @@ import ( "github.com/go-faster/jx" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" "go.opentelemetry.io/otel/trace" "github.com/ogen-go/ogen/conv" @@ -84,11 +85,11 @@ func (c *Client) sendComplicatedParameterNameGet(ctx context.Context, params Com startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ComplicatedParameterNameGet", @@ -100,7 +101,7 @@ func (c *Client) sendComplicatedParameterNameGet(ctx context.Context, params Com if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -225,11 +226,11 @@ func (c *Client) sendContentParameters(ctx context.Context, params ContentParame startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ContentParameters", @@ -242,7 +243,7 @@ func (c *Client) sendContentParameters(ctx context.Context, params ContentParame if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -377,11 +378,11 @@ func (c *Client) sendCookieParameter(ctx context.Context, params CookieParameter startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "CookieParameter", @@ -394,7 +395,7 @@ func (c *Client) sendCookieParameter(ctx context.Context, params CookieParameter if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -463,11 +464,11 @@ func (c *Client) sendHeaderParameter(ctx context.Context, params HeaderParameter startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "HeaderParameter", @@ -480,7 +481,7 @@ func (c *Client) sendHeaderParameter(ctx context.Context, params HeaderParameter if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -545,11 +546,11 @@ func (c *Client) sendObjectCookieParameter(ctx context.Context, params ObjectCoo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ObjectCookieParameter", @@ -562,7 +563,7 @@ func (c *Client) sendObjectCookieParameter(ctx context.Context, params ObjectCoo if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -629,11 +630,11 @@ func (c *Client) sendObjectQueryParameter(ctx context.Context, params ObjectQuer startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ObjectQueryParameter", @@ -646,7 +647,7 @@ func (c *Client) sendObjectQueryParameter(ctx context.Context, params ObjectQuer if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -737,11 +738,11 @@ func (c *Client) sendPathParameter(ctx context.Context, params PathParameterPara startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PathParameter", @@ -754,7 +755,7 @@ func (c *Client) sendPathParameter(ctx context.Context, params PathParameterPara if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -825,11 +826,11 @@ func (c *Client) sendSameName(ctx context.Context, params SameNameParams) (res * startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "SameName", @@ -842,7 +843,7 @@ func (c *Client) sendSameName(ctx context.Context, params SameNameParams) (res * if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() diff --git a/internal/integration/test_parameters/oas_handlers_gen.go b/internal/integration/test_parameters/oas_handlers_gen.go index 22063b0b3..963a49158 100644 --- a/internal/integration/test_parameters/oas_handlers_gen.go +++ b/internal/integration/test_parameters/oas_handlers_gen.go @@ -9,6 +9,7 @@ import ( "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" semconv "go.opentelemetry.io/otel/semconv/v1.17.0" "go.opentelemetry.io/otel/trace" @@ -33,17 +34,17 @@ func (s *Server) handleComplicatedParameterNameGetRequest(args [0]string, argsEs startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -149,17 +150,17 @@ func (s *Server) handleContentParametersRequest(args [1]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -263,17 +264,17 @@ func (s *Server) handleCookieParameterRequest(args [0]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -365,17 +366,17 @@ func (s *Server) handleHeaderParameterRequest(args [0]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -465,17 +466,17 @@ func (s *Server) handleObjectCookieParameterRequest(args [0]string, argsEscaped startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -565,17 +566,17 @@ func (s *Server) handleObjectQueryParameterRequest(args [0]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -671,17 +672,17 @@ func (s *Server) handlePathParameterRequest(args [1]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -773,17 +774,17 @@ func (s *Server) handleSameNameRequest(args [1]string, argsEscaped bool, w http. startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ diff --git a/internal/integration/test_security/oas_cfg_gen.go b/internal/integration/test_security/oas_cfg_gen.go index 200975a4a..2674bd0c4 100644 --- a/internal/integration/test_security/oas_cfg_gen.go +++ b/internal/integration/test_security/oas_cfg_gen.go @@ -7,6 +7,7 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/global" "go.opentelemetry.io/otel/metric/instrument" "go.opentelemetry.io/otel/trace" @@ -40,7 +41,7 @@ func (cfg *otelConfig) initOTEL() { cfg.TracerProvider = otel.GetTracerProvider() } if cfg.MeterProvider == nil { - cfg.MeterProvider = metric.NewNoopMeterProvider() + cfg.MeterProvider = global.MeterProvider() } cfg.Tracer = cfg.TracerProvider.Tracer(otelogen.Name, trace.WithInstrumentationVersion(otelogen.SemVersion()), @@ -200,7 +201,7 @@ func WithTracerProvider(provider trace.TracerProvider) Option { // WithMeterProvider specifies a meter provider to use for creating a meter. // -// If none is specified, the metric.NewNoopMeterProvider is used. +// If none is specified, the global.MeterProvider() is used. func WithMeterProvider(provider metric.MeterProvider) Option { return otelOptionFunc(func(cfg *otelConfig) { if provider != nil { diff --git a/internal/integration/test_security/oas_client_gen.go b/internal/integration/test_security/oas_client_gen.go index 0628acdbb..efba00f7c 100644 --- a/internal/integration/test_security/oas_client_gen.go +++ b/internal/integration/test_security/oas_client_gen.go @@ -11,6 +11,7 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" "go.opentelemetry.io/otel/trace" ht "github.com/ogen-go/ogen/http" @@ -87,11 +88,11 @@ func (c *Client) sendDisjointSecurity(ctx context.Context) (res *DisjointSecurit startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "DisjointSecurity", @@ -104,7 +105,7 @@ func (c *Client) sendDisjointSecurity(ctx context.Context) (res *DisjointSecurit if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -222,11 +223,11 @@ func (c *Client) sendIntersectSecurity(ctx context.Context) (res *IntersectSecur startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "IntersectSecurity", @@ -239,7 +240,7 @@ func (c *Client) sendIntersectSecurity(ctx context.Context) (res *IntersectSecur if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -346,11 +347,11 @@ func (c *Client) sendOptionalSecurity(ctx context.Context) (res *OptionalSecurit startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "OptionalSecurity", @@ -363,7 +364,7 @@ func (c *Client) sendOptionalSecurity(ctx context.Context) (res *OptionalSecurit if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() diff --git a/internal/integration/test_security/oas_handlers_gen.go b/internal/integration/test_security/oas_handlers_gen.go index 6f102f98f..d3bdc3d45 100644 --- a/internal/integration/test_security/oas_handlers_gen.go +++ b/internal/integration/test_security/oas_handlers_gen.go @@ -9,6 +9,7 @@ import ( "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" semconv "go.opentelemetry.io/otel/semconv/v1.17.0" "go.opentelemetry.io/otel/trace" @@ -38,17 +39,17 @@ func (s *Server) handleDisjointSecurityRequest(args [0]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -219,17 +220,17 @@ func (s *Server) handleIntersectSecurityRequest(args [0]string, argsEscaped bool startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -383,17 +384,17 @@ func (s *Server) handleOptionalSecurityRequest(args [0]string, argsEscaped bool, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ diff --git a/internal/integration/test_servers/oas_cfg_gen.go b/internal/integration/test_servers/oas_cfg_gen.go index 200975a4a..2674bd0c4 100644 --- a/internal/integration/test_servers/oas_cfg_gen.go +++ b/internal/integration/test_servers/oas_cfg_gen.go @@ -7,6 +7,7 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/global" "go.opentelemetry.io/otel/metric/instrument" "go.opentelemetry.io/otel/trace" @@ -40,7 +41,7 @@ func (cfg *otelConfig) initOTEL() { cfg.TracerProvider = otel.GetTracerProvider() } if cfg.MeterProvider == nil { - cfg.MeterProvider = metric.NewNoopMeterProvider() + cfg.MeterProvider = global.MeterProvider() } cfg.Tracer = cfg.TracerProvider.Tracer(otelogen.Name, trace.WithInstrumentationVersion(otelogen.SemVersion()), @@ -200,7 +201,7 @@ func WithTracerProvider(provider trace.TracerProvider) Option { // WithMeterProvider specifies a meter provider to use for creating a meter. // -// If none is specified, the metric.NewNoopMeterProvider is used. +// If none is specified, the global.MeterProvider() is used. func WithMeterProvider(provider metric.MeterProvider) Option { return otelOptionFunc(func(cfg *otelConfig) { if provider != nil { diff --git a/internal/integration/test_servers/oas_client_gen.go b/internal/integration/test_servers/oas_client_gen.go index 273c7ec6d..7fe0d256b 100644 --- a/internal/integration/test_servers/oas_client_gen.go +++ b/internal/integration/test_servers/oas_client_gen.go @@ -11,6 +11,7 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" "go.opentelemetry.io/otel/trace" ht "github.com/ogen-go/ogen/http" @@ -90,11 +91,11 @@ func (c *Client) sendProbeLiveness(ctx context.Context) (res string, err error) startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ProbeLiveness", @@ -107,7 +108,7 @@ func (c *Client) sendProbeLiveness(ctx context.Context) (res string, err error) if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() diff --git a/internal/integration/test_servers/oas_handlers_gen.go b/internal/integration/test_servers/oas_handlers_gen.go index 07024bb82..ca1876121 100644 --- a/internal/integration/test_servers/oas_handlers_gen.go +++ b/internal/integration/test_servers/oas_handlers_gen.go @@ -10,6 +10,7 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" semconv "go.opentelemetry.io/otel/semconv/v1.17.0" "go.opentelemetry.io/otel/trace" @@ -41,17 +42,17 @@ func (s *Server) handleProbeLivenessRequest(args [0]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) diff --git a/internal/integration/test_single_endpoint/oas_cfg_gen.go b/internal/integration/test_single_endpoint/oas_cfg_gen.go index 200975a4a..2674bd0c4 100644 --- a/internal/integration/test_single_endpoint/oas_cfg_gen.go +++ b/internal/integration/test_single_endpoint/oas_cfg_gen.go @@ -7,6 +7,7 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/global" "go.opentelemetry.io/otel/metric/instrument" "go.opentelemetry.io/otel/trace" @@ -40,7 +41,7 @@ func (cfg *otelConfig) initOTEL() { cfg.TracerProvider = otel.GetTracerProvider() } if cfg.MeterProvider == nil { - cfg.MeterProvider = metric.NewNoopMeterProvider() + cfg.MeterProvider = global.MeterProvider() } cfg.Tracer = cfg.TracerProvider.Tracer(otelogen.Name, trace.WithInstrumentationVersion(otelogen.SemVersion()), @@ -200,7 +201,7 @@ func WithTracerProvider(provider trace.TracerProvider) Option { // WithMeterProvider specifies a meter provider to use for creating a meter. // -// If none is specified, the metric.NewNoopMeterProvider is used. +// If none is specified, the global.MeterProvider() is used. func WithMeterProvider(provider metric.MeterProvider) Option { return otelOptionFunc(func(cfg *otelConfig) { if provider != nil { diff --git a/internal/integration/test_single_endpoint/oas_client_gen.go b/internal/integration/test_single_endpoint/oas_client_gen.go index 273c7ec6d..7fe0d256b 100644 --- a/internal/integration/test_single_endpoint/oas_client_gen.go +++ b/internal/integration/test_single_endpoint/oas_client_gen.go @@ -11,6 +11,7 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" "go.opentelemetry.io/otel/trace" ht "github.com/ogen-go/ogen/http" @@ -90,11 +91,11 @@ func (c *Client) sendProbeLiveness(ctx context.Context) (res string, err error) startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "ProbeLiveness", @@ -107,7 +108,7 @@ func (c *Client) sendProbeLiveness(ctx context.Context) (res string, err error) if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() diff --git a/internal/integration/test_single_endpoint/oas_handlers_gen.go b/internal/integration/test_single_endpoint/oas_handlers_gen.go index 07024bb82..ca1876121 100644 --- a/internal/integration/test_single_endpoint/oas_handlers_gen.go +++ b/internal/integration/test_single_endpoint/oas_handlers_gen.go @@ -10,6 +10,7 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" semconv "go.opentelemetry.io/otel/semconv/v1.17.0" "go.opentelemetry.io/otel/trace" @@ -41,17 +42,17 @@ func (s *Server) handleProbeLivenessRequest(args [0]string, argsEscaped bool, w startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) diff --git a/internal/integration/test_webhooks/oas_cfg_gen.go b/internal/integration/test_webhooks/oas_cfg_gen.go index 200975a4a..2674bd0c4 100644 --- a/internal/integration/test_webhooks/oas_cfg_gen.go +++ b/internal/integration/test_webhooks/oas_cfg_gen.go @@ -7,6 +7,7 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/global" "go.opentelemetry.io/otel/metric/instrument" "go.opentelemetry.io/otel/trace" @@ -40,7 +41,7 @@ func (cfg *otelConfig) initOTEL() { cfg.TracerProvider = otel.GetTracerProvider() } if cfg.MeterProvider == nil { - cfg.MeterProvider = metric.NewNoopMeterProvider() + cfg.MeterProvider = global.MeterProvider() } cfg.Tracer = cfg.TracerProvider.Tracer(otelogen.Name, trace.WithInstrumentationVersion(otelogen.SemVersion()), @@ -200,7 +201,7 @@ func WithTracerProvider(provider trace.TracerProvider) Option { // WithMeterProvider specifies a meter provider to use for creating a meter. // -// If none is specified, the metric.NewNoopMeterProvider is used. +// If none is specified, the global.MeterProvider() is used. func WithMeterProvider(provider metric.MeterProvider) Option { return otelOptionFunc(func(cfg *otelConfig) { if provider != nil { diff --git a/internal/integration/test_webhooks/oas_client_gen.go b/internal/integration/test_webhooks/oas_client_gen.go index 517f06ab7..3c5857f16 100644 --- a/internal/integration/test_webhooks/oas_client_gen.go +++ b/internal/integration/test_webhooks/oas_client_gen.go @@ -11,6 +11,7 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" "go.opentelemetry.io/otel/trace" "github.com/ogen-go/ogen/conv" @@ -89,11 +90,11 @@ func (c *Client) sendPublishEvent(ctx context.Context, request OptEvent) (res *E startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "PublishEvent", @@ -106,7 +107,7 @@ func (c *Client) sendPublishEvent(ctx context.Context, request OptEvent) (res *E if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -175,11 +176,11 @@ func (c *WebhookClient) sendStatusWebhook(ctx context.Context, targetURL string) startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "StatusWebhook", @@ -192,7 +193,7 @@ func (c *WebhookClient) sendStatusWebhook(ctx context.Context, targetURL string) if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -242,11 +243,11 @@ func (c *WebhookClient) sendUpdateDelete(ctx context.Context, targetURL string) startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "UpdateDelete", @@ -259,7 +260,7 @@ func (c *WebhookClient) sendUpdateDelete(ctx context.Context, targetURL string) if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() @@ -310,11 +311,11 @@ func (c *WebhookClient) sendUpdateWebhook(ctx context.Context, targetURL string, startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + c.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - c.requests.Add(ctx, 1, otelAttrs...) + c.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) // Start a span for this request. ctx, span := c.cfg.Tracer.Start(ctx, "UpdateWebhook", @@ -327,7 +328,7 @@ func (c *WebhookClient) sendUpdateWebhook(ctx context.Context, targetURL string, if err != nil { span.RecordError(err) span.SetStatus(codes.Error, stage) - c.errors.Add(ctx, 1, otelAttrs...) + c.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } span.End() }() diff --git a/internal/integration/test_webhooks/oas_handlers_gen.go b/internal/integration/test_webhooks/oas_handlers_gen.go index cdf2de98e..fb8c598ae 100644 --- a/internal/integration/test_webhooks/oas_handlers_gen.go +++ b/internal/integration/test_webhooks/oas_handlers_gen.go @@ -10,6 +10,7 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/metric" semconv "go.opentelemetry.io/otel/semconv/v1.17.0" "go.opentelemetry.io/otel/trace" @@ -40,17 +41,17 @@ func (s *Server) handlePublishEventRequest(args [0]string, argsEscaped bool, w h startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{ @@ -145,17 +146,17 @@ func (s *WebhookServer) handleStatusWebhookRequest(args [0]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -222,17 +223,17 @@ func (s *WebhookServer) handleUpdateDeleteRequest(args [0]string, argsEscaped bo startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error ) @@ -300,17 +301,17 @@ func (s *WebhookServer) handleUpdateWebhookRequest(args [0]string, argsEscaped b startTime := time.Now() defer func() { elapsedDuration := time.Since(startTime) - s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + s.duration.Record(ctx, elapsedDuration.Microseconds(), metric.WithAttributes(otelAttrs...)) }() // Increment request counter. - s.requests.Add(ctx, 1, otelAttrs...) + s.requests.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) var ( recordError = func(stage string, err error) { span.RecordError(err) span.SetStatus(codes.Error, stage) - s.errors.Add(ctx, 1, otelAttrs...) + s.errors.Add(ctx, 1, metric.WithAttributes(otelAttrs...)) } err error opErrContext = ogenerrors.OperationContext{