diff --git a/hack/main.go b/hack/main.go index 6270f5096f..874a29a544 100644 --- a/hack/main.go +++ b/hack/main.go @@ -20,10 +20,23 @@ var ( ) type arg struct { - Type reflect.Type + reflect.Type IsVariadic bool } +func (a arg) IsError() bool { + return goType(a.Type) == "error" +} + +type ret struct { + reflect.Type + IsLast bool +} + +func (r ret) IsError() bool { + return goType(r.Type) == "error" +} + type operation struct { Method reflect.Method } @@ -32,6 +45,10 @@ func (o operation) HasContext() bool { return o.Method.Type.NumIn() > 0 && goType(o.Method.Type.In(0)) == "context.Context" } +func (o operation) HasError() bool { + return o.Method.Type.NumIn() > 0 && goType(o.Method.Type.In(o.Method.Type.NumIn()-1)) == "error" +} + type resource struct { Method reflect.Method Type reflect.Type @@ -65,10 +82,13 @@ func getIns(in reflect.Method) []reflect.Type { return out } -func getOuts(in reflect.Method) []reflect.Type { - var out []reflect.Type +func getOuts(in reflect.Method) []ret { + var out []ret for i := 0; i < in.Type.NumOut(); i++ { - out = append(out, in.Type.Out(i)) + out = append(out, ret{ + Type: in.Type.Out(i), + IsLast: i == in.Type.NumOut()-1, + }) } return out } @@ -164,10 +184,11 @@ func parseImports(cs clientset, packages ...string) []string { } } for _, i := range getOuts(o.Method) { + pkg := i.PkgPath() if i.Kind() == reflect.Pointer { - i = i.Elem() + i.Elem().PkgPath() } - if i.PkgPath() != "" { + if pkg != "" { imports.Insert(i.PkgPath()) } } @@ -200,7 +221,7 @@ func executeTemplate(tpl string, cs clientset, folder string, packages ...string } return out }, - "Returns": func(in reflect.Method) []reflect.Type { + "Returns": func(in reflect.Method) []ret { return getOuts(in) }, "Pkg": func(in string) string { @@ -223,6 +244,7 @@ func executeTemplate(tpl string, cs clientset, folder string, packages ...string panic(fmt.Sprintf("Failed to create file %s", path.Join(folder, file))) } if err := tmpl.Execute(f, map[string]interface{}{ + "Folder": folder, "Clientset": cs, "Packages": parseImports(cs, packages...), }); err != nil { @@ -359,6 +381,7 @@ package client {{- $restPkg := Pkg "k8s.io/client-go/rest" }} {{- $tracingPkg := Pkg "github.com/kyverno/kyverno/pkg/tracing" }} {{- $attributePkg := Pkg "go.opentelemetry.io/otel/attribute" }} +{{- $codesPkg := Pkg "go.opentelemetry.io/otel/codes" }} import ( {{- range $package := .Packages }} @@ -452,8 +475,8 @@ func (c *wrapped{{ $client.Method.Name }}{{ $resource.Method.Name }}) {{ $operat {{- if $operation.HasContext }} ctx, span := {{ $tracingPkg }}.StartSpan( arg0, - "{{ $client.Method.Name }}/{{ $resource.Method.Name }}", - {{ Quote $operation.Method.Name }}, + {{ Quote $.Folder }}, + "KUBE {{ $client.Method.Name }}/{{ $resource.Method.Name }}/{{ $operation.Method.Name }}", {{ $attributePkg }}.String("client", {{ Quote $client.Method.Name }}), {{ $attributePkg }}.String("resource", {{ Quote $resource.Method.Name }}), {{ $attributePkg }}.String("kind", {{ Quote $resource.Kind }}), @@ -461,7 +484,7 @@ func (c *wrapped{{ $client.Method.Name }}{{ $resource.Method.Name }}) {{ $operat defer span.End() arg0 = ctx {{- end }} - return c.inner.{{ $operation.Method.Name }}( + {{ range $i, $ret := Returns $operation.Method }}ret{{ $i }}{{ if not $ret.IsLast -}},{{- end }} {{ end }} := c.inner.{{ $operation.Method.Name }}( {{- range $i, $arg := Args $operation.Method -}} {{- if $arg.IsVariadic -}} arg{{ $i }}..., @@ -470,6 +493,19 @@ func (c *wrapped{{ $client.Method.Name }}{{ $resource.Method.Name }}) {{ $operat {{- end -}} {{- end -}} ) + {{- if $operation.HasContext }} + {{- range $i, $ret := Returns $operation.Method }} + {{- if $ret.IsError }} + if ret{{ $i }} != nil { + span.RecordError(ret{{ $i }}) + span.SetStatus({{ $codesPkg }}.Ok, ret{{ $i }}.Error()) + } + {{- end }} + {{- end }} + {{- end }} + return {{ range $i, $ret := Returns $operation.Method -}} + ret{{ $i }}{{ if not $ret.IsLast -}},{{- end }} + {{- end }} } {{- end }} {{- end }} @@ -503,6 +539,7 @@ func main() { "context", "github.com/kyverno/kyverno/pkg/tracing", "go.opentelemetry.io/otel/attribute", + "go.opentelemetry.io/otel/codes", "k8s.io/client-go/discovery", "k8s.io/client-go/rest", ) @@ -512,6 +549,7 @@ func main() { "context", "github.com/kyverno/kyverno/pkg/tracing", "go.opentelemetry.io/otel/attribute", + "go.opentelemetry.io/otel/codes", "k8s.io/client-go/discovery", "k8s.io/client-go/rest", ) diff --git a/pkg/clients/wrappers/traces/kube/clientset.generated.go b/pkg/clients/wrappers/traces/kube/clientset.generated.go index acdc40e5cd..9d3bf18d7f 100644 --- a/pkg/clients/wrappers/traces/kube/clientset.generated.go +++ b/pkg/clients/wrappers/traces/kube/clientset.generated.go @@ -5,6 +5,7 @@ import ( github_com_kyverno_kyverno_pkg_tracing "github.com/kyverno/kyverno/pkg/tracing" go_opentelemetry_io_otel_attribute "go.opentelemetry.io/otel/attribute" + go_opentelemetry_io_otel_codes "go.opentelemetry.io/otel/codes" k8s_io_api_admissionregistration_v1 "k8s.io/api/admissionregistration/v1" k8s_io_api_admissionregistration_v1beta1 "k8s.io/api/admissionregistration/v1beta1" k8s_io_api_apiserverinternal_v1alpha1 "k8s.io/api/apiserverinternal/v1alpha1" @@ -1396,119 +1397,164 @@ func newAdmissionregistrationV1MutatingWebhookConfigurations(inner k8s_io_client func (c *wrappedAdmissionregistrationV1MutatingWebhookConfigurations) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_admissionregistration_v1.MutatingWebhookConfigurationApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_admissionregistration_v1.MutatingWebhookConfiguration, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AdmissionregistrationV1/MutatingWebhookConfigurations", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE AdmissionregistrationV1/MutatingWebhookConfigurations/Apply", go_opentelemetry_io_otel_attribute.String("client", "AdmissionregistrationV1"), go_opentelemetry_io_otel_attribute.String("resource", "MutatingWebhookConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "MutatingWebhookConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAdmissionregistrationV1MutatingWebhookConfigurations) Create(arg0 context.Context, arg1 *k8s_io_api_admissionregistration_v1.MutatingWebhookConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_admissionregistration_v1.MutatingWebhookConfiguration, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AdmissionregistrationV1/MutatingWebhookConfigurations", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE AdmissionregistrationV1/MutatingWebhookConfigurations/Create", go_opentelemetry_io_otel_attribute.String("client", "AdmissionregistrationV1"), go_opentelemetry_io_otel_attribute.String("resource", "MutatingWebhookConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "MutatingWebhookConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAdmissionregistrationV1MutatingWebhookConfigurations) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AdmissionregistrationV1/MutatingWebhookConfigurations", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE AdmissionregistrationV1/MutatingWebhookConfigurations/Delete", go_opentelemetry_io_otel_attribute.String("client", "AdmissionregistrationV1"), go_opentelemetry_io_otel_attribute.String("resource", "MutatingWebhookConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "MutatingWebhookConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedAdmissionregistrationV1MutatingWebhookConfigurations) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AdmissionregistrationV1/MutatingWebhookConfigurations", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE AdmissionregistrationV1/MutatingWebhookConfigurations/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "AdmissionregistrationV1"), go_opentelemetry_io_otel_attribute.String("resource", "MutatingWebhookConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "MutatingWebhookConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedAdmissionregistrationV1MutatingWebhookConfigurations) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_admissionregistration_v1.MutatingWebhookConfiguration, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AdmissionregistrationV1/MutatingWebhookConfigurations", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE AdmissionregistrationV1/MutatingWebhookConfigurations/Get", go_opentelemetry_io_otel_attribute.String("client", "AdmissionregistrationV1"), go_opentelemetry_io_otel_attribute.String("resource", "MutatingWebhookConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "MutatingWebhookConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAdmissionregistrationV1MutatingWebhookConfigurations) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_admissionregistration_v1.MutatingWebhookConfigurationList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AdmissionregistrationV1/MutatingWebhookConfigurations", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE AdmissionregistrationV1/MutatingWebhookConfigurations/List", go_opentelemetry_io_otel_attribute.String("client", "AdmissionregistrationV1"), go_opentelemetry_io_otel_attribute.String("resource", "MutatingWebhookConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "MutatingWebhookConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAdmissionregistrationV1MutatingWebhookConfigurations) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_admissionregistration_v1.MutatingWebhookConfiguration, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AdmissionregistrationV1/MutatingWebhookConfigurations", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE AdmissionregistrationV1/MutatingWebhookConfigurations/Patch", go_opentelemetry_io_otel_attribute.String("client", "AdmissionregistrationV1"), go_opentelemetry_io_otel_attribute.String("resource", "MutatingWebhookConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "MutatingWebhookConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAdmissionregistrationV1MutatingWebhookConfigurations) Update(arg0 context.Context, arg1 *k8s_io_api_admissionregistration_v1.MutatingWebhookConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_admissionregistration_v1.MutatingWebhookConfiguration, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AdmissionregistrationV1/MutatingWebhookConfigurations", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE AdmissionregistrationV1/MutatingWebhookConfigurations/Update", go_opentelemetry_io_otel_attribute.String("client", "AdmissionregistrationV1"), go_opentelemetry_io_otel_attribute.String("resource", "MutatingWebhookConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "MutatingWebhookConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAdmissionregistrationV1MutatingWebhookConfigurations) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AdmissionregistrationV1/MutatingWebhookConfigurations", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE AdmissionregistrationV1/MutatingWebhookConfigurations/Watch", go_opentelemetry_io_otel_attribute.String("client", "AdmissionregistrationV1"), go_opentelemetry_io_otel_attribute.String("resource", "MutatingWebhookConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "MutatingWebhookConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedAdmissionregistrationV1ValidatingWebhookConfigurations wrapper @@ -1522,119 +1568,164 @@ func newAdmissionregistrationV1ValidatingWebhookConfigurations(inner k8s_io_clie func (c *wrappedAdmissionregistrationV1ValidatingWebhookConfigurations) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_admissionregistration_v1.ValidatingWebhookConfigurationApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_admissionregistration_v1.ValidatingWebhookConfiguration, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AdmissionregistrationV1/ValidatingWebhookConfigurations", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE AdmissionregistrationV1/ValidatingWebhookConfigurations/Apply", go_opentelemetry_io_otel_attribute.String("client", "AdmissionregistrationV1"), go_opentelemetry_io_otel_attribute.String("resource", "ValidatingWebhookConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "ValidatingWebhookConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAdmissionregistrationV1ValidatingWebhookConfigurations) Create(arg0 context.Context, arg1 *k8s_io_api_admissionregistration_v1.ValidatingWebhookConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_admissionregistration_v1.ValidatingWebhookConfiguration, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AdmissionregistrationV1/ValidatingWebhookConfigurations", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE AdmissionregistrationV1/ValidatingWebhookConfigurations/Create", go_opentelemetry_io_otel_attribute.String("client", "AdmissionregistrationV1"), go_opentelemetry_io_otel_attribute.String("resource", "ValidatingWebhookConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "ValidatingWebhookConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAdmissionregistrationV1ValidatingWebhookConfigurations) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AdmissionregistrationV1/ValidatingWebhookConfigurations", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE AdmissionregistrationV1/ValidatingWebhookConfigurations/Delete", go_opentelemetry_io_otel_attribute.String("client", "AdmissionregistrationV1"), go_opentelemetry_io_otel_attribute.String("resource", "ValidatingWebhookConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "ValidatingWebhookConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedAdmissionregistrationV1ValidatingWebhookConfigurations) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AdmissionregistrationV1/ValidatingWebhookConfigurations", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE AdmissionregistrationV1/ValidatingWebhookConfigurations/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "AdmissionregistrationV1"), go_opentelemetry_io_otel_attribute.String("resource", "ValidatingWebhookConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "ValidatingWebhookConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedAdmissionregistrationV1ValidatingWebhookConfigurations) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_admissionregistration_v1.ValidatingWebhookConfiguration, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AdmissionregistrationV1/ValidatingWebhookConfigurations", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE AdmissionregistrationV1/ValidatingWebhookConfigurations/Get", go_opentelemetry_io_otel_attribute.String("client", "AdmissionregistrationV1"), go_opentelemetry_io_otel_attribute.String("resource", "ValidatingWebhookConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "ValidatingWebhookConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAdmissionregistrationV1ValidatingWebhookConfigurations) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_admissionregistration_v1.ValidatingWebhookConfigurationList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AdmissionregistrationV1/ValidatingWebhookConfigurations", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE AdmissionregistrationV1/ValidatingWebhookConfigurations/List", go_opentelemetry_io_otel_attribute.String("client", "AdmissionregistrationV1"), go_opentelemetry_io_otel_attribute.String("resource", "ValidatingWebhookConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "ValidatingWebhookConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAdmissionregistrationV1ValidatingWebhookConfigurations) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_admissionregistration_v1.ValidatingWebhookConfiguration, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AdmissionregistrationV1/ValidatingWebhookConfigurations", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE AdmissionregistrationV1/ValidatingWebhookConfigurations/Patch", go_opentelemetry_io_otel_attribute.String("client", "AdmissionregistrationV1"), go_opentelemetry_io_otel_attribute.String("resource", "ValidatingWebhookConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "ValidatingWebhookConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAdmissionregistrationV1ValidatingWebhookConfigurations) Update(arg0 context.Context, arg1 *k8s_io_api_admissionregistration_v1.ValidatingWebhookConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_admissionregistration_v1.ValidatingWebhookConfiguration, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AdmissionregistrationV1/ValidatingWebhookConfigurations", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE AdmissionregistrationV1/ValidatingWebhookConfigurations/Update", go_opentelemetry_io_otel_attribute.String("client", "AdmissionregistrationV1"), go_opentelemetry_io_otel_attribute.String("resource", "ValidatingWebhookConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "ValidatingWebhookConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAdmissionregistrationV1ValidatingWebhookConfigurations) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AdmissionregistrationV1/ValidatingWebhookConfigurations", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE AdmissionregistrationV1/ValidatingWebhookConfigurations/Watch", go_opentelemetry_io_otel_attribute.String("client", "AdmissionregistrationV1"), go_opentelemetry_io_otel_attribute.String("resource", "ValidatingWebhookConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "ValidatingWebhookConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedAdmissionregistrationV1beta1MutatingWebhookConfigurations wrapper @@ -1648,119 +1739,164 @@ func newAdmissionregistrationV1beta1MutatingWebhookConfigurations(inner k8s_io_c func (c *wrappedAdmissionregistrationV1beta1MutatingWebhookConfigurations) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_admissionregistration_v1beta1.MutatingWebhookConfigurationApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_admissionregistration_v1beta1.MutatingWebhookConfiguration, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AdmissionregistrationV1beta1/MutatingWebhookConfigurations", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE AdmissionregistrationV1beta1/MutatingWebhookConfigurations/Apply", go_opentelemetry_io_otel_attribute.String("client", "AdmissionregistrationV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "MutatingWebhookConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "MutatingWebhookConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAdmissionregistrationV1beta1MutatingWebhookConfigurations) Create(arg0 context.Context, arg1 *k8s_io_api_admissionregistration_v1beta1.MutatingWebhookConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_admissionregistration_v1beta1.MutatingWebhookConfiguration, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AdmissionregistrationV1beta1/MutatingWebhookConfigurations", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE AdmissionregistrationV1beta1/MutatingWebhookConfigurations/Create", go_opentelemetry_io_otel_attribute.String("client", "AdmissionregistrationV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "MutatingWebhookConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "MutatingWebhookConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAdmissionregistrationV1beta1MutatingWebhookConfigurations) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AdmissionregistrationV1beta1/MutatingWebhookConfigurations", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE AdmissionregistrationV1beta1/MutatingWebhookConfigurations/Delete", go_opentelemetry_io_otel_attribute.String("client", "AdmissionregistrationV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "MutatingWebhookConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "MutatingWebhookConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedAdmissionregistrationV1beta1MutatingWebhookConfigurations) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AdmissionregistrationV1beta1/MutatingWebhookConfigurations", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE AdmissionregistrationV1beta1/MutatingWebhookConfigurations/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "AdmissionregistrationV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "MutatingWebhookConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "MutatingWebhookConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedAdmissionregistrationV1beta1MutatingWebhookConfigurations) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_admissionregistration_v1beta1.MutatingWebhookConfiguration, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AdmissionregistrationV1beta1/MutatingWebhookConfigurations", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE AdmissionregistrationV1beta1/MutatingWebhookConfigurations/Get", go_opentelemetry_io_otel_attribute.String("client", "AdmissionregistrationV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "MutatingWebhookConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "MutatingWebhookConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAdmissionregistrationV1beta1MutatingWebhookConfigurations) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_admissionregistration_v1beta1.MutatingWebhookConfigurationList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AdmissionregistrationV1beta1/MutatingWebhookConfigurations", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE AdmissionregistrationV1beta1/MutatingWebhookConfigurations/List", go_opentelemetry_io_otel_attribute.String("client", "AdmissionregistrationV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "MutatingWebhookConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "MutatingWebhookConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAdmissionregistrationV1beta1MutatingWebhookConfigurations) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_admissionregistration_v1beta1.MutatingWebhookConfiguration, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AdmissionregistrationV1beta1/MutatingWebhookConfigurations", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE AdmissionregistrationV1beta1/MutatingWebhookConfigurations/Patch", go_opentelemetry_io_otel_attribute.String("client", "AdmissionregistrationV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "MutatingWebhookConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "MutatingWebhookConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAdmissionregistrationV1beta1MutatingWebhookConfigurations) Update(arg0 context.Context, arg1 *k8s_io_api_admissionregistration_v1beta1.MutatingWebhookConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_admissionregistration_v1beta1.MutatingWebhookConfiguration, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AdmissionregistrationV1beta1/MutatingWebhookConfigurations", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE AdmissionregistrationV1beta1/MutatingWebhookConfigurations/Update", go_opentelemetry_io_otel_attribute.String("client", "AdmissionregistrationV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "MutatingWebhookConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "MutatingWebhookConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAdmissionregistrationV1beta1MutatingWebhookConfigurations) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AdmissionregistrationV1beta1/MutatingWebhookConfigurations", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE AdmissionregistrationV1beta1/MutatingWebhookConfigurations/Watch", go_opentelemetry_io_otel_attribute.String("client", "AdmissionregistrationV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "MutatingWebhookConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "MutatingWebhookConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedAdmissionregistrationV1beta1ValidatingWebhookConfigurations wrapper @@ -1774,119 +1910,164 @@ func newAdmissionregistrationV1beta1ValidatingWebhookConfigurations(inner k8s_io func (c *wrappedAdmissionregistrationV1beta1ValidatingWebhookConfigurations) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_admissionregistration_v1beta1.ValidatingWebhookConfigurationApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_admissionregistration_v1beta1.ValidatingWebhookConfiguration, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AdmissionregistrationV1beta1/ValidatingWebhookConfigurations", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE AdmissionregistrationV1beta1/ValidatingWebhookConfigurations/Apply", go_opentelemetry_io_otel_attribute.String("client", "AdmissionregistrationV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "ValidatingWebhookConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "ValidatingWebhookConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAdmissionregistrationV1beta1ValidatingWebhookConfigurations) Create(arg0 context.Context, arg1 *k8s_io_api_admissionregistration_v1beta1.ValidatingWebhookConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_admissionregistration_v1beta1.ValidatingWebhookConfiguration, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AdmissionregistrationV1beta1/ValidatingWebhookConfigurations", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE AdmissionregistrationV1beta1/ValidatingWebhookConfigurations/Create", go_opentelemetry_io_otel_attribute.String("client", "AdmissionregistrationV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "ValidatingWebhookConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "ValidatingWebhookConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAdmissionregistrationV1beta1ValidatingWebhookConfigurations) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AdmissionregistrationV1beta1/ValidatingWebhookConfigurations", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE AdmissionregistrationV1beta1/ValidatingWebhookConfigurations/Delete", go_opentelemetry_io_otel_attribute.String("client", "AdmissionregistrationV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "ValidatingWebhookConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "ValidatingWebhookConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedAdmissionregistrationV1beta1ValidatingWebhookConfigurations) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AdmissionregistrationV1beta1/ValidatingWebhookConfigurations", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE AdmissionregistrationV1beta1/ValidatingWebhookConfigurations/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "AdmissionregistrationV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "ValidatingWebhookConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "ValidatingWebhookConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedAdmissionregistrationV1beta1ValidatingWebhookConfigurations) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_admissionregistration_v1beta1.ValidatingWebhookConfiguration, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AdmissionregistrationV1beta1/ValidatingWebhookConfigurations", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE AdmissionregistrationV1beta1/ValidatingWebhookConfigurations/Get", go_opentelemetry_io_otel_attribute.String("client", "AdmissionregistrationV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "ValidatingWebhookConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "ValidatingWebhookConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAdmissionregistrationV1beta1ValidatingWebhookConfigurations) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_admissionregistration_v1beta1.ValidatingWebhookConfigurationList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AdmissionregistrationV1beta1/ValidatingWebhookConfigurations", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE AdmissionregistrationV1beta1/ValidatingWebhookConfigurations/List", go_opentelemetry_io_otel_attribute.String("client", "AdmissionregistrationV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "ValidatingWebhookConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "ValidatingWebhookConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAdmissionregistrationV1beta1ValidatingWebhookConfigurations) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_admissionregistration_v1beta1.ValidatingWebhookConfiguration, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AdmissionregistrationV1beta1/ValidatingWebhookConfigurations", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE AdmissionregistrationV1beta1/ValidatingWebhookConfigurations/Patch", go_opentelemetry_io_otel_attribute.String("client", "AdmissionregistrationV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "ValidatingWebhookConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "ValidatingWebhookConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAdmissionregistrationV1beta1ValidatingWebhookConfigurations) Update(arg0 context.Context, arg1 *k8s_io_api_admissionregistration_v1beta1.ValidatingWebhookConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_admissionregistration_v1beta1.ValidatingWebhookConfiguration, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AdmissionregistrationV1beta1/ValidatingWebhookConfigurations", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE AdmissionregistrationV1beta1/ValidatingWebhookConfigurations/Update", go_opentelemetry_io_otel_attribute.String("client", "AdmissionregistrationV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "ValidatingWebhookConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "ValidatingWebhookConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAdmissionregistrationV1beta1ValidatingWebhookConfigurations) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AdmissionregistrationV1beta1/ValidatingWebhookConfigurations", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE AdmissionregistrationV1beta1/ValidatingWebhookConfigurations/Watch", go_opentelemetry_io_otel_attribute.String("client", "AdmissionregistrationV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "ValidatingWebhookConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "ValidatingWebhookConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedAppsV1ControllerRevisions wrapper @@ -1900,119 +2081,164 @@ func newAppsV1ControllerRevisions(inner k8s_io_client_go_kubernetes_typed_apps_v func (c *wrappedAppsV1ControllerRevisions) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_apps_v1.ControllerRevisionApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_apps_v1.ControllerRevision, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/ControllerRevisions", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/ControllerRevisions/Apply", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "ControllerRevisions"), go_opentelemetry_io_otel_attribute.String("kind", "ControllerRevision"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1ControllerRevisions) Create(arg0 context.Context, arg1 *k8s_io_api_apps_v1.ControllerRevision, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_apps_v1.ControllerRevision, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/ControllerRevisions", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/ControllerRevisions/Create", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "ControllerRevisions"), go_opentelemetry_io_otel_attribute.String("kind", "ControllerRevision"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1ControllerRevisions) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/ControllerRevisions", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/ControllerRevisions/Delete", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "ControllerRevisions"), go_opentelemetry_io_otel_attribute.String("kind", "ControllerRevision"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedAppsV1ControllerRevisions) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/ControllerRevisions", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/ControllerRevisions/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "ControllerRevisions"), go_opentelemetry_io_otel_attribute.String("kind", "ControllerRevision"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedAppsV1ControllerRevisions) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_apps_v1.ControllerRevision, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/ControllerRevisions", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/ControllerRevisions/Get", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "ControllerRevisions"), go_opentelemetry_io_otel_attribute.String("kind", "ControllerRevision"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1ControllerRevisions) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_apps_v1.ControllerRevisionList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/ControllerRevisions", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/ControllerRevisions/List", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "ControllerRevisions"), go_opentelemetry_io_otel_attribute.String("kind", "ControllerRevision"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1ControllerRevisions) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_apps_v1.ControllerRevision, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/ControllerRevisions", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/ControllerRevisions/Patch", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "ControllerRevisions"), go_opentelemetry_io_otel_attribute.String("kind", "ControllerRevision"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1ControllerRevisions) Update(arg0 context.Context, arg1 *k8s_io_api_apps_v1.ControllerRevision, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_apps_v1.ControllerRevision, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/ControllerRevisions", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/ControllerRevisions/Update", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "ControllerRevisions"), go_opentelemetry_io_otel_attribute.String("kind", "ControllerRevision"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1ControllerRevisions) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/ControllerRevisions", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/ControllerRevisions/Watch", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "ControllerRevisions"), go_opentelemetry_io_otel_attribute.String("kind", "ControllerRevision"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedAppsV1DaemonSets wrapper @@ -2026,145 +2252,200 @@ func newAppsV1DaemonSets(inner k8s_io_client_go_kubernetes_typed_apps_v1.DaemonS func (c *wrappedAppsV1DaemonSets) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_apps_v1.DaemonSetApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_apps_v1.DaemonSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/DaemonSets", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/DaemonSets/Apply", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "DaemonSets"), go_opentelemetry_io_otel_attribute.String("kind", "DaemonSet"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1DaemonSets) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_apps_v1.DaemonSetApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_apps_v1.DaemonSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/DaemonSets", - "ApplyStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/DaemonSets/ApplyStatus", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "DaemonSets"), go_opentelemetry_io_otel_attribute.String("kind", "DaemonSet"), ) defer span.End() arg0 = ctx - return c.inner.ApplyStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.ApplyStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1DaemonSets) Create(arg0 context.Context, arg1 *k8s_io_api_apps_v1.DaemonSet, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_apps_v1.DaemonSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/DaemonSets", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/DaemonSets/Create", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "DaemonSets"), go_opentelemetry_io_otel_attribute.String("kind", "DaemonSet"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1DaemonSets) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/DaemonSets", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/DaemonSets/Delete", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "DaemonSets"), go_opentelemetry_io_otel_attribute.String("kind", "DaemonSet"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedAppsV1DaemonSets) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/DaemonSets", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/DaemonSets/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "DaemonSets"), go_opentelemetry_io_otel_attribute.String("kind", "DaemonSet"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedAppsV1DaemonSets) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_apps_v1.DaemonSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/DaemonSets", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/DaemonSets/Get", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "DaemonSets"), go_opentelemetry_io_otel_attribute.String("kind", "DaemonSet"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1DaemonSets) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_apps_v1.DaemonSetList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/DaemonSets", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/DaemonSets/List", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "DaemonSets"), go_opentelemetry_io_otel_attribute.String("kind", "DaemonSet"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1DaemonSets) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_apps_v1.DaemonSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/DaemonSets", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/DaemonSets/Patch", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "DaemonSets"), go_opentelemetry_io_otel_attribute.String("kind", "DaemonSet"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1DaemonSets) Update(arg0 context.Context, arg1 *k8s_io_api_apps_v1.DaemonSet, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_apps_v1.DaemonSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/DaemonSets", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/DaemonSets/Update", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "DaemonSets"), go_opentelemetry_io_otel_attribute.String("kind", "DaemonSet"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1DaemonSets) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_apps_v1.DaemonSet, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_apps_v1.DaemonSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/DaemonSets", - "UpdateStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/DaemonSets/UpdateStatus", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "DaemonSets"), go_opentelemetry_io_otel_attribute.String("kind", "DaemonSet"), ) defer span.End() arg0 = ctx - return c.inner.UpdateStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.UpdateStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1DaemonSets) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/DaemonSets", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/DaemonSets/Watch", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "DaemonSets"), go_opentelemetry_io_otel_attribute.String("kind", "DaemonSet"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedAppsV1Deployments wrapper @@ -2178,184 +2459,254 @@ func newAppsV1Deployments(inner k8s_io_client_go_kubernetes_typed_apps_v1.Deploy func (c *wrappedAppsV1Deployments) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_apps_v1.DeploymentApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_apps_v1.Deployment, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/Deployments", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/Deployments/Apply", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "Deployments"), go_opentelemetry_io_otel_attribute.String("kind", "Deployment"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1Deployments) ApplyScale(arg0 context.Context, arg1 string, arg2 *k8s_io_client_go_applyconfigurations_autoscaling_v1.ScaleApplyConfiguration, arg3 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_autoscaling_v1.Scale, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/Deployments", - "ApplyScale", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/Deployments/ApplyScale", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "Deployments"), go_opentelemetry_io_otel_attribute.String("kind", "Deployment"), ) defer span.End() arg0 = ctx - return c.inner.ApplyScale(arg0, arg1, arg2, arg3) + ret0, ret1 := c.inner.ApplyScale(arg0, arg1, arg2, arg3) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1Deployments) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_apps_v1.DeploymentApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_apps_v1.Deployment, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/Deployments", - "ApplyStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/Deployments/ApplyStatus", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "Deployments"), go_opentelemetry_io_otel_attribute.String("kind", "Deployment"), ) defer span.End() arg0 = ctx - return c.inner.ApplyStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.ApplyStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1Deployments) Create(arg0 context.Context, arg1 *k8s_io_api_apps_v1.Deployment, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_apps_v1.Deployment, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/Deployments", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/Deployments/Create", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "Deployments"), go_opentelemetry_io_otel_attribute.String("kind", "Deployment"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1Deployments) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/Deployments", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/Deployments/Delete", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "Deployments"), go_opentelemetry_io_otel_attribute.String("kind", "Deployment"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedAppsV1Deployments) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/Deployments", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/Deployments/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "Deployments"), go_opentelemetry_io_otel_attribute.String("kind", "Deployment"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedAppsV1Deployments) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_apps_v1.Deployment, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/Deployments", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/Deployments/Get", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "Deployments"), go_opentelemetry_io_otel_attribute.String("kind", "Deployment"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1Deployments) GetScale(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_autoscaling_v1.Scale, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/Deployments", - "GetScale", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/Deployments/GetScale", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "Deployments"), go_opentelemetry_io_otel_attribute.String("kind", "Deployment"), ) defer span.End() arg0 = ctx - return c.inner.GetScale(arg0, arg1, arg2) + ret0, ret1 := c.inner.GetScale(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1Deployments) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_apps_v1.DeploymentList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/Deployments", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/Deployments/List", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "Deployments"), go_opentelemetry_io_otel_attribute.String("kind", "Deployment"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1Deployments) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_apps_v1.Deployment, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/Deployments", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/Deployments/Patch", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "Deployments"), go_opentelemetry_io_otel_attribute.String("kind", "Deployment"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1Deployments) Update(arg0 context.Context, arg1 *k8s_io_api_apps_v1.Deployment, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_apps_v1.Deployment, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/Deployments", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/Deployments/Update", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "Deployments"), go_opentelemetry_io_otel_attribute.String("kind", "Deployment"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1Deployments) UpdateScale(arg0 context.Context, arg1 string, arg2 *k8s_io_api_autoscaling_v1.Scale, arg3 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_autoscaling_v1.Scale, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/Deployments", - "UpdateScale", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/Deployments/UpdateScale", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "Deployments"), go_opentelemetry_io_otel_attribute.String("kind", "Deployment"), ) defer span.End() arg0 = ctx - return c.inner.UpdateScale(arg0, arg1, arg2, arg3) + ret0, ret1 := c.inner.UpdateScale(arg0, arg1, arg2, arg3) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1Deployments) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_apps_v1.Deployment, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_apps_v1.Deployment, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/Deployments", - "UpdateStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/Deployments/UpdateStatus", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "Deployments"), go_opentelemetry_io_otel_attribute.String("kind", "Deployment"), ) defer span.End() arg0 = ctx - return c.inner.UpdateStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.UpdateStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1Deployments) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/Deployments", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/Deployments/Watch", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "Deployments"), go_opentelemetry_io_otel_attribute.String("kind", "Deployment"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedAppsV1ReplicaSets wrapper @@ -2369,184 +2720,254 @@ func newAppsV1ReplicaSets(inner k8s_io_client_go_kubernetes_typed_apps_v1.Replic func (c *wrappedAppsV1ReplicaSets) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_apps_v1.ReplicaSetApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_apps_v1.ReplicaSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/ReplicaSets", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/ReplicaSets/Apply", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "ReplicaSets"), go_opentelemetry_io_otel_attribute.String("kind", "ReplicaSet"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1ReplicaSets) ApplyScale(arg0 context.Context, arg1 string, arg2 *k8s_io_client_go_applyconfigurations_autoscaling_v1.ScaleApplyConfiguration, arg3 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_autoscaling_v1.Scale, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/ReplicaSets", - "ApplyScale", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/ReplicaSets/ApplyScale", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "ReplicaSets"), go_opentelemetry_io_otel_attribute.String("kind", "ReplicaSet"), ) defer span.End() arg0 = ctx - return c.inner.ApplyScale(arg0, arg1, arg2, arg3) + ret0, ret1 := c.inner.ApplyScale(arg0, arg1, arg2, arg3) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1ReplicaSets) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_apps_v1.ReplicaSetApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_apps_v1.ReplicaSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/ReplicaSets", - "ApplyStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/ReplicaSets/ApplyStatus", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "ReplicaSets"), go_opentelemetry_io_otel_attribute.String("kind", "ReplicaSet"), ) defer span.End() arg0 = ctx - return c.inner.ApplyStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.ApplyStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1ReplicaSets) Create(arg0 context.Context, arg1 *k8s_io_api_apps_v1.ReplicaSet, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_apps_v1.ReplicaSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/ReplicaSets", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/ReplicaSets/Create", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "ReplicaSets"), go_opentelemetry_io_otel_attribute.String("kind", "ReplicaSet"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1ReplicaSets) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/ReplicaSets", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/ReplicaSets/Delete", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "ReplicaSets"), go_opentelemetry_io_otel_attribute.String("kind", "ReplicaSet"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedAppsV1ReplicaSets) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/ReplicaSets", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/ReplicaSets/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "ReplicaSets"), go_opentelemetry_io_otel_attribute.String("kind", "ReplicaSet"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedAppsV1ReplicaSets) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_apps_v1.ReplicaSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/ReplicaSets", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/ReplicaSets/Get", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "ReplicaSets"), go_opentelemetry_io_otel_attribute.String("kind", "ReplicaSet"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1ReplicaSets) GetScale(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_autoscaling_v1.Scale, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/ReplicaSets", - "GetScale", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/ReplicaSets/GetScale", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "ReplicaSets"), go_opentelemetry_io_otel_attribute.String("kind", "ReplicaSet"), ) defer span.End() arg0 = ctx - return c.inner.GetScale(arg0, arg1, arg2) + ret0, ret1 := c.inner.GetScale(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1ReplicaSets) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_apps_v1.ReplicaSetList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/ReplicaSets", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/ReplicaSets/List", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "ReplicaSets"), go_opentelemetry_io_otel_attribute.String("kind", "ReplicaSet"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1ReplicaSets) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_apps_v1.ReplicaSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/ReplicaSets", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/ReplicaSets/Patch", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "ReplicaSets"), go_opentelemetry_io_otel_attribute.String("kind", "ReplicaSet"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1ReplicaSets) Update(arg0 context.Context, arg1 *k8s_io_api_apps_v1.ReplicaSet, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_apps_v1.ReplicaSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/ReplicaSets", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/ReplicaSets/Update", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "ReplicaSets"), go_opentelemetry_io_otel_attribute.String("kind", "ReplicaSet"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1ReplicaSets) UpdateScale(arg0 context.Context, arg1 string, arg2 *k8s_io_api_autoscaling_v1.Scale, arg3 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_autoscaling_v1.Scale, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/ReplicaSets", - "UpdateScale", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/ReplicaSets/UpdateScale", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "ReplicaSets"), go_opentelemetry_io_otel_attribute.String("kind", "ReplicaSet"), ) defer span.End() arg0 = ctx - return c.inner.UpdateScale(arg0, arg1, arg2, arg3) + ret0, ret1 := c.inner.UpdateScale(arg0, arg1, arg2, arg3) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1ReplicaSets) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_apps_v1.ReplicaSet, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_apps_v1.ReplicaSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/ReplicaSets", - "UpdateStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/ReplicaSets/UpdateStatus", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "ReplicaSets"), go_opentelemetry_io_otel_attribute.String("kind", "ReplicaSet"), ) defer span.End() arg0 = ctx - return c.inner.UpdateStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.UpdateStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1ReplicaSets) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/ReplicaSets", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/ReplicaSets/Watch", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "ReplicaSets"), go_opentelemetry_io_otel_attribute.String("kind", "ReplicaSet"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedAppsV1StatefulSets wrapper @@ -2560,184 +2981,254 @@ func newAppsV1StatefulSets(inner k8s_io_client_go_kubernetes_typed_apps_v1.State func (c *wrappedAppsV1StatefulSets) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_apps_v1.StatefulSetApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_apps_v1.StatefulSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/StatefulSets", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/StatefulSets/Apply", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "StatefulSets"), go_opentelemetry_io_otel_attribute.String("kind", "StatefulSet"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1StatefulSets) ApplyScale(arg0 context.Context, arg1 string, arg2 *k8s_io_client_go_applyconfigurations_autoscaling_v1.ScaleApplyConfiguration, arg3 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_autoscaling_v1.Scale, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/StatefulSets", - "ApplyScale", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/StatefulSets/ApplyScale", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "StatefulSets"), go_opentelemetry_io_otel_attribute.String("kind", "StatefulSet"), ) defer span.End() arg0 = ctx - return c.inner.ApplyScale(arg0, arg1, arg2, arg3) + ret0, ret1 := c.inner.ApplyScale(arg0, arg1, arg2, arg3) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1StatefulSets) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_apps_v1.StatefulSetApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_apps_v1.StatefulSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/StatefulSets", - "ApplyStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/StatefulSets/ApplyStatus", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "StatefulSets"), go_opentelemetry_io_otel_attribute.String("kind", "StatefulSet"), ) defer span.End() arg0 = ctx - return c.inner.ApplyStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.ApplyStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1StatefulSets) Create(arg0 context.Context, arg1 *k8s_io_api_apps_v1.StatefulSet, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_apps_v1.StatefulSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/StatefulSets", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/StatefulSets/Create", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "StatefulSets"), go_opentelemetry_io_otel_attribute.String("kind", "StatefulSet"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1StatefulSets) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/StatefulSets", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/StatefulSets/Delete", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "StatefulSets"), go_opentelemetry_io_otel_attribute.String("kind", "StatefulSet"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedAppsV1StatefulSets) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/StatefulSets", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/StatefulSets/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "StatefulSets"), go_opentelemetry_io_otel_attribute.String("kind", "StatefulSet"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedAppsV1StatefulSets) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_apps_v1.StatefulSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/StatefulSets", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/StatefulSets/Get", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "StatefulSets"), go_opentelemetry_io_otel_attribute.String("kind", "StatefulSet"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1StatefulSets) GetScale(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_autoscaling_v1.Scale, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/StatefulSets", - "GetScale", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/StatefulSets/GetScale", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "StatefulSets"), go_opentelemetry_io_otel_attribute.String("kind", "StatefulSet"), ) defer span.End() arg0 = ctx - return c.inner.GetScale(arg0, arg1, arg2) + ret0, ret1 := c.inner.GetScale(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1StatefulSets) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_apps_v1.StatefulSetList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/StatefulSets", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/StatefulSets/List", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "StatefulSets"), go_opentelemetry_io_otel_attribute.String("kind", "StatefulSet"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1StatefulSets) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_apps_v1.StatefulSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/StatefulSets", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/StatefulSets/Patch", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "StatefulSets"), go_opentelemetry_io_otel_attribute.String("kind", "StatefulSet"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1StatefulSets) Update(arg0 context.Context, arg1 *k8s_io_api_apps_v1.StatefulSet, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_apps_v1.StatefulSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/StatefulSets", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/StatefulSets/Update", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "StatefulSets"), go_opentelemetry_io_otel_attribute.String("kind", "StatefulSet"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1StatefulSets) UpdateScale(arg0 context.Context, arg1 string, arg2 *k8s_io_api_autoscaling_v1.Scale, arg3 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_autoscaling_v1.Scale, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/StatefulSets", - "UpdateScale", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/StatefulSets/UpdateScale", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "StatefulSets"), go_opentelemetry_io_otel_attribute.String("kind", "StatefulSet"), ) defer span.End() arg0 = ctx - return c.inner.UpdateScale(arg0, arg1, arg2, arg3) + ret0, ret1 := c.inner.UpdateScale(arg0, arg1, arg2, arg3) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1StatefulSets) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_apps_v1.StatefulSet, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_apps_v1.StatefulSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/StatefulSets", - "UpdateStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/StatefulSets/UpdateStatus", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "StatefulSets"), go_opentelemetry_io_otel_attribute.String("kind", "StatefulSet"), ) defer span.End() arg0 = ctx - return c.inner.UpdateStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.UpdateStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1StatefulSets) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1/StatefulSets", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1/StatefulSets/Watch", go_opentelemetry_io_otel_attribute.String("client", "AppsV1"), go_opentelemetry_io_otel_attribute.String("resource", "StatefulSets"), go_opentelemetry_io_otel_attribute.String("kind", "StatefulSet"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedAppsV1beta1ControllerRevisions wrapper @@ -2751,119 +3242,164 @@ func newAppsV1beta1ControllerRevisions(inner k8s_io_client_go_kubernetes_typed_a func (c *wrappedAppsV1beta1ControllerRevisions) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_apps_v1beta1.ControllerRevisionApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_apps_v1beta1.ControllerRevision, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta1/ControllerRevisions", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta1/ControllerRevisions/Apply", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "ControllerRevisions"), go_opentelemetry_io_otel_attribute.String("kind", "ControllerRevision"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta1ControllerRevisions) Create(arg0 context.Context, arg1 *k8s_io_api_apps_v1beta1.ControllerRevision, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_apps_v1beta1.ControllerRevision, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta1/ControllerRevisions", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta1/ControllerRevisions/Create", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "ControllerRevisions"), go_opentelemetry_io_otel_attribute.String("kind", "ControllerRevision"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta1ControllerRevisions) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta1/ControllerRevisions", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta1/ControllerRevisions/Delete", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "ControllerRevisions"), go_opentelemetry_io_otel_attribute.String("kind", "ControllerRevision"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedAppsV1beta1ControllerRevisions) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta1/ControllerRevisions", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta1/ControllerRevisions/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "ControllerRevisions"), go_opentelemetry_io_otel_attribute.String("kind", "ControllerRevision"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedAppsV1beta1ControllerRevisions) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_apps_v1beta1.ControllerRevision, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta1/ControllerRevisions", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta1/ControllerRevisions/Get", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "ControllerRevisions"), go_opentelemetry_io_otel_attribute.String("kind", "ControllerRevision"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta1ControllerRevisions) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_apps_v1beta1.ControllerRevisionList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta1/ControllerRevisions", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta1/ControllerRevisions/List", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "ControllerRevisions"), go_opentelemetry_io_otel_attribute.String("kind", "ControllerRevision"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta1ControllerRevisions) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_apps_v1beta1.ControllerRevision, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta1/ControllerRevisions", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta1/ControllerRevisions/Patch", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "ControllerRevisions"), go_opentelemetry_io_otel_attribute.String("kind", "ControllerRevision"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta1ControllerRevisions) Update(arg0 context.Context, arg1 *k8s_io_api_apps_v1beta1.ControllerRevision, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_apps_v1beta1.ControllerRevision, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta1/ControllerRevisions", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta1/ControllerRevisions/Update", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "ControllerRevisions"), go_opentelemetry_io_otel_attribute.String("kind", "ControllerRevision"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta1ControllerRevisions) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta1/ControllerRevisions", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta1/ControllerRevisions/Watch", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "ControllerRevisions"), go_opentelemetry_io_otel_attribute.String("kind", "ControllerRevision"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedAppsV1beta1Deployments wrapper @@ -2877,145 +3413,200 @@ func newAppsV1beta1Deployments(inner k8s_io_client_go_kubernetes_typed_apps_v1be func (c *wrappedAppsV1beta1Deployments) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_apps_v1beta1.DeploymentApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_apps_v1beta1.Deployment, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta1/Deployments", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta1/Deployments/Apply", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Deployments"), go_opentelemetry_io_otel_attribute.String("kind", "Deployment"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta1Deployments) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_apps_v1beta1.DeploymentApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_apps_v1beta1.Deployment, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta1/Deployments", - "ApplyStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta1/Deployments/ApplyStatus", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Deployments"), go_opentelemetry_io_otel_attribute.String("kind", "Deployment"), ) defer span.End() arg0 = ctx - return c.inner.ApplyStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.ApplyStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta1Deployments) Create(arg0 context.Context, arg1 *k8s_io_api_apps_v1beta1.Deployment, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_apps_v1beta1.Deployment, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta1/Deployments", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta1/Deployments/Create", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Deployments"), go_opentelemetry_io_otel_attribute.String("kind", "Deployment"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta1Deployments) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta1/Deployments", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta1/Deployments/Delete", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Deployments"), go_opentelemetry_io_otel_attribute.String("kind", "Deployment"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedAppsV1beta1Deployments) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta1/Deployments", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta1/Deployments/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Deployments"), go_opentelemetry_io_otel_attribute.String("kind", "Deployment"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedAppsV1beta1Deployments) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_apps_v1beta1.Deployment, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta1/Deployments", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta1/Deployments/Get", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Deployments"), go_opentelemetry_io_otel_attribute.String("kind", "Deployment"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta1Deployments) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_apps_v1beta1.DeploymentList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta1/Deployments", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta1/Deployments/List", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Deployments"), go_opentelemetry_io_otel_attribute.String("kind", "Deployment"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta1Deployments) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_apps_v1beta1.Deployment, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta1/Deployments", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta1/Deployments/Patch", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Deployments"), go_opentelemetry_io_otel_attribute.String("kind", "Deployment"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta1Deployments) Update(arg0 context.Context, arg1 *k8s_io_api_apps_v1beta1.Deployment, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_apps_v1beta1.Deployment, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta1/Deployments", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta1/Deployments/Update", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Deployments"), go_opentelemetry_io_otel_attribute.String("kind", "Deployment"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta1Deployments) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_apps_v1beta1.Deployment, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_apps_v1beta1.Deployment, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta1/Deployments", - "UpdateStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta1/Deployments/UpdateStatus", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Deployments"), go_opentelemetry_io_otel_attribute.String("kind", "Deployment"), ) defer span.End() arg0 = ctx - return c.inner.UpdateStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.UpdateStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta1Deployments) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta1/Deployments", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta1/Deployments/Watch", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Deployments"), go_opentelemetry_io_otel_attribute.String("kind", "Deployment"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedAppsV1beta1StatefulSets wrapper @@ -3029,145 +3620,200 @@ func newAppsV1beta1StatefulSets(inner k8s_io_client_go_kubernetes_typed_apps_v1b func (c *wrappedAppsV1beta1StatefulSets) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_apps_v1beta1.StatefulSetApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_apps_v1beta1.StatefulSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta1/StatefulSets", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta1/StatefulSets/Apply", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "StatefulSets"), go_opentelemetry_io_otel_attribute.String("kind", "StatefulSet"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta1StatefulSets) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_apps_v1beta1.StatefulSetApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_apps_v1beta1.StatefulSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta1/StatefulSets", - "ApplyStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta1/StatefulSets/ApplyStatus", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "StatefulSets"), go_opentelemetry_io_otel_attribute.String("kind", "StatefulSet"), ) defer span.End() arg0 = ctx - return c.inner.ApplyStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.ApplyStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta1StatefulSets) Create(arg0 context.Context, arg1 *k8s_io_api_apps_v1beta1.StatefulSet, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_apps_v1beta1.StatefulSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta1/StatefulSets", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta1/StatefulSets/Create", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "StatefulSets"), go_opentelemetry_io_otel_attribute.String("kind", "StatefulSet"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta1StatefulSets) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta1/StatefulSets", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta1/StatefulSets/Delete", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "StatefulSets"), go_opentelemetry_io_otel_attribute.String("kind", "StatefulSet"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedAppsV1beta1StatefulSets) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta1/StatefulSets", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta1/StatefulSets/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "StatefulSets"), go_opentelemetry_io_otel_attribute.String("kind", "StatefulSet"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedAppsV1beta1StatefulSets) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_apps_v1beta1.StatefulSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta1/StatefulSets", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta1/StatefulSets/Get", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "StatefulSets"), go_opentelemetry_io_otel_attribute.String("kind", "StatefulSet"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta1StatefulSets) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_apps_v1beta1.StatefulSetList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta1/StatefulSets", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta1/StatefulSets/List", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "StatefulSets"), go_opentelemetry_io_otel_attribute.String("kind", "StatefulSet"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta1StatefulSets) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_apps_v1beta1.StatefulSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta1/StatefulSets", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta1/StatefulSets/Patch", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "StatefulSets"), go_opentelemetry_io_otel_attribute.String("kind", "StatefulSet"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta1StatefulSets) Update(arg0 context.Context, arg1 *k8s_io_api_apps_v1beta1.StatefulSet, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_apps_v1beta1.StatefulSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta1/StatefulSets", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta1/StatefulSets/Update", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "StatefulSets"), go_opentelemetry_io_otel_attribute.String("kind", "StatefulSet"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta1StatefulSets) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_apps_v1beta1.StatefulSet, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_apps_v1beta1.StatefulSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta1/StatefulSets", - "UpdateStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta1/StatefulSets/UpdateStatus", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "StatefulSets"), go_opentelemetry_io_otel_attribute.String("kind", "StatefulSet"), ) defer span.End() arg0 = ctx - return c.inner.UpdateStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.UpdateStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta1StatefulSets) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta1/StatefulSets", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta1/StatefulSets/Watch", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "StatefulSets"), go_opentelemetry_io_otel_attribute.String("kind", "StatefulSet"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedAppsV1beta2ControllerRevisions wrapper @@ -3181,119 +3827,164 @@ func newAppsV1beta2ControllerRevisions(inner k8s_io_client_go_kubernetes_typed_a func (c *wrappedAppsV1beta2ControllerRevisions) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_apps_v1beta2.ControllerRevisionApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_apps_v1beta2.ControllerRevision, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta2/ControllerRevisions", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta2/ControllerRevisions/Apply", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "ControllerRevisions"), go_opentelemetry_io_otel_attribute.String("kind", "ControllerRevision"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta2ControllerRevisions) Create(arg0 context.Context, arg1 *k8s_io_api_apps_v1beta2.ControllerRevision, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_apps_v1beta2.ControllerRevision, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta2/ControllerRevisions", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta2/ControllerRevisions/Create", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "ControllerRevisions"), go_opentelemetry_io_otel_attribute.String("kind", "ControllerRevision"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta2ControllerRevisions) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta2/ControllerRevisions", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta2/ControllerRevisions/Delete", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "ControllerRevisions"), go_opentelemetry_io_otel_attribute.String("kind", "ControllerRevision"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedAppsV1beta2ControllerRevisions) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta2/ControllerRevisions", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta2/ControllerRevisions/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "ControllerRevisions"), go_opentelemetry_io_otel_attribute.String("kind", "ControllerRevision"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedAppsV1beta2ControllerRevisions) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_apps_v1beta2.ControllerRevision, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta2/ControllerRevisions", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta2/ControllerRevisions/Get", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "ControllerRevisions"), go_opentelemetry_io_otel_attribute.String("kind", "ControllerRevision"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta2ControllerRevisions) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_apps_v1beta2.ControllerRevisionList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta2/ControllerRevisions", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta2/ControllerRevisions/List", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "ControllerRevisions"), go_opentelemetry_io_otel_attribute.String("kind", "ControllerRevision"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta2ControllerRevisions) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_apps_v1beta2.ControllerRevision, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta2/ControllerRevisions", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta2/ControllerRevisions/Patch", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "ControllerRevisions"), go_opentelemetry_io_otel_attribute.String("kind", "ControllerRevision"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta2ControllerRevisions) Update(arg0 context.Context, arg1 *k8s_io_api_apps_v1beta2.ControllerRevision, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_apps_v1beta2.ControllerRevision, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta2/ControllerRevisions", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta2/ControllerRevisions/Update", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "ControllerRevisions"), go_opentelemetry_io_otel_attribute.String("kind", "ControllerRevision"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta2ControllerRevisions) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta2/ControllerRevisions", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta2/ControllerRevisions/Watch", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "ControllerRevisions"), go_opentelemetry_io_otel_attribute.String("kind", "ControllerRevision"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedAppsV1beta2DaemonSets wrapper @@ -3307,145 +3998,200 @@ func newAppsV1beta2DaemonSets(inner k8s_io_client_go_kubernetes_typed_apps_v1bet func (c *wrappedAppsV1beta2DaemonSets) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_apps_v1beta2.DaemonSetApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_apps_v1beta2.DaemonSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta2/DaemonSets", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta2/DaemonSets/Apply", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "DaemonSets"), go_opentelemetry_io_otel_attribute.String("kind", "DaemonSet"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta2DaemonSets) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_apps_v1beta2.DaemonSetApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_apps_v1beta2.DaemonSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta2/DaemonSets", - "ApplyStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta2/DaemonSets/ApplyStatus", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "DaemonSets"), go_opentelemetry_io_otel_attribute.String("kind", "DaemonSet"), ) defer span.End() arg0 = ctx - return c.inner.ApplyStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.ApplyStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta2DaemonSets) Create(arg0 context.Context, arg1 *k8s_io_api_apps_v1beta2.DaemonSet, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_apps_v1beta2.DaemonSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta2/DaemonSets", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta2/DaemonSets/Create", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "DaemonSets"), go_opentelemetry_io_otel_attribute.String("kind", "DaemonSet"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta2DaemonSets) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta2/DaemonSets", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta2/DaemonSets/Delete", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "DaemonSets"), go_opentelemetry_io_otel_attribute.String("kind", "DaemonSet"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedAppsV1beta2DaemonSets) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta2/DaemonSets", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta2/DaemonSets/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "DaemonSets"), go_opentelemetry_io_otel_attribute.String("kind", "DaemonSet"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedAppsV1beta2DaemonSets) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_apps_v1beta2.DaemonSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta2/DaemonSets", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta2/DaemonSets/Get", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "DaemonSets"), go_opentelemetry_io_otel_attribute.String("kind", "DaemonSet"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta2DaemonSets) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_apps_v1beta2.DaemonSetList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta2/DaemonSets", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta2/DaemonSets/List", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "DaemonSets"), go_opentelemetry_io_otel_attribute.String("kind", "DaemonSet"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta2DaemonSets) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_apps_v1beta2.DaemonSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta2/DaemonSets", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta2/DaemonSets/Patch", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "DaemonSets"), go_opentelemetry_io_otel_attribute.String("kind", "DaemonSet"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta2DaemonSets) Update(arg0 context.Context, arg1 *k8s_io_api_apps_v1beta2.DaemonSet, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_apps_v1beta2.DaemonSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta2/DaemonSets", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta2/DaemonSets/Update", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "DaemonSets"), go_opentelemetry_io_otel_attribute.String("kind", "DaemonSet"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta2DaemonSets) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_apps_v1beta2.DaemonSet, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_apps_v1beta2.DaemonSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta2/DaemonSets", - "UpdateStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta2/DaemonSets/UpdateStatus", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "DaemonSets"), go_opentelemetry_io_otel_attribute.String("kind", "DaemonSet"), ) defer span.End() arg0 = ctx - return c.inner.UpdateStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.UpdateStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta2DaemonSets) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta2/DaemonSets", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta2/DaemonSets/Watch", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "DaemonSets"), go_opentelemetry_io_otel_attribute.String("kind", "DaemonSet"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedAppsV1beta2Deployments wrapper @@ -3459,145 +4205,200 @@ func newAppsV1beta2Deployments(inner k8s_io_client_go_kubernetes_typed_apps_v1be func (c *wrappedAppsV1beta2Deployments) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_apps_v1beta2.DeploymentApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_apps_v1beta2.Deployment, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta2/Deployments", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta2/Deployments/Apply", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "Deployments"), go_opentelemetry_io_otel_attribute.String("kind", "Deployment"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta2Deployments) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_apps_v1beta2.DeploymentApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_apps_v1beta2.Deployment, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta2/Deployments", - "ApplyStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta2/Deployments/ApplyStatus", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "Deployments"), go_opentelemetry_io_otel_attribute.String("kind", "Deployment"), ) defer span.End() arg0 = ctx - return c.inner.ApplyStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.ApplyStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta2Deployments) Create(arg0 context.Context, arg1 *k8s_io_api_apps_v1beta2.Deployment, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_apps_v1beta2.Deployment, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta2/Deployments", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta2/Deployments/Create", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "Deployments"), go_opentelemetry_io_otel_attribute.String("kind", "Deployment"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta2Deployments) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta2/Deployments", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta2/Deployments/Delete", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "Deployments"), go_opentelemetry_io_otel_attribute.String("kind", "Deployment"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedAppsV1beta2Deployments) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta2/Deployments", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta2/Deployments/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "Deployments"), go_opentelemetry_io_otel_attribute.String("kind", "Deployment"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedAppsV1beta2Deployments) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_apps_v1beta2.Deployment, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta2/Deployments", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta2/Deployments/Get", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "Deployments"), go_opentelemetry_io_otel_attribute.String("kind", "Deployment"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta2Deployments) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_apps_v1beta2.DeploymentList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta2/Deployments", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta2/Deployments/List", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "Deployments"), go_opentelemetry_io_otel_attribute.String("kind", "Deployment"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta2Deployments) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_apps_v1beta2.Deployment, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta2/Deployments", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta2/Deployments/Patch", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "Deployments"), go_opentelemetry_io_otel_attribute.String("kind", "Deployment"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta2Deployments) Update(arg0 context.Context, arg1 *k8s_io_api_apps_v1beta2.Deployment, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_apps_v1beta2.Deployment, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta2/Deployments", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta2/Deployments/Update", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "Deployments"), go_opentelemetry_io_otel_attribute.String("kind", "Deployment"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta2Deployments) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_apps_v1beta2.Deployment, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_apps_v1beta2.Deployment, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta2/Deployments", - "UpdateStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta2/Deployments/UpdateStatus", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "Deployments"), go_opentelemetry_io_otel_attribute.String("kind", "Deployment"), ) defer span.End() arg0 = ctx - return c.inner.UpdateStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.UpdateStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta2Deployments) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta2/Deployments", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta2/Deployments/Watch", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "Deployments"), go_opentelemetry_io_otel_attribute.String("kind", "Deployment"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedAppsV1beta2ReplicaSets wrapper @@ -3611,145 +4412,200 @@ func newAppsV1beta2ReplicaSets(inner k8s_io_client_go_kubernetes_typed_apps_v1be func (c *wrappedAppsV1beta2ReplicaSets) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_apps_v1beta2.ReplicaSetApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_apps_v1beta2.ReplicaSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta2/ReplicaSets", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta2/ReplicaSets/Apply", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "ReplicaSets"), go_opentelemetry_io_otel_attribute.String("kind", "ReplicaSet"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta2ReplicaSets) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_apps_v1beta2.ReplicaSetApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_apps_v1beta2.ReplicaSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta2/ReplicaSets", - "ApplyStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta2/ReplicaSets/ApplyStatus", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "ReplicaSets"), go_opentelemetry_io_otel_attribute.String("kind", "ReplicaSet"), ) defer span.End() arg0 = ctx - return c.inner.ApplyStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.ApplyStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta2ReplicaSets) Create(arg0 context.Context, arg1 *k8s_io_api_apps_v1beta2.ReplicaSet, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_apps_v1beta2.ReplicaSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta2/ReplicaSets", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta2/ReplicaSets/Create", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "ReplicaSets"), go_opentelemetry_io_otel_attribute.String("kind", "ReplicaSet"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta2ReplicaSets) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta2/ReplicaSets", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta2/ReplicaSets/Delete", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "ReplicaSets"), go_opentelemetry_io_otel_attribute.String("kind", "ReplicaSet"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedAppsV1beta2ReplicaSets) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta2/ReplicaSets", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta2/ReplicaSets/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "ReplicaSets"), go_opentelemetry_io_otel_attribute.String("kind", "ReplicaSet"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedAppsV1beta2ReplicaSets) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_apps_v1beta2.ReplicaSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta2/ReplicaSets", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta2/ReplicaSets/Get", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "ReplicaSets"), go_opentelemetry_io_otel_attribute.String("kind", "ReplicaSet"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta2ReplicaSets) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_apps_v1beta2.ReplicaSetList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta2/ReplicaSets", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta2/ReplicaSets/List", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "ReplicaSets"), go_opentelemetry_io_otel_attribute.String("kind", "ReplicaSet"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta2ReplicaSets) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_apps_v1beta2.ReplicaSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta2/ReplicaSets", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta2/ReplicaSets/Patch", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "ReplicaSets"), go_opentelemetry_io_otel_attribute.String("kind", "ReplicaSet"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta2ReplicaSets) Update(arg0 context.Context, arg1 *k8s_io_api_apps_v1beta2.ReplicaSet, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_apps_v1beta2.ReplicaSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta2/ReplicaSets", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta2/ReplicaSets/Update", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "ReplicaSets"), go_opentelemetry_io_otel_attribute.String("kind", "ReplicaSet"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta2ReplicaSets) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_apps_v1beta2.ReplicaSet, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_apps_v1beta2.ReplicaSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta2/ReplicaSets", - "UpdateStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta2/ReplicaSets/UpdateStatus", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "ReplicaSets"), go_opentelemetry_io_otel_attribute.String("kind", "ReplicaSet"), ) defer span.End() arg0 = ctx - return c.inner.UpdateStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.UpdateStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta2ReplicaSets) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta2/ReplicaSets", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta2/ReplicaSets/Watch", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "ReplicaSets"), go_opentelemetry_io_otel_attribute.String("kind", "ReplicaSet"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedAppsV1beta2StatefulSets wrapper @@ -3763,184 +4619,254 @@ func newAppsV1beta2StatefulSets(inner k8s_io_client_go_kubernetes_typed_apps_v1b func (c *wrappedAppsV1beta2StatefulSets) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_apps_v1beta2.StatefulSetApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_apps_v1beta2.StatefulSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta2/StatefulSets", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta2/StatefulSets/Apply", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "StatefulSets"), go_opentelemetry_io_otel_attribute.String("kind", "StatefulSet"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta2StatefulSets) ApplyScale(arg0 context.Context, arg1 string, arg2 *k8s_io_client_go_applyconfigurations_apps_v1beta2.ScaleApplyConfiguration, arg3 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_apps_v1beta2.Scale, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta2/StatefulSets", - "ApplyScale", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta2/StatefulSets/ApplyScale", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "StatefulSets"), go_opentelemetry_io_otel_attribute.String("kind", "StatefulSet"), ) defer span.End() arg0 = ctx - return c.inner.ApplyScale(arg0, arg1, arg2, arg3) + ret0, ret1 := c.inner.ApplyScale(arg0, arg1, arg2, arg3) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta2StatefulSets) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_apps_v1beta2.StatefulSetApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_apps_v1beta2.StatefulSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta2/StatefulSets", - "ApplyStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta2/StatefulSets/ApplyStatus", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "StatefulSets"), go_opentelemetry_io_otel_attribute.String("kind", "StatefulSet"), ) defer span.End() arg0 = ctx - return c.inner.ApplyStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.ApplyStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta2StatefulSets) Create(arg0 context.Context, arg1 *k8s_io_api_apps_v1beta2.StatefulSet, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_apps_v1beta2.StatefulSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta2/StatefulSets", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta2/StatefulSets/Create", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "StatefulSets"), go_opentelemetry_io_otel_attribute.String("kind", "StatefulSet"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta2StatefulSets) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta2/StatefulSets", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta2/StatefulSets/Delete", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "StatefulSets"), go_opentelemetry_io_otel_attribute.String("kind", "StatefulSet"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedAppsV1beta2StatefulSets) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta2/StatefulSets", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta2/StatefulSets/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "StatefulSets"), go_opentelemetry_io_otel_attribute.String("kind", "StatefulSet"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedAppsV1beta2StatefulSets) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_apps_v1beta2.StatefulSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta2/StatefulSets", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta2/StatefulSets/Get", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "StatefulSets"), go_opentelemetry_io_otel_attribute.String("kind", "StatefulSet"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta2StatefulSets) GetScale(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_apps_v1beta2.Scale, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta2/StatefulSets", - "GetScale", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta2/StatefulSets/GetScale", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "StatefulSets"), go_opentelemetry_io_otel_attribute.String("kind", "StatefulSet"), ) defer span.End() arg0 = ctx - return c.inner.GetScale(arg0, arg1, arg2) + ret0, ret1 := c.inner.GetScale(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta2StatefulSets) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_apps_v1beta2.StatefulSetList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta2/StatefulSets", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta2/StatefulSets/List", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "StatefulSets"), go_opentelemetry_io_otel_attribute.String("kind", "StatefulSet"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta2StatefulSets) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_apps_v1beta2.StatefulSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta2/StatefulSets", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta2/StatefulSets/Patch", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "StatefulSets"), go_opentelemetry_io_otel_attribute.String("kind", "StatefulSet"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta2StatefulSets) Update(arg0 context.Context, arg1 *k8s_io_api_apps_v1beta2.StatefulSet, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_apps_v1beta2.StatefulSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta2/StatefulSets", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta2/StatefulSets/Update", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "StatefulSets"), go_opentelemetry_io_otel_attribute.String("kind", "StatefulSet"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta2StatefulSets) UpdateScale(arg0 context.Context, arg1 string, arg2 *k8s_io_api_apps_v1beta2.Scale, arg3 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_apps_v1beta2.Scale, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta2/StatefulSets", - "UpdateScale", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta2/StatefulSets/UpdateScale", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "StatefulSets"), go_opentelemetry_io_otel_attribute.String("kind", "StatefulSet"), ) defer span.End() arg0 = ctx - return c.inner.UpdateScale(arg0, arg1, arg2, arg3) + ret0, ret1 := c.inner.UpdateScale(arg0, arg1, arg2, arg3) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta2StatefulSets) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_apps_v1beta2.StatefulSet, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_apps_v1beta2.StatefulSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta2/StatefulSets", - "UpdateStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta2/StatefulSets/UpdateStatus", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "StatefulSets"), go_opentelemetry_io_otel_attribute.String("kind", "StatefulSet"), ) defer span.End() arg0 = ctx - return c.inner.UpdateStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.UpdateStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAppsV1beta2StatefulSets) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AppsV1beta2/StatefulSets", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE AppsV1beta2/StatefulSets/Watch", go_opentelemetry_io_otel_attribute.String("client", "AppsV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "StatefulSets"), go_opentelemetry_io_otel_attribute.String("kind", "StatefulSet"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedAuthenticationV1TokenReviews wrapper @@ -3954,15 +4880,20 @@ func newAuthenticationV1TokenReviews(inner k8s_io_client_go_kubernetes_typed_aut func (c *wrappedAuthenticationV1TokenReviews) Create(arg0 context.Context, arg1 *k8s_io_api_authentication_v1.TokenReview, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_authentication_v1.TokenReview, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AuthenticationV1/TokenReviews", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE AuthenticationV1/TokenReviews/Create", go_opentelemetry_io_otel_attribute.String("client", "AuthenticationV1"), go_opentelemetry_io_otel_attribute.String("resource", "TokenReviews"), go_opentelemetry_io_otel_attribute.String("kind", "TokenReview"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedAuthenticationV1beta1TokenReviews wrapper @@ -3976,15 +4907,20 @@ func newAuthenticationV1beta1TokenReviews(inner k8s_io_client_go_kubernetes_type func (c *wrappedAuthenticationV1beta1TokenReviews) Create(arg0 context.Context, arg1 *k8s_io_api_authentication_v1beta1.TokenReview, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_authentication_v1beta1.TokenReview, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AuthenticationV1beta1/TokenReviews", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE AuthenticationV1beta1/TokenReviews/Create", go_opentelemetry_io_otel_attribute.String("client", "AuthenticationV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "TokenReviews"), go_opentelemetry_io_otel_attribute.String("kind", "TokenReview"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedAuthorizationV1LocalSubjectAccessReviews wrapper @@ -3998,15 +4934,20 @@ func newAuthorizationV1LocalSubjectAccessReviews(inner k8s_io_client_go_kubernet func (c *wrappedAuthorizationV1LocalSubjectAccessReviews) Create(arg0 context.Context, arg1 *k8s_io_api_authorization_v1.LocalSubjectAccessReview, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_authorization_v1.LocalSubjectAccessReview, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AuthorizationV1/LocalSubjectAccessReviews", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE AuthorizationV1/LocalSubjectAccessReviews/Create", go_opentelemetry_io_otel_attribute.String("client", "AuthorizationV1"), go_opentelemetry_io_otel_attribute.String("resource", "LocalSubjectAccessReviews"), go_opentelemetry_io_otel_attribute.String("kind", "LocalSubjectAccessReview"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedAuthorizationV1SelfSubjectAccessReviews wrapper @@ -4020,15 +4961,20 @@ func newAuthorizationV1SelfSubjectAccessReviews(inner k8s_io_client_go_kubernete func (c *wrappedAuthorizationV1SelfSubjectAccessReviews) Create(arg0 context.Context, arg1 *k8s_io_api_authorization_v1.SelfSubjectAccessReview, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_authorization_v1.SelfSubjectAccessReview, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AuthorizationV1/SelfSubjectAccessReviews", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE AuthorizationV1/SelfSubjectAccessReviews/Create", go_opentelemetry_io_otel_attribute.String("client", "AuthorizationV1"), go_opentelemetry_io_otel_attribute.String("resource", "SelfSubjectAccessReviews"), go_opentelemetry_io_otel_attribute.String("kind", "SelfSubjectAccessReview"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedAuthorizationV1SelfSubjectRulesReviews wrapper @@ -4042,15 +4988,20 @@ func newAuthorizationV1SelfSubjectRulesReviews(inner k8s_io_client_go_kubernetes func (c *wrappedAuthorizationV1SelfSubjectRulesReviews) Create(arg0 context.Context, arg1 *k8s_io_api_authorization_v1.SelfSubjectRulesReview, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_authorization_v1.SelfSubjectRulesReview, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AuthorizationV1/SelfSubjectRulesReviews", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE AuthorizationV1/SelfSubjectRulesReviews/Create", go_opentelemetry_io_otel_attribute.String("client", "AuthorizationV1"), go_opentelemetry_io_otel_attribute.String("resource", "SelfSubjectRulesReviews"), go_opentelemetry_io_otel_attribute.String("kind", "SelfSubjectRulesReview"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedAuthorizationV1SubjectAccessReviews wrapper @@ -4064,15 +5015,20 @@ func newAuthorizationV1SubjectAccessReviews(inner k8s_io_client_go_kubernetes_ty func (c *wrappedAuthorizationV1SubjectAccessReviews) Create(arg0 context.Context, arg1 *k8s_io_api_authorization_v1.SubjectAccessReview, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_authorization_v1.SubjectAccessReview, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AuthorizationV1/SubjectAccessReviews", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE AuthorizationV1/SubjectAccessReviews/Create", go_opentelemetry_io_otel_attribute.String("client", "AuthorizationV1"), go_opentelemetry_io_otel_attribute.String("resource", "SubjectAccessReviews"), go_opentelemetry_io_otel_attribute.String("kind", "SubjectAccessReview"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedAuthorizationV1beta1LocalSubjectAccessReviews wrapper @@ -4086,15 +5042,20 @@ func newAuthorizationV1beta1LocalSubjectAccessReviews(inner k8s_io_client_go_kub func (c *wrappedAuthorizationV1beta1LocalSubjectAccessReviews) Create(arg0 context.Context, arg1 *k8s_io_api_authorization_v1beta1.LocalSubjectAccessReview, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_authorization_v1beta1.LocalSubjectAccessReview, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AuthorizationV1beta1/LocalSubjectAccessReviews", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE AuthorizationV1beta1/LocalSubjectAccessReviews/Create", go_opentelemetry_io_otel_attribute.String("client", "AuthorizationV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "LocalSubjectAccessReviews"), go_opentelemetry_io_otel_attribute.String("kind", "LocalSubjectAccessReview"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedAuthorizationV1beta1SelfSubjectAccessReviews wrapper @@ -4108,15 +5069,20 @@ func newAuthorizationV1beta1SelfSubjectAccessReviews(inner k8s_io_client_go_kube func (c *wrappedAuthorizationV1beta1SelfSubjectAccessReviews) Create(arg0 context.Context, arg1 *k8s_io_api_authorization_v1beta1.SelfSubjectAccessReview, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_authorization_v1beta1.SelfSubjectAccessReview, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AuthorizationV1beta1/SelfSubjectAccessReviews", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE AuthorizationV1beta1/SelfSubjectAccessReviews/Create", go_opentelemetry_io_otel_attribute.String("client", "AuthorizationV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "SelfSubjectAccessReviews"), go_opentelemetry_io_otel_attribute.String("kind", "SelfSubjectAccessReview"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedAuthorizationV1beta1SelfSubjectRulesReviews wrapper @@ -4130,15 +5096,20 @@ func newAuthorizationV1beta1SelfSubjectRulesReviews(inner k8s_io_client_go_kuber func (c *wrappedAuthorizationV1beta1SelfSubjectRulesReviews) Create(arg0 context.Context, arg1 *k8s_io_api_authorization_v1beta1.SelfSubjectRulesReview, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_authorization_v1beta1.SelfSubjectRulesReview, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AuthorizationV1beta1/SelfSubjectRulesReviews", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE AuthorizationV1beta1/SelfSubjectRulesReviews/Create", go_opentelemetry_io_otel_attribute.String("client", "AuthorizationV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "SelfSubjectRulesReviews"), go_opentelemetry_io_otel_attribute.String("kind", "SelfSubjectRulesReview"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedAuthorizationV1beta1SubjectAccessReviews wrapper @@ -4152,15 +5123,20 @@ func newAuthorizationV1beta1SubjectAccessReviews(inner k8s_io_client_go_kubernet func (c *wrappedAuthorizationV1beta1SubjectAccessReviews) Create(arg0 context.Context, arg1 *k8s_io_api_authorization_v1beta1.SubjectAccessReview, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_authorization_v1beta1.SubjectAccessReview, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AuthorizationV1beta1/SubjectAccessReviews", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE AuthorizationV1beta1/SubjectAccessReviews/Create", go_opentelemetry_io_otel_attribute.String("client", "AuthorizationV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "SubjectAccessReviews"), go_opentelemetry_io_otel_attribute.String("kind", "SubjectAccessReview"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedAutoscalingV1HorizontalPodAutoscalers wrapper @@ -4174,145 +5150,200 @@ func newAutoscalingV1HorizontalPodAutoscalers(inner k8s_io_client_go_kubernetes_ func (c *wrappedAutoscalingV1HorizontalPodAutoscalers) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_autoscaling_v1.HorizontalPodAutoscalerApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_autoscaling_v1.HorizontalPodAutoscaler, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AutoscalingV1/HorizontalPodAutoscalers", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE AutoscalingV1/HorizontalPodAutoscalers/Apply", go_opentelemetry_io_otel_attribute.String("client", "AutoscalingV1"), go_opentelemetry_io_otel_attribute.String("resource", "HorizontalPodAutoscalers"), go_opentelemetry_io_otel_attribute.String("kind", "HorizontalPodAutoscaler"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAutoscalingV1HorizontalPodAutoscalers) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_autoscaling_v1.HorizontalPodAutoscalerApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_autoscaling_v1.HorizontalPodAutoscaler, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AutoscalingV1/HorizontalPodAutoscalers", - "ApplyStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE AutoscalingV1/HorizontalPodAutoscalers/ApplyStatus", go_opentelemetry_io_otel_attribute.String("client", "AutoscalingV1"), go_opentelemetry_io_otel_attribute.String("resource", "HorizontalPodAutoscalers"), go_opentelemetry_io_otel_attribute.String("kind", "HorizontalPodAutoscaler"), ) defer span.End() arg0 = ctx - return c.inner.ApplyStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.ApplyStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAutoscalingV1HorizontalPodAutoscalers) Create(arg0 context.Context, arg1 *k8s_io_api_autoscaling_v1.HorizontalPodAutoscaler, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_autoscaling_v1.HorizontalPodAutoscaler, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AutoscalingV1/HorizontalPodAutoscalers", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE AutoscalingV1/HorizontalPodAutoscalers/Create", go_opentelemetry_io_otel_attribute.String("client", "AutoscalingV1"), go_opentelemetry_io_otel_attribute.String("resource", "HorizontalPodAutoscalers"), go_opentelemetry_io_otel_attribute.String("kind", "HorizontalPodAutoscaler"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAutoscalingV1HorizontalPodAutoscalers) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AutoscalingV1/HorizontalPodAutoscalers", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE AutoscalingV1/HorizontalPodAutoscalers/Delete", go_opentelemetry_io_otel_attribute.String("client", "AutoscalingV1"), go_opentelemetry_io_otel_attribute.String("resource", "HorizontalPodAutoscalers"), go_opentelemetry_io_otel_attribute.String("kind", "HorizontalPodAutoscaler"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedAutoscalingV1HorizontalPodAutoscalers) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AutoscalingV1/HorizontalPodAutoscalers", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE AutoscalingV1/HorizontalPodAutoscalers/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "AutoscalingV1"), go_opentelemetry_io_otel_attribute.String("resource", "HorizontalPodAutoscalers"), go_opentelemetry_io_otel_attribute.String("kind", "HorizontalPodAutoscaler"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedAutoscalingV1HorizontalPodAutoscalers) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_autoscaling_v1.HorizontalPodAutoscaler, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AutoscalingV1/HorizontalPodAutoscalers", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE AutoscalingV1/HorizontalPodAutoscalers/Get", go_opentelemetry_io_otel_attribute.String("client", "AutoscalingV1"), go_opentelemetry_io_otel_attribute.String("resource", "HorizontalPodAutoscalers"), go_opentelemetry_io_otel_attribute.String("kind", "HorizontalPodAutoscaler"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAutoscalingV1HorizontalPodAutoscalers) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_autoscaling_v1.HorizontalPodAutoscalerList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AutoscalingV1/HorizontalPodAutoscalers", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE AutoscalingV1/HorizontalPodAutoscalers/List", go_opentelemetry_io_otel_attribute.String("client", "AutoscalingV1"), go_opentelemetry_io_otel_attribute.String("resource", "HorizontalPodAutoscalers"), go_opentelemetry_io_otel_attribute.String("kind", "HorizontalPodAutoscaler"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAutoscalingV1HorizontalPodAutoscalers) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_autoscaling_v1.HorizontalPodAutoscaler, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AutoscalingV1/HorizontalPodAutoscalers", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE AutoscalingV1/HorizontalPodAutoscalers/Patch", go_opentelemetry_io_otel_attribute.String("client", "AutoscalingV1"), go_opentelemetry_io_otel_attribute.String("resource", "HorizontalPodAutoscalers"), go_opentelemetry_io_otel_attribute.String("kind", "HorizontalPodAutoscaler"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAutoscalingV1HorizontalPodAutoscalers) Update(arg0 context.Context, arg1 *k8s_io_api_autoscaling_v1.HorizontalPodAutoscaler, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_autoscaling_v1.HorizontalPodAutoscaler, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AutoscalingV1/HorizontalPodAutoscalers", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE AutoscalingV1/HorizontalPodAutoscalers/Update", go_opentelemetry_io_otel_attribute.String("client", "AutoscalingV1"), go_opentelemetry_io_otel_attribute.String("resource", "HorizontalPodAutoscalers"), go_opentelemetry_io_otel_attribute.String("kind", "HorizontalPodAutoscaler"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAutoscalingV1HorizontalPodAutoscalers) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_autoscaling_v1.HorizontalPodAutoscaler, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_autoscaling_v1.HorizontalPodAutoscaler, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AutoscalingV1/HorizontalPodAutoscalers", - "UpdateStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE AutoscalingV1/HorizontalPodAutoscalers/UpdateStatus", go_opentelemetry_io_otel_attribute.String("client", "AutoscalingV1"), go_opentelemetry_io_otel_attribute.String("resource", "HorizontalPodAutoscalers"), go_opentelemetry_io_otel_attribute.String("kind", "HorizontalPodAutoscaler"), ) defer span.End() arg0 = ctx - return c.inner.UpdateStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.UpdateStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAutoscalingV1HorizontalPodAutoscalers) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AutoscalingV1/HorizontalPodAutoscalers", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE AutoscalingV1/HorizontalPodAutoscalers/Watch", go_opentelemetry_io_otel_attribute.String("client", "AutoscalingV1"), go_opentelemetry_io_otel_attribute.String("resource", "HorizontalPodAutoscalers"), go_opentelemetry_io_otel_attribute.String("kind", "HorizontalPodAutoscaler"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedAutoscalingV2HorizontalPodAutoscalers wrapper @@ -4326,145 +5357,200 @@ func newAutoscalingV2HorizontalPodAutoscalers(inner k8s_io_client_go_kubernetes_ func (c *wrappedAutoscalingV2HorizontalPodAutoscalers) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_autoscaling_v2.HorizontalPodAutoscalerApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_autoscaling_v2.HorizontalPodAutoscaler, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AutoscalingV2/HorizontalPodAutoscalers", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE AutoscalingV2/HorizontalPodAutoscalers/Apply", go_opentelemetry_io_otel_attribute.String("client", "AutoscalingV2"), go_opentelemetry_io_otel_attribute.String("resource", "HorizontalPodAutoscalers"), go_opentelemetry_io_otel_attribute.String("kind", "HorizontalPodAutoscaler"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAutoscalingV2HorizontalPodAutoscalers) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_autoscaling_v2.HorizontalPodAutoscalerApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_autoscaling_v2.HorizontalPodAutoscaler, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AutoscalingV2/HorizontalPodAutoscalers", - "ApplyStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE AutoscalingV2/HorizontalPodAutoscalers/ApplyStatus", go_opentelemetry_io_otel_attribute.String("client", "AutoscalingV2"), go_opentelemetry_io_otel_attribute.String("resource", "HorizontalPodAutoscalers"), go_opentelemetry_io_otel_attribute.String("kind", "HorizontalPodAutoscaler"), ) defer span.End() arg0 = ctx - return c.inner.ApplyStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.ApplyStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAutoscalingV2HorizontalPodAutoscalers) Create(arg0 context.Context, arg1 *k8s_io_api_autoscaling_v2.HorizontalPodAutoscaler, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_autoscaling_v2.HorizontalPodAutoscaler, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AutoscalingV2/HorizontalPodAutoscalers", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE AutoscalingV2/HorizontalPodAutoscalers/Create", go_opentelemetry_io_otel_attribute.String("client", "AutoscalingV2"), go_opentelemetry_io_otel_attribute.String("resource", "HorizontalPodAutoscalers"), go_opentelemetry_io_otel_attribute.String("kind", "HorizontalPodAutoscaler"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAutoscalingV2HorizontalPodAutoscalers) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AutoscalingV2/HorizontalPodAutoscalers", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE AutoscalingV2/HorizontalPodAutoscalers/Delete", go_opentelemetry_io_otel_attribute.String("client", "AutoscalingV2"), go_opentelemetry_io_otel_attribute.String("resource", "HorizontalPodAutoscalers"), go_opentelemetry_io_otel_attribute.String("kind", "HorizontalPodAutoscaler"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedAutoscalingV2HorizontalPodAutoscalers) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AutoscalingV2/HorizontalPodAutoscalers", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE AutoscalingV2/HorizontalPodAutoscalers/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "AutoscalingV2"), go_opentelemetry_io_otel_attribute.String("resource", "HorizontalPodAutoscalers"), go_opentelemetry_io_otel_attribute.String("kind", "HorizontalPodAutoscaler"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedAutoscalingV2HorizontalPodAutoscalers) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_autoscaling_v2.HorizontalPodAutoscaler, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AutoscalingV2/HorizontalPodAutoscalers", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE AutoscalingV2/HorizontalPodAutoscalers/Get", go_opentelemetry_io_otel_attribute.String("client", "AutoscalingV2"), go_opentelemetry_io_otel_attribute.String("resource", "HorizontalPodAutoscalers"), go_opentelemetry_io_otel_attribute.String("kind", "HorizontalPodAutoscaler"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAutoscalingV2HorizontalPodAutoscalers) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_autoscaling_v2.HorizontalPodAutoscalerList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AutoscalingV2/HorizontalPodAutoscalers", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE AutoscalingV2/HorizontalPodAutoscalers/List", go_opentelemetry_io_otel_attribute.String("client", "AutoscalingV2"), go_opentelemetry_io_otel_attribute.String("resource", "HorizontalPodAutoscalers"), go_opentelemetry_io_otel_attribute.String("kind", "HorizontalPodAutoscaler"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAutoscalingV2HorizontalPodAutoscalers) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_autoscaling_v2.HorizontalPodAutoscaler, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AutoscalingV2/HorizontalPodAutoscalers", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE AutoscalingV2/HorizontalPodAutoscalers/Patch", go_opentelemetry_io_otel_attribute.String("client", "AutoscalingV2"), go_opentelemetry_io_otel_attribute.String("resource", "HorizontalPodAutoscalers"), go_opentelemetry_io_otel_attribute.String("kind", "HorizontalPodAutoscaler"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAutoscalingV2HorizontalPodAutoscalers) Update(arg0 context.Context, arg1 *k8s_io_api_autoscaling_v2.HorizontalPodAutoscaler, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_autoscaling_v2.HorizontalPodAutoscaler, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AutoscalingV2/HorizontalPodAutoscalers", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE AutoscalingV2/HorizontalPodAutoscalers/Update", go_opentelemetry_io_otel_attribute.String("client", "AutoscalingV2"), go_opentelemetry_io_otel_attribute.String("resource", "HorizontalPodAutoscalers"), go_opentelemetry_io_otel_attribute.String("kind", "HorizontalPodAutoscaler"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAutoscalingV2HorizontalPodAutoscalers) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_autoscaling_v2.HorizontalPodAutoscaler, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_autoscaling_v2.HorizontalPodAutoscaler, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AutoscalingV2/HorizontalPodAutoscalers", - "UpdateStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE AutoscalingV2/HorizontalPodAutoscalers/UpdateStatus", go_opentelemetry_io_otel_attribute.String("client", "AutoscalingV2"), go_opentelemetry_io_otel_attribute.String("resource", "HorizontalPodAutoscalers"), go_opentelemetry_io_otel_attribute.String("kind", "HorizontalPodAutoscaler"), ) defer span.End() arg0 = ctx - return c.inner.UpdateStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.UpdateStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAutoscalingV2HorizontalPodAutoscalers) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AutoscalingV2/HorizontalPodAutoscalers", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE AutoscalingV2/HorizontalPodAutoscalers/Watch", go_opentelemetry_io_otel_attribute.String("client", "AutoscalingV2"), go_opentelemetry_io_otel_attribute.String("resource", "HorizontalPodAutoscalers"), go_opentelemetry_io_otel_attribute.String("kind", "HorizontalPodAutoscaler"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedAutoscalingV2beta1HorizontalPodAutoscalers wrapper @@ -4478,145 +5564,200 @@ func newAutoscalingV2beta1HorizontalPodAutoscalers(inner k8s_io_client_go_kubern func (c *wrappedAutoscalingV2beta1HorizontalPodAutoscalers) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_autoscaling_v2beta1.HorizontalPodAutoscalerApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_autoscaling_v2beta1.HorizontalPodAutoscaler, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AutoscalingV2beta1/HorizontalPodAutoscalers", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE AutoscalingV2beta1/HorizontalPodAutoscalers/Apply", go_opentelemetry_io_otel_attribute.String("client", "AutoscalingV2beta1"), go_opentelemetry_io_otel_attribute.String("resource", "HorizontalPodAutoscalers"), go_opentelemetry_io_otel_attribute.String("kind", "HorizontalPodAutoscaler"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAutoscalingV2beta1HorizontalPodAutoscalers) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_autoscaling_v2beta1.HorizontalPodAutoscalerApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_autoscaling_v2beta1.HorizontalPodAutoscaler, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AutoscalingV2beta1/HorizontalPodAutoscalers", - "ApplyStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE AutoscalingV2beta1/HorizontalPodAutoscalers/ApplyStatus", go_opentelemetry_io_otel_attribute.String("client", "AutoscalingV2beta1"), go_opentelemetry_io_otel_attribute.String("resource", "HorizontalPodAutoscalers"), go_opentelemetry_io_otel_attribute.String("kind", "HorizontalPodAutoscaler"), ) defer span.End() arg0 = ctx - return c.inner.ApplyStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.ApplyStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAutoscalingV2beta1HorizontalPodAutoscalers) Create(arg0 context.Context, arg1 *k8s_io_api_autoscaling_v2beta1.HorizontalPodAutoscaler, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_autoscaling_v2beta1.HorizontalPodAutoscaler, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AutoscalingV2beta1/HorizontalPodAutoscalers", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE AutoscalingV2beta1/HorizontalPodAutoscalers/Create", go_opentelemetry_io_otel_attribute.String("client", "AutoscalingV2beta1"), go_opentelemetry_io_otel_attribute.String("resource", "HorizontalPodAutoscalers"), go_opentelemetry_io_otel_attribute.String("kind", "HorizontalPodAutoscaler"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAutoscalingV2beta1HorizontalPodAutoscalers) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AutoscalingV2beta1/HorizontalPodAutoscalers", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE AutoscalingV2beta1/HorizontalPodAutoscalers/Delete", go_opentelemetry_io_otel_attribute.String("client", "AutoscalingV2beta1"), go_opentelemetry_io_otel_attribute.String("resource", "HorizontalPodAutoscalers"), go_opentelemetry_io_otel_attribute.String("kind", "HorizontalPodAutoscaler"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedAutoscalingV2beta1HorizontalPodAutoscalers) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AutoscalingV2beta1/HorizontalPodAutoscalers", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE AutoscalingV2beta1/HorizontalPodAutoscalers/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "AutoscalingV2beta1"), go_opentelemetry_io_otel_attribute.String("resource", "HorizontalPodAutoscalers"), go_opentelemetry_io_otel_attribute.String("kind", "HorizontalPodAutoscaler"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedAutoscalingV2beta1HorizontalPodAutoscalers) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_autoscaling_v2beta1.HorizontalPodAutoscaler, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AutoscalingV2beta1/HorizontalPodAutoscalers", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE AutoscalingV2beta1/HorizontalPodAutoscalers/Get", go_opentelemetry_io_otel_attribute.String("client", "AutoscalingV2beta1"), go_opentelemetry_io_otel_attribute.String("resource", "HorizontalPodAutoscalers"), go_opentelemetry_io_otel_attribute.String("kind", "HorizontalPodAutoscaler"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAutoscalingV2beta1HorizontalPodAutoscalers) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_autoscaling_v2beta1.HorizontalPodAutoscalerList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AutoscalingV2beta1/HorizontalPodAutoscalers", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE AutoscalingV2beta1/HorizontalPodAutoscalers/List", go_opentelemetry_io_otel_attribute.String("client", "AutoscalingV2beta1"), go_opentelemetry_io_otel_attribute.String("resource", "HorizontalPodAutoscalers"), go_opentelemetry_io_otel_attribute.String("kind", "HorizontalPodAutoscaler"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAutoscalingV2beta1HorizontalPodAutoscalers) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_autoscaling_v2beta1.HorizontalPodAutoscaler, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AutoscalingV2beta1/HorizontalPodAutoscalers", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE AutoscalingV2beta1/HorizontalPodAutoscalers/Patch", go_opentelemetry_io_otel_attribute.String("client", "AutoscalingV2beta1"), go_opentelemetry_io_otel_attribute.String("resource", "HorizontalPodAutoscalers"), go_opentelemetry_io_otel_attribute.String("kind", "HorizontalPodAutoscaler"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAutoscalingV2beta1HorizontalPodAutoscalers) Update(arg0 context.Context, arg1 *k8s_io_api_autoscaling_v2beta1.HorizontalPodAutoscaler, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_autoscaling_v2beta1.HorizontalPodAutoscaler, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AutoscalingV2beta1/HorizontalPodAutoscalers", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE AutoscalingV2beta1/HorizontalPodAutoscalers/Update", go_opentelemetry_io_otel_attribute.String("client", "AutoscalingV2beta1"), go_opentelemetry_io_otel_attribute.String("resource", "HorizontalPodAutoscalers"), go_opentelemetry_io_otel_attribute.String("kind", "HorizontalPodAutoscaler"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAutoscalingV2beta1HorizontalPodAutoscalers) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_autoscaling_v2beta1.HorizontalPodAutoscaler, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_autoscaling_v2beta1.HorizontalPodAutoscaler, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AutoscalingV2beta1/HorizontalPodAutoscalers", - "UpdateStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE AutoscalingV2beta1/HorizontalPodAutoscalers/UpdateStatus", go_opentelemetry_io_otel_attribute.String("client", "AutoscalingV2beta1"), go_opentelemetry_io_otel_attribute.String("resource", "HorizontalPodAutoscalers"), go_opentelemetry_io_otel_attribute.String("kind", "HorizontalPodAutoscaler"), ) defer span.End() arg0 = ctx - return c.inner.UpdateStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.UpdateStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAutoscalingV2beta1HorizontalPodAutoscalers) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AutoscalingV2beta1/HorizontalPodAutoscalers", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE AutoscalingV2beta1/HorizontalPodAutoscalers/Watch", go_opentelemetry_io_otel_attribute.String("client", "AutoscalingV2beta1"), go_opentelemetry_io_otel_attribute.String("resource", "HorizontalPodAutoscalers"), go_opentelemetry_io_otel_attribute.String("kind", "HorizontalPodAutoscaler"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedAutoscalingV2beta2HorizontalPodAutoscalers wrapper @@ -4630,145 +5771,200 @@ func newAutoscalingV2beta2HorizontalPodAutoscalers(inner k8s_io_client_go_kubern func (c *wrappedAutoscalingV2beta2HorizontalPodAutoscalers) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_autoscaling_v2beta2.HorizontalPodAutoscalerApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_autoscaling_v2beta2.HorizontalPodAutoscaler, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AutoscalingV2beta2/HorizontalPodAutoscalers", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE AutoscalingV2beta2/HorizontalPodAutoscalers/Apply", go_opentelemetry_io_otel_attribute.String("client", "AutoscalingV2beta2"), go_opentelemetry_io_otel_attribute.String("resource", "HorizontalPodAutoscalers"), go_opentelemetry_io_otel_attribute.String("kind", "HorizontalPodAutoscaler"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAutoscalingV2beta2HorizontalPodAutoscalers) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_autoscaling_v2beta2.HorizontalPodAutoscalerApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_autoscaling_v2beta2.HorizontalPodAutoscaler, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AutoscalingV2beta2/HorizontalPodAutoscalers", - "ApplyStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE AutoscalingV2beta2/HorizontalPodAutoscalers/ApplyStatus", go_opentelemetry_io_otel_attribute.String("client", "AutoscalingV2beta2"), go_opentelemetry_io_otel_attribute.String("resource", "HorizontalPodAutoscalers"), go_opentelemetry_io_otel_attribute.String("kind", "HorizontalPodAutoscaler"), ) defer span.End() arg0 = ctx - return c.inner.ApplyStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.ApplyStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAutoscalingV2beta2HorizontalPodAutoscalers) Create(arg0 context.Context, arg1 *k8s_io_api_autoscaling_v2beta2.HorizontalPodAutoscaler, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_autoscaling_v2beta2.HorizontalPodAutoscaler, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AutoscalingV2beta2/HorizontalPodAutoscalers", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE AutoscalingV2beta2/HorizontalPodAutoscalers/Create", go_opentelemetry_io_otel_attribute.String("client", "AutoscalingV2beta2"), go_opentelemetry_io_otel_attribute.String("resource", "HorizontalPodAutoscalers"), go_opentelemetry_io_otel_attribute.String("kind", "HorizontalPodAutoscaler"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAutoscalingV2beta2HorizontalPodAutoscalers) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AutoscalingV2beta2/HorizontalPodAutoscalers", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE AutoscalingV2beta2/HorizontalPodAutoscalers/Delete", go_opentelemetry_io_otel_attribute.String("client", "AutoscalingV2beta2"), go_opentelemetry_io_otel_attribute.String("resource", "HorizontalPodAutoscalers"), go_opentelemetry_io_otel_attribute.String("kind", "HorizontalPodAutoscaler"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedAutoscalingV2beta2HorizontalPodAutoscalers) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AutoscalingV2beta2/HorizontalPodAutoscalers", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE AutoscalingV2beta2/HorizontalPodAutoscalers/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "AutoscalingV2beta2"), go_opentelemetry_io_otel_attribute.String("resource", "HorizontalPodAutoscalers"), go_opentelemetry_io_otel_attribute.String("kind", "HorizontalPodAutoscaler"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedAutoscalingV2beta2HorizontalPodAutoscalers) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_autoscaling_v2beta2.HorizontalPodAutoscaler, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AutoscalingV2beta2/HorizontalPodAutoscalers", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE AutoscalingV2beta2/HorizontalPodAutoscalers/Get", go_opentelemetry_io_otel_attribute.String("client", "AutoscalingV2beta2"), go_opentelemetry_io_otel_attribute.String("resource", "HorizontalPodAutoscalers"), go_opentelemetry_io_otel_attribute.String("kind", "HorizontalPodAutoscaler"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAutoscalingV2beta2HorizontalPodAutoscalers) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_autoscaling_v2beta2.HorizontalPodAutoscalerList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AutoscalingV2beta2/HorizontalPodAutoscalers", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE AutoscalingV2beta2/HorizontalPodAutoscalers/List", go_opentelemetry_io_otel_attribute.String("client", "AutoscalingV2beta2"), go_opentelemetry_io_otel_attribute.String("resource", "HorizontalPodAutoscalers"), go_opentelemetry_io_otel_attribute.String("kind", "HorizontalPodAutoscaler"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAutoscalingV2beta2HorizontalPodAutoscalers) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_autoscaling_v2beta2.HorizontalPodAutoscaler, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AutoscalingV2beta2/HorizontalPodAutoscalers", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE AutoscalingV2beta2/HorizontalPodAutoscalers/Patch", go_opentelemetry_io_otel_attribute.String("client", "AutoscalingV2beta2"), go_opentelemetry_io_otel_attribute.String("resource", "HorizontalPodAutoscalers"), go_opentelemetry_io_otel_attribute.String("kind", "HorizontalPodAutoscaler"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAutoscalingV2beta2HorizontalPodAutoscalers) Update(arg0 context.Context, arg1 *k8s_io_api_autoscaling_v2beta2.HorizontalPodAutoscaler, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_autoscaling_v2beta2.HorizontalPodAutoscaler, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AutoscalingV2beta2/HorizontalPodAutoscalers", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE AutoscalingV2beta2/HorizontalPodAutoscalers/Update", go_opentelemetry_io_otel_attribute.String("client", "AutoscalingV2beta2"), go_opentelemetry_io_otel_attribute.String("resource", "HorizontalPodAutoscalers"), go_opentelemetry_io_otel_attribute.String("kind", "HorizontalPodAutoscaler"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAutoscalingV2beta2HorizontalPodAutoscalers) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_autoscaling_v2beta2.HorizontalPodAutoscaler, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_autoscaling_v2beta2.HorizontalPodAutoscaler, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AutoscalingV2beta2/HorizontalPodAutoscalers", - "UpdateStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE AutoscalingV2beta2/HorizontalPodAutoscalers/UpdateStatus", go_opentelemetry_io_otel_attribute.String("client", "AutoscalingV2beta2"), go_opentelemetry_io_otel_attribute.String("resource", "HorizontalPodAutoscalers"), go_opentelemetry_io_otel_attribute.String("kind", "HorizontalPodAutoscaler"), ) defer span.End() arg0 = ctx - return c.inner.UpdateStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.UpdateStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedAutoscalingV2beta2HorizontalPodAutoscalers) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "AutoscalingV2beta2/HorizontalPodAutoscalers", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE AutoscalingV2beta2/HorizontalPodAutoscalers/Watch", go_opentelemetry_io_otel_attribute.String("client", "AutoscalingV2beta2"), go_opentelemetry_io_otel_attribute.String("resource", "HorizontalPodAutoscalers"), go_opentelemetry_io_otel_attribute.String("kind", "HorizontalPodAutoscaler"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedBatchV1CronJobs wrapper @@ -4782,145 +5978,200 @@ func newBatchV1CronJobs(inner k8s_io_client_go_kubernetes_typed_batch_v1.CronJob func (c *wrappedBatchV1CronJobs) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_batch_v1.CronJobApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_batch_v1.CronJob, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "BatchV1/CronJobs", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE BatchV1/CronJobs/Apply", go_opentelemetry_io_otel_attribute.String("client", "BatchV1"), go_opentelemetry_io_otel_attribute.String("resource", "CronJobs"), go_opentelemetry_io_otel_attribute.String("kind", "CronJob"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedBatchV1CronJobs) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_batch_v1.CronJobApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_batch_v1.CronJob, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "BatchV1/CronJobs", - "ApplyStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE BatchV1/CronJobs/ApplyStatus", go_opentelemetry_io_otel_attribute.String("client", "BatchV1"), go_opentelemetry_io_otel_attribute.String("resource", "CronJobs"), go_opentelemetry_io_otel_attribute.String("kind", "CronJob"), ) defer span.End() arg0 = ctx - return c.inner.ApplyStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.ApplyStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedBatchV1CronJobs) Create(arg0 context.Context, arg1 *k8s_io_api_batch_v1.CronJob, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_batch_v1.CronJob, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "BatchV1/CronJobs", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE BatchV1/CronJobs/Create", go_opentelemetry_io_otel_attribute.String("client", "BatchV1"), go_opentelemetry_io_otel_attribute.String("resource", "CronJobs"), go_opentelemetry_io_otel_attribute.String("kind", "CronJob"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedBatchV1CronJobs) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "BatchV1/CronJobs", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE BatchV1/CronJobs/Delete", go_opentelemetry_io_otel_attribute.String("client", "BatchV1"), go_opentelemetry_io_otel_attribute.String("resource", "CronJobs"), go_opentelemetry_io_otel_attribute.String("kind", "CronJob"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedBatchV1CronJobs) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "BatchV1/CronJobs", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE BatchV1/CronJobs/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "BatchV1"), go_opentelemetry_io_otel_attribute.String("resource", "CronJobs"), go_opentelemetry_io_otel_attribute.String("kind", "CronJob"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedBatchV1CronJobs) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_batch_v1.CronJob, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "BatchV1/CronJobs", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE BatchV1/CronJobs/Get", go_opentelemetry_io_otel_attribute.String("client", "BatchV1"), go_opentelemetry_io_otel_attribute.String("resource", "CronJobs"), go_opentelemetry_io_otel_attribute.String("kind", "CronJob"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedBatchV1CronJobs) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_batch_v1.CronJobList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "BatchV1/CronJobs", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE BatchV1/CronJobs/List", go_opentelemetry_io_otel_attribute.String("client", "BatchV1"), go_opentelemetry_io_otel_attribute.String("resource", "CronJobs"), go_opentelemetry_io_otel_attribute.String("kind", "CronJob"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedBatchV1CronJobs) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_batch_v1.CronJob, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "BatchV1/CronJobs", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE BatchV1/CronJobs/Patch", go_opentelemetry_io_otel_attribute.String("client", "BatchV1"), go_opentelemetry_io_otel_attribute.String("resource", "CronJobs"), go_opentelemetry_io_otel_attribute.String("kind", "CronJob"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedBatchV1CronJobs) Update(arg0 context.Context, arg1 *k8s_io_api_batch_v1.CronJob, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_batch_v1.CronJob, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "BatchV1/CronJobs", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE BatchV1/CronJobs/Update", go_opentelemetry_io_otel_attribute.String("client", "BatchV1"), go_opentelemetry_io_otel_attribute.String("resource", "CronJobs"), go_opentelemetry_io_otel_attribute.String("kind", "CronJob"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedBatchV1CronJobs) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_batch_v1.CronJob, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_batch_v1.CronJob, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "BatchV1/CronJobs", - "UpdateStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE BatchV1/CronJobs/UpdateStatus", go_opentelemetry_io_otel_attribute.String("client", "BatchV1"), go_opentelemetry_io_otel_attribute.String("resource", "CronJobs"), go_opentelemetry_io_otel_attribute.String("kind", "CronJob"), ) defer span.End() arg0 = ctx - return c.inner.UpdateStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.UpdateStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedBatchV1CronJobs) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "BatchV1/CronJobs", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE BatchV1/CronJobs/Watch", go_opentelemetry_io_otel_attribute.String("client", "BatchV1"), go_opentelemetry_io_otel_attribute.String("resource", "CronJobs"), go_opentelemetry_io_otel_attribute.String("kind", "CronJob"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedBatchV1Jobs wrapper @@ -4934,145 +6185,200 @@ func newBatchV1Jobs(inner k8s_io_client_go_kubernetes_typed_batch_v1.JobInterfac func (c *wrappedBatchV1Jobs) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_batch_v1.JobApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_batch_v1.Job, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "BatchV1/Jobs", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE BatchV1/Jobs/Apply", go_opentelemetry_io_otel_attribute.String("client", "BatchV1"), go_opentelemetry_io_otel_attribute.String("resource", "Jobs"), go_opentelemetry_io_otel_attribute.String("kind", "Job"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedBatchV1Jobs) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_batch_v1.JobApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_batch_v1.Job, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "BatchV1/Jobs", - "ApplyStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE BatchV1/Jobs/ApplyStatus", go_opentelemetry_io_otel_attribute.String("client", "BatchV1"), go_opentelemetry_io_otel_attribute.String("resource", "Jobs"), go_opentelemetry_io_otel_attribute.String("kind", "Job"), ) defer span.End() arg0 = ctx - return c.inner.ApplyStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.ApplyStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedBatchV1Jobs) Create(arg0 context.Context, arg1 *k8s_io_api_batch_v1.Job, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_batch_v1.Job, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "BatchV1/Jobs", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE BatchV1/Jobs/Create", go_opentelemetry_io_otel_attribute.String("client", "BatchV1"), go_opentelemetry_io_otel_attribute.String("resource", "Jobs"), go_opentelemetry_io_otel_attribute.String("kind", "Job"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedBatchV1Jobs) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "BatchV1/Jobs", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE BatchV1/Jobs/Delete", go_opentelemetry_io_otel_attribute.String("client", "BatchV1"), go_opentelemetry_io_otel_attribute.String("resource", "Jobs"), go_opentelemetry_io_otel_attribute.String("kind", "Job"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedBatchV1Jobs) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "BatchV1/Jobs", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE BatchV1/Jobs/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "BatchV1"), go_opentelemetry_io_otel_attribute.String("resource", "Jobs"), go_opentelemetry_io_otel_attribute.String("kind", "Job"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedBatchV1Jobs) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_batch_v1.Job, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "BatchV1/Jobs", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE BatchV1/Jobs/Get", go_opentelemetry_io_otel_attribute.String("client", "BatchV1"), go_opentelemetry_io_otel_attribute.String("resource", "Jobs"), go_opentelemetry_io_otel_attribute.String("kind", "Job"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedBatchV1Jobs) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_batch_v1.JobList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "BatchV1/Jobs", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE BatchV1/Jobs/List", go_opentelemetry_io_otel_attribute.String("client", "BatchV1"), go_opentelemetry_io_otel_attribute.String("resource", "Jobs"), go_opentelemetry_io_otel_attribute.String("kind", "Job"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedBatchV1Jobs) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_batch_v1.Job, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "BatchV1/Jobs", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE BatchV1/Jobs/Patch", go_opentelemetry_io_otel_attribute.String("client", "BatchV1"), go_opentelemetry_io_otel_attribute.String("resource", "Jobs"), go_opentelemetry_io_otel_attribute.String("kind", "Job"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedBatchV1Jobs) Update(arg0 context.Context, arg1 *k8s_io_api_batch_v1.Job, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_batch_v1.Job, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "BatchV1/Jobs", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE BatchV1/Jobs/Update", go_opentelemetry_io_otel_attribute.String("client", "BatchV1"), go_opentelemetry_io_otel_attribute.String("resource", "Jobs"), go_opentelemetry_io_otel_attribute.String("kind", "Job"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedBatchV1Jobs) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_batch_v1.Job, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_batch_v1.Job, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "BatchV1/Jobs", - "UpdateStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE BatchV1/Jobs/UpdateStatus", go_opentelemetry_io_otel_attribute.String("client", "BatchV1"), go_opentelemetry_io_otel_attribute.String("resource", "Jobs"), go_opentelemetry_io_otel_attribute.String("kind", "Job"), ) defer span.End() arg0 = ctx - return c.inner.UpdateStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.UpdateStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedBatchV1Jobs) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "BatchV1/Jobs", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE BatchV1/Jobs/Watch", go_opentelemetry_io_otel_attribute.String("client", "BatchV1"), go_opentelemetry_io_otel_attribute.String("resource", "Jobs"), go_opentelemetry_io_otel_attribute.String("kind", "Job"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedBatchV1beta1CronJobs wrapper @@ -5086,145 +6392,200 @@ func newBatchV1beta1CronJobs(inner k8s_io_client_go_kubernetes_typed_batch_v1bet func (c *wrappedBatchV1beta1CronJobs) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_batch_v1beta1.CronJobApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_batch_v1beta1.CronJob, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "BatchV1beta1/CronJobs", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE BatchV1beta1/CronJobs/Apply", go_opentelemetry_io_otel_attribute.String("client", "BatchV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "CronJobs"), go_opentelemetry_io_otel_attribute.String("kind", "CronJob"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedBatchV1beta1CronJobs) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_batch_v1beta1.CronJobApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_batch_v1beta1.CronJob, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "BatchV1beta1/CronJobs", - "ApplyStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE BatchV1beta1/CronJobs/ApplyStatus", go_opentelemetry_io_otel_attribute.String("client", "BatchV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "CronJobs"), go_opentelemetry_io_otel_attribute.String("kind", "CronJob"), ) defer span.End() arg0 = ctx - return c.inner.ApplyStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.ApplyStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedBatchV1beta1CronJobs) Create(arg0 context.Context, arg1 *k8s_io_api_batch_v1beta1.CronJob, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_batch_v1beta1.CronJob, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "BatchV1beta1/CronJobs", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE BatchV1beta1/CronJobs/Create", go_opentelemetry_io_otel_attribute.String("client", "BatchV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "CronJobs"), go_opentelemetry_io_otel_attribute.String("kind", "CronJob"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedBatchV1beta1CronJobs) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "BatchV1beta1/CronJobs", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE BatchV1beta1/CronJobs/Delete", go_opentelemetry_io_otel_attribute.String("client", "BatchV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "CronJobs"), go_opentelemetry_io_otel_attribute.String("kind", "CronJob"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedBatchV1beta1CronJobs) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "BatchV1beta1/CronJobs", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE BatchV1beta1/CronJobs/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "BatchV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "CronJobs"), go_opentelemetry_io_otel_attribute.String("kind", "CronJob"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedBatchV1beta1CronJobs) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_batch_v1beta1.CronJob, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "BatchV1beta1/CronJobs", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE BatchV1beta1/CronJobs/Get", go_opentelemetry_io_otel_attribute.String("client", "BatchV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "CronJobs"), go_opentelemetry_io_otel_attribute.String("kind", "CronJob"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedBatchV1beta1CronJobs) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_batch_v1beta1.CronJobList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "BatchV1beta1/CronJobs", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE BatchV1beta1/CronJobs/List", go_opentelemetry_io_otel_attribute.String("client", "BatchV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "CronJobs"), go_opentelemetry_io_otel_attribute.String("kind", "CronJob"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedBatchV1beta1CronJobs) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_batch_v1beta1.CronJob, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "BatchV1beta1/CronJobs", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE BatchV1beta1/CronJobs/Patch", go_opentelemetry_io_otel_attribute.String("client", "BatchV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "CronJobs"), go_opentelemetry_io_otel_attribute.String("kind", "CronJob"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedBatchV1beta1CronJobs) Update(arg0 context.Context, arg1 *k8s_io_api_batch_v1beta1.CronJob, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_batch_v1beta1.CronJob, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "BatchV1beta1/CronJobs", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE BatchV1beta1/CronJobs/Update", go_opentelemetry_io_otel_attribute.String("client", "BatchV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "CronJobs"), go_opentelemetry_io_otel_attribute.String("kind", "CronJob"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedBatchV1beta1CronJobs) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_batch_v1beta1.CronJob, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_batch_v1beta1.CronJob, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "BatchV1beta1/CronJobs", - "UpdateStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE BatchV1beta1/CronJobs/UpdateStatus", go_opentelemetry_io_otel_attribute.String("client", "BatchV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "CronJobs"), go_opentelemetry_io_otel_attribute.String("kind", "CronJob"), ) defer span.End() arg0 = ctx - return c.inner.UpdateStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.UpdateStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedBatchV1beta1CronJobs) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "BatchV1beta1/CronJobs", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE BatchV1beta1/CronJobs/Watch", go_opentelemetry_io_otel_attribute.String("client", "BatchV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "CronJobs"), go_opentelemetry_io_otel_attribute.String("kind", "CronJob"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedCertificatesV1CertificateSigningRequests wrapper @@ -5238,158 +6599,218 @@ func newCertificatesV1CertificateSigningRequests(inner k8s_io_client_go_kubernet func (c *wrappedCertificatesV1CertificateSigningRequests) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_certificates_v1.CertificateSigningRequestApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_certificates_v1.CertificateSigningRequest, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CertificatesV1/CertificateSigningRequests", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE CertificatesV1/CertificateSigningRequests/Apply", go_opentelemetry_io_otel_attribute.String("client", "CertificatesV1"), go_opentelemetry_io_otel_attribute.String("resource", "CertificateSigningRequests"), go_opentelemetry_io_otel_attribute.String("kind", "CertificateSigningRequest"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCertificatesV1CertificateSigningRequests) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_certificates_v1.CertificateSigningRequestApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_certificates_v1.CertificateSigningRequest, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CertificatesV1/CertificateSigningRequests", - "ApplyStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE CertificatesV1/CertificateSigningRequests/ApplyStatus", go_opentelemetry_io_otel_attribute.String("client", "CertificatesV1"), go_opentelemetry_io_otel_attribute.String("resource", "CertificateSigningRequests"), go_opentelemetry_io_otel_attribute.String("kind", "CertificateSigningRequest"), ) defer span.End() arg0 = ctx - return c.inner.ApplyStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.ApplyStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCertificatesV1CertificateSigningRequests) Create(arg0 context.Context, arg1 *k8s_io_api_certificates_v1.CertificateSigningRequest, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_certificates_v1.CertificateSigningRequest, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CertificatesV1/CertificateSigningRequests", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE CertificatesV1/CertificateSigningRequests/Create", go_opentelemetry_io_otel_attribute.String("client", "CertificatesV1"), go_opentelemetry_io_otel_attribute.String("resource", "CertificateSigningRequests"), go_opentelemetry_io_otel_attribute.String("kind", "CertificateSigningRequest"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCertificatesV1CertificateSigningRequests) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CertificatesV1/CertificateSigningRequests", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE CertificatesV1/CertificateSigningRequests/Delete", go_opentelemetry_io_otel_attribute.String("client", "CertificatesV1"), go_opentelemetry_io_otel_attribute.String("resource", "CertificateSigningRequests"), go_opentelemetry_io_otel_attribute.String("kind", "CertificateSigningRequest"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedCertificatesV1CertificateSigningRequests) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CertificatesV1/CertificateSigningRequests", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE CertificatesV1/CertificateSigningRequests/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "CertificatesV1"), go_opentelemetry_io_otel_attribute.String("resource", "CertificateSigningRequests"), go_opentelemetry_io_otel_attribute.String("kind", "CertificateSigningRequest"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedCertificatesV1CertificateSigningRequests) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_certificates_v1.CertificateSigningRequest, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CertificatesV1/CertificateSigningRequests", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE CertificatesV1/CertificateSigningRequests/Get", go_opentelemetry_io_otel_attribute.String("client", "CertificatesV1"), go_opentelemetry_io_otel_attribute.String("resource", "CertificateSigningRequests"), go_opentelemetry_io_otel_attribute.String("kind", "CertificateSigningRequest"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCertificatesV1CertificateSigningRequests) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_certificates_v1.CertificateSigningRequestList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CertificatesV1/CertificateSigningRequests", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE CertificatesV1/CertificateSigningRequests/List", go_opentelemetry_io_otel_attribute.String("client", "CertificatesV1"), go_opentelemetry_io_otel_attribute.String("resource", "CertificateSigningRequests"), go_opentelemetry_io_otel_attribute.String("kind", "CertificateSigningRequest"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCertificatesV1CertificateSigningRequests) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_certificates_v1.CertificateSigningRequest, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CertificatesV1/CertificateSigningRequests", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE CertificatesV1/CertificateSigningRequests/Patch", go_opentelemetry_io_otel_attribute.String("client", "CertificatesV1"), go_opentelemetry_io_otel_attribute.String("resource", "CertificateSigningRequests"), go_opentelemetry_io_otel_attribute.String("kind", "CertificateSigningRequest"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCertificatesV1CertificateSigningRequests) Update(arg0 context.Context, arg1 *k8s_io_api_certificates_v1.CertificateSigningRequest, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_certificates_v1.CertificateSigningRequest, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CertificatesV1/CertificateSigningRequests", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE CertificatesV1/CertificateSigningRequests/Update", go_opentelemetry_io_otel_attribute.String("client", "CertificatesV1"), go_opentelemetry_io_otel_attribute.String("resource", "CertificateSigningRequests"), go_opentelemetry_io_otel_attribute.String("kind", "CertificateSigningRequest"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCertificatesV1CertificateSigningRequests) UpdateApproval(arg0 context.Context, arg1 string, arg2 *k8s_io_api_certificates_v1.CertificateSigningRequest, arg3 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_certificates_v1.CertificateSigningRequest, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CertificatesV1/CertificateSigningRequests", - "UpdateApproval", + "pkg/clients/wrappers/traces/kube", + "KUBE CertificatesV1/CertificateSigningRequests/UpdateApproval", go_opentelemetry_io_otel_attribute.String("client", "CertificatesV1"), go_opentelemetry_io_otel_attribute.String("resource", "CertificateSigningRequests"), go_opentelemetry_io_otel_attribute.String("kind", "CertificateSigningRequest"), ) defer span.End() arg0 = ctx - return c.inner.UpdateApproval(arg0, arg1, arg2, arg3) + ret0, ret1 := c.inner.UpdateApproval(arg0, arg1, arg2, arg3) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCertificatesV1CertificateSigningRequests) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_certificates_v1.CertificateSigningRequest, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_certificates_v1.CertificateSigningRequest, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CertificatesV1/CertificateSigningRequests", - "UpdateStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE CertificatesV1/CertificateSigningRequests/UpdateStatus", go_opentelemetry_io_otel_attribute.String("client", "CertificatesV1"), go_opentelemetry_io_otel_attribute.String("resource", "CertificateSigningRequests"), go_opentelemetry_io_otel_attribute.String("kind", "CertificateSigningRequest"), ) defer span.End() arg0 = ctx - return c.inner.UpdateStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.UpdateStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCertificatesV1CertificateSigningRequests) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CertificatesV1/CertificateSigningRequests", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE CertificatesV1/CertificateSigningRequests/Watch", go_opentelemetry_io_otel_attribute.String("client", "CertificatesV1"), go_opentelemetry_io_otel_attribute.String("resource", "CertificateSigningRequests"), go_opentelemetry_io_otel_attribute.String("kind", "CertificateSigningRequest"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedCertificatesV1beta1CertificateSigningRequests wrapper @@ -5403,158 +6824,218 @@ func newCertificatesV1beta1CertificateSigningRequests(inner k8s_io_client_go_kub func (c *wrappedCertificatesV1beta1CertificateSigningRequests) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_certificates_v1beta1.CertificateSigningRequestApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_certificates_v1beta1.CertificateSigningRequest, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CertificatesV1beta1/CertificateSigningRequests", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE CertificatesV1beta1/CertificateSigningRequests/Apply", go_opentelemetry_io_otel_attribute.String("client", "CertificatesV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "CertificateSigningRequests"), go_opentelemetry_io_otel_attribute.String("kind", "CertificateSigningRequest"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCertificatesV1beta1CertificateSigningRequests) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_certificates_v1beta1.CertificateSigningRequestApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_certificates_v1beta1.CertificateSigningRequest, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CertificatesV1beta1/CertificateSigningRequests", - "ApplyStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE CertificatesV1beta1/CertificateSigningRequests/ApplyStatus", go_opentelemetry_io_otel_attribute.String("client", "CertificatesV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "CertificateSigningRequests"), go_opentelemetry_io_otel_attribute.String("kind", "CertificateSigningRequest"), ) defer span.End() arg0 = ctx - return c.inner.ApplyStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.ApplyStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCertificatesV1beta1CertificateSigningRequests) Create(arg0 context.Context, arg1 *k8s_io_api_certificates_v1beta1.CertificateSigningRequest, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_certificates_v1beta1.CertificateSigningRequest, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CertificatesV1beta1/CertificateSigningRequests", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE CertificatesV1beta1/CertificateSigningRequests/Create", go_opentelemetry_io_otel_attribute.String("client", "CertificatesV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "CertificateSigningRequests"), go_opentelemetry_io_otel_attribute.String("kind", "CertificateSigningRequest"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCertificatesV1beta1CertificateSigningRequests) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CertificatesV1beta1/CertificateSigningRequests", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE CertificatesV1beta1/CertificateSigningRequests/Delete", go_opentelemetry_io_otel_attribute.String("client", "CertificatesV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "CertificateSigningRequests"), go_opentelemetry_io_otel_attribute.String("kind", "CertificateSigningRequest"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedCertificatesV1beta1CertificateSigningRequests) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CertificatesV1beta1/CertificateSigningRequests", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE CertificatesV1beta1/CertificateSigningRequests/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "CertificatesV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "CertificateSigningRequests"), go_opentelemetry_io_otel_attribute.String("kind", "CertificateSigningRequest"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedCertificatesV1beta1CertificateSigningRequests) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_certificates_v1beta1.CertificateSigningRequest, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CertificatesV1beta1/CertificateSigningRequests", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE CertificatesV1beta1/CertificateSigningRequests/Get", go_opentelemetry_io_otel_attribute.String("client", "CertificatesV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "CertificateSigningRequests"), go_opentelemetry_io_otel_attribute.String("kind", "CertificateSigningRequest"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCertificatesV1beta1CertificateSigningRequests) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_certificates_v1beta1.CertificateSigningRequestList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CertificatesV1beta1/CertificateSigningRequests", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE CertificatesV1beta1/CertificateSigningRequests/List", go_opentelemetry_io_otel_attribute.String("client", "CertificatesV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "CertificateSigningRequests"), go_opentelemetry_io_otel_attribute.String("kind", "CertificateSigningRequest"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCertificatesV1beta1CertificateSigningRequests) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_certificates_v1beta1.CertificateSigningRequest, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CertificatesV1beta1/CertificateSigningRequests", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE CertificatesV1beta1/CertificateSigningRequests/Patch", go_opentelemetry_io_otel_attribute.String("client", "CertificatesV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "CertificateSigningRequests"), go_opentelemetry_io_otel_attribute.String("kind", "CertificateSigningRequest"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCertificatesV1beta1CertificateSigningRequests) Update(arg0 context.Context, arg1 *k8s_io_api_certificates_v1beta1.CertificateSigningRequest, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_certificates_v1beta1.CertificateSigningRequest, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CertificatesV1beta1/CertificateSigningRequests", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE CertificatesV1beta1/CertificateSigningRequests/Update", go_opentelemetry_io_otel_attribute.String("client", "CertificatesV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "CertificateSigningRequests"), go_opentelemetry_io_otel_attribute.String("kind", "CertificateSigningRequest"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCertificatesV1beta1CertificateSigningRequests) UpdateApproval(arg0 context.Context, arg1 *k8s_io_api_certificates_v1beta1.CertificateSigningRequest, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_certificates_v1beta1.CertificateSigningRequest, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CertificatesV1beta1/CertificateSigningRequests", - "UpdateApproval", + "pkg/clients/wrappers/traces/kube", + "KUBE CertificatesV1beta1/CertificateSigningRequests/UpdateApproval", go_opentelemetry_io_otel_attribute.String("client", "CertificatesV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "CertificateSigningRequests"), go_opentelemetry_io_otel_attribute.String("kind", "CertificateSigningRequest"), ) defer span.End() arg0 = ctx - return c.inner.UpdateApproval(arg0, arg1, arg2) + ret0, ret1 := c.inner.UpdateApproval(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCertificatesV1beta1CertificateSigningRequests) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_certificates_v1beta1.CertificateSigningRequest, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_certificates_v1beta1.CertificateSigningRequest, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CertificatesV1beta1/CertificateSigningRequests", - "UpdateStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE CertificatesV1beta1/CertificateSigningRequests/UpdateStatus", go_opentelemetry_io_otel_attribute.String("client", "CertificatesV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "CertificateSigningRequests"), go_opentelemetry_io_otel_attribute.String("kind", "CertificateSigningRequest"), ) defer span.End() arg0 = ctx - return c.inner.UpdateStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.UpdateStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCertificatesV1beta1CertificateSigningRequests) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CertificatesV1beta1/CertificateSigningRequests", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE CertificatesV1beta1/CertificateSigningRequests/Watch", go_opentelemetry_io_otel_attribute.String("client", "CertificatesV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "CertificateSigningRequests"), go_opentelemetry_io_otel_attribute.String("kind", "CertificateSigningRequest"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedCoordinationV1Leases wrapper @@ -5568,119 +7049,164 @@ func newCoordinationV1Leases(inner k8s_io_client_go_kubernetes_typed_coordinatio func (c *wrappedCoordinationV1Leases) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_coordination_v1.LeaseApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_coordination_v1.Lease, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoordinationV1/Leases", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE CoordinationV1/Leases/Apply", go_opentelemetry_io_otel_attribute.String("client", "CoordinationV1"), go_opentelemetry_io_otel_attribute.String("resource", "Leases"), go_opentelemetry_io_otel_attribute.String("kind", "Lease"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoordinationV1Leases) Create(arg0 context.Context, arg1 *k8s_io_api_coordination_v1.Lease, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_coordination_v1.Lease, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoordinationV1/Leases", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE CoordinationV1/Leases/Create", go_opentelemetry_io_otel_attribute.String("client", "CoordinationV1"), go_opentelemetry_io_otel_attribute.String("resource", "Leases"), go_opentelemetry_io_otel_attribute.String("kind", "Lease"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoordinationV1Leases) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoordinationV1/Leases", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE CoordinationV1/Leases/Delete", go_opentelemetry_io_otel_attribute.String("client", "CoordinationV1"), go_opentelemetry_io_otel_attribute.String("resource", "Leases"), go_opentelemetry_io_otel_attribute.String("kind", "Lease"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedCoordinationV1Leases) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoordinationV1/Leases", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE CoordinationV1/Leases/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "CoordinationV1"), go_opentelemetry_io_otel_attribute.String("resource", "Leases"), go_opentelemetry_io_otel_attribute.String("kind", "Lease"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedCoordinationV1Leases) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_coordination_v1.Lease, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoordinationV1/Leases", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE CoordinationV1/Leases/Get", go_opentelemetry_io_otel_attribute.String("client", "CoordinationV1"), go_opentelemetry_io_otel_attribute.String("resource", "Leases"), go_opentelemetry_io_otel_attribute.String("kind", "Lease"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoordinationV1Leases) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_coordination_v1.LeaseList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoordinationV1/Leases", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE CoordinationV1/Leases/List", go_opentelemetry_io_otel_attribute.String("client", "CoordinationV1"), go_opentelemetry_io_otel_attribute.String("resource", "Leases"), go_opentelemetry_io_otel_attribute.String("kind", "Lease"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoordinationV1Leases) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_coordination_v1.Lease, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoordinationV1/Leases", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE CoordinationV1/Leases/Patch", go_opentelemetry_io_otel_attribute.String("client", "CoordinationV1"), go_opentelemetry_io_otel_attribute.String("resource", "Leases"), go_opentelemetry_io_otel_attribute.String("kind", "Lease"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoordinationV1Leases) Update(arg0 context.Context, arg1 *k8s_io_api_coordination_v1.Lease, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_coordination_v1.Lease, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoordinationV1/Leases", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE CoordinationV1/Leases/Update", go_opentelemetry_io_otel_attribute.String("client", "CoordinationV1"), go_opentelemetry_io_otel_attribute.String("resource", "Leases"), go_opentelemetry_io_otel_attribute.String("kind", "Lease"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoordinationV1Leases) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoordinationV1/Leases", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE CoordinationV1/Leases/Watch", go_opentelemetry_io_otel_attribute.String("client", "CoordinationV1"), go_opentelemetry_io_otel_attribute.String("resource", "Leases"), go_opentelemetry_io_otel_attribute.String("kind", "Lease"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedCoordinationV1beta1Leases wrapper @@ -5694,119 +7220,164 @@ func newCoordinationV1beta1Leases(inner k8s_io_client_go_kubernetes_typed_coordi func (c *wrappedCoordinationV1beta1Leases) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_coordination_v1beta1.LeaseApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_coordination_v1beta1.Lease, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoordinationV1beta1/Leases", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE CoordinationV1beta1/Leases/Apply", go_opentelemetry_io_otel_attribute.String("client", "CoordinationV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Leases"), go_opentelemetry_io_otel_attribute.String("kind", "Lease"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoordinationV1beta1Leases) Create(arg0 context.Context, arg1 *k8s_io_api_coordination_v1beta1.Lease, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_coordination_v1beta1.Lease, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoordinationV1beta1/Leases", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE CoordinationV1beta1/Leases/Create", go_opentelemetry_io_otel_attribute.String("client", "CoordinationV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Leases"), go_opentelemetry_io_otel_attribute.String("kind", "Lease"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoordinationV1beta1Leases) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoordinationV1beta1/Leases", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE CoordinationV1beta1/Leases/Delete", go_opentelemetry_io_otel_attribute.String("client", "CoordinationV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Leases"), go_opentelemetry_io_otel_attribute.String("kind", "Lease"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedCoordinationV1beta1Leases) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoordinationV1beta1/Leases", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE CoordinationV1beta1/Leases/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "CoordinationV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Leases"), go_opentelemetry_io_otel_attribute.String("kind", "Lease"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedCoordinationV1beta1Leases) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_coordination_v1beta1.Lease, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoordinationV1beta1/Leases", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE CoordinationV1beta1/Leases/Get", go_opentelemetry_io_otel_attribute.String("client", "CoordinationV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Leases"), go_opentelemetry_io_otel_attribute.String("kind", "Lease"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoordinationV1beta1Leases) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_coordination_v1beta1.LeaseList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoordinationV1beta1/Leases", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE CoordinationV1beta1/Leases/List", go_opentelemetry_io_otel_attribute.String("client", "CoordinationV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Leases"), go_opentelemetry_io_otel_attribute.String("kind", "Lease"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoordinationV1beta1Leases) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_coordination_v1beta1.Lease, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoordinationV1beta1/Leases", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE CoordinationV1beta1/Leases/Patch", go_opentelemetry_io_otel_attribute.String("client", "CoordinationV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Leases"), go_opentelemetry_io_otel_attribute.String("kind", "Lease"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoordinationV1beta1Leases) Update(arg0 context.Context, arg1 *k8s_io_api_coordination_v1beta1.Lease, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_coordination_v1beta1.Lease, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoordinationV1beta1/Leases", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE CoordinationV1beta1/Leases/Update", go_opentelemetry_io_otel_attribute.String("client", "CoordinationV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Leases"), go_opentelemetry_io_otel_attribute.String("kind", "Lease"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoordinationV1beta1Leases) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoordinationV1beta1/Leases", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE CoordinationV1beta1/Leases/Watch", go_opentelemetry_io_otel_attribute.String("client", "CoordinationV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Leases"), go_opentelemetry_io_otel_attribute.String("kind", "Lease"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedCoreV1ComponentStatuses wrapper @@ -5820,119 +7391,164 @@ func newCoreV1ComponentStatuses(inner k8s_io_client_go_kubernetes_typed_core_v1. func (c *wrappedCoreV1ComponentStatuses) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_core_v1.ComponentStatusApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_core_v1.ComponentStatus, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/ComponentStatuses", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/ComponentStatuses/Apply", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "ComponentStatuses"), go_opentelemetry_io_otel_attribute.String("kind", "ComponentStatus"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1ComponentStatuses) Create(arg0 context.Context, arg1 *k8s_io_api_core_v1.ComponentStatus, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_core_v1.ComponentStatus, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/ComponentStatuses", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/ComponentStatuses/Create", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "ComponentStatuses"), go_opentelemetry_io_otel_attribute.String("kind", "ComponentStatus"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1ComponentStatuses) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/ComponentStatuses", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/ComponentStatuses/Delete", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "ComponentStatuses"), go_opentelemetry_io_otel_attribute.String("kind", "ComponentStatus"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedCoreV1ComponentStatuses) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/ComponentStatuses", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/ComponentStatuses/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "ComponentStatuses"), go_opentelemetry_io_otel_attribute.String("kind", "ComponentStatus"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedCoreV1ComponentStatuses) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_core_v1.ComponentStatus, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/ComponentStatuses", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/ComponentStatuses/Get", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "ComponentStatuses"), go_opentelemetry_io_otel_attribute.String("kind", "ComponentStatus"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1ComponentStatuses) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_core_v1.ComponentStatusList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/ComponentStatuses", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/ComponentStatuses/List", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "ComponentStatuses"), go_opentelemetry_io_otel_attribute.String("kind", "ComponentStatus"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1ComponentStatuses) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_core_v1.ComponentStatus, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/ComponentStatuses", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/ComponentStatuses/Patch", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "ComponentStatuses"), go_opentelemetry_io_otel_attribute.String("kind", "ComponentStatus"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1ComponentStatuses) Update(arg0 context.Context, arg1 *k8s_io_api_core_v1.ComponentStatus, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_core_v1.ComponentStatus, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/ComponentStatuses", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/ComponentStatuses/Update", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "ComponentStatuses"), go_opentelemetry_io_otel_attribute.String("kind", "ComponentStatus"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1ComponentStatuses) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/ComponentStatuses", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/ComponentStatuses/Watch", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "ComponentStatuses"), go_opentelemetry_io_otel_attribute.String("kind", "ComponentStatus"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedCoreV1ConfigMaps wrapper @@ -5946,119 +7562,164 @@ func newCoreV1ConfigMaps(inner k8s_io_client_go_kubernetes_typed_core_v1.ConfigM func (c *wrappedCoreV1ConfigMaps) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_core_v1.ConfigMapApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_core_v1.ConfigMap, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/ConfigMaps", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/ConfigMaps/Apply", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "ConfigMaps"), go_opentelemetry_io_otel_attribute.String("kind", "ConfigMap"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1ConfigMaps) Create(arg0 context.Context, arg1 *k8s_io_api_core_v1.ConfigMap, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_core_v1.ConfigMap, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/ConfigMaps", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/ConfigMaps/Create", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "ConfigMaps"), go_opentelemetry_io_otel_attribute.String("kind", "ConfigMap"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1ConfigMaps) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/ConfigMaps", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/ConfigMaps/Delete", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "ConfigMaps"), go_opentelemetry_io_otel_attribute.String("kind", "ConfigMap"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedCoreV1ConfigMaps) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/ConfigMaps", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/ConfigMaps/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "ConfigMaps"), go_opentelemetry_io_otel_attribute.String("kind", "ConfigMap"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedCoreV1ConfigMaps) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_core_v1.ConfigMap, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/ConfigMaps", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/ConfigMaps/Get", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "ConfigMaps"), go_opentelemetry_io_otel_attribute.String("kind", "ConfigMap"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1ConfigMaps) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_core_v1.ConfigMapList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/ConfigMaps", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/ConfigMaps/List", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "ConfigMaps"), go_opentelemetry_io_otel_attribute.String("kind", "ConfigMap"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1ConfigMaps) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_core_v1.ConfigMap, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/ConfigMaps", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/ConfigMaps/Patch", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "ConfigMaps"), go_opentelemetry_io_otel_attribute.String("kind", "ConfigMap"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1ConfigMaps) Update(arg0 context.Context, arg1 *k8s_io_api_core_v1.ConfigMap, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_core_v1.ConfigMap, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/ConfigMaps", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/ConfigMaps/Update", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "ConfigMaps"), go_opentelemetry_io_otel_attribute.String("kind", "ConfigMap"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1ConfigMaps) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/ConfigMaps", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/ConfigMaps/Watch", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "ConfigMaps"), go_opentelemetry_io_otel_attribute.String("kind", "ConfigMap"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedCoreV1Endpoints wrapper @@ -6072,119 +7733,164 @@ func newCoreV1Endpoints(inner k8s_io_client_go_kubernetes_typed_core_v1.Endpoint func (c *wrappedCoreV1Endpoints) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_core_v1.EndpointsApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_core_v1.Endpoints, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Endpoints", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Endpoints/Apply", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Endpoints"), go_opentelemetry_io_otel_attribute.String("kind", "Endpoints"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1Endpoints) Create(arg0 context.Context, arg1 *k8s_io_api_core_v1.Endpoints, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_core_v1.Endpoints, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Endpoints", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Endpoints/Create", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Endpoints"), go_opentelemetry_io_otel_attribute.String("kind", "Endpoints"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1Endpoints) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Endpoints", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Endpoints/Delete", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Endpoints"), go_opentelemetry_io_otel_attribute.String("kind", "Endpoints"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedCoreV1Endpoints) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Endpoints", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Endpoints/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Endpoints"), go_opentelemetry_io_otel_attribute.String("kind", "Endpoints"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedCoreV1Endpoints) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_core_v1.Endpoints, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Endpoints", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Endpoints/Get", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Endpoints"), go_opentelemetry_io_otel_attribute.String("kind", "Endpoints"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1Endpoints) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_core_v1.EndpointsList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Endpoints", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Endpoints/List", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Endpoints"), go_opentelemetry_io_otel_attribute.String("kind", "Endpoints"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1Endpoints) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_core_v1.Endpoints, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Endpoints", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Endpoints/Patch", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Endpoints"), go_opentelemetry_io_otel_attribute.String("kind", "Endpoints"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1Endpoints) Update(arg0 context.Context, arg1 *k8s_io_api_core_v1.Endpoints, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_core_v1.Endpoints, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Endpoints", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Endpoints/Update", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Endpoints"), go_opentelemetry_io_otel_attribute.String("kind", "Endpoints"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1Endpoints) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Endpoints", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Endpoints/Watch", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Endpoints"), go_opentelemetry_io_otel_attribute.String("kind", "Endpoints"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedCoreV1Events wrapper @@ -6198,134 +7904,184 @@ func newCoreV1Events(inner k8s_io_client_go_kubernetes_typed_core_v1.EventInterf func (c *wrappedCoreV1Events) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_core_v1.EventApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_core_v1.Event, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Events", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Events/Apply", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Events"), go_opentelemetry_io_otel_attribute.String("kind", "Event"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1Events) Create(arg0 context.Context, arg1 *k8s_io_api_core_v1.Event, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_core_v1.Event, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Events", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Events/Create", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Events"), go_opentelemetry_io_otel_attribute.String("kind", "Event"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1Events) CreateWithEventNamespace(arg0 *k8s_io_api_core_v1.Event) (*k8s_io_api_core_v1.Event, error) { - return c.inner.CreateWithEventNamespace(arg0) + ret0, ret1 := c.inner.CreateWithEventNamespace(arg0) + return ret0, ret1 } func (c *wrappedCoreV1Events) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Events", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Events/Delete", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Events"), go_opentelemetry_io_otel_attribute.String("kind", "Event"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedCoreV1Events) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Events", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Events/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Events"), go_opentelemetry_io_otel_attribute.String("kind", "Event"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedCoreV1Events) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_core_v1.Event, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Events", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Events/Get", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Events"), go_opentelemetry_io_otel_attribute.String("kind", "Event"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1Events) GetFieldSelector(arg0 *string, arg1 *string, arg2 *string, arg3 *string) k8s_io_apimachinery_pkg_fields.Selector { - return c.inner.GetFieldSelector(arg0, arg1, arg2, arg3) + ret0 := c.inner.GetFieldSelector(arg0, arg1, arg2, arg3) + return ret0 } func (c *wrappedCoreV1Events) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_core_v1.EventList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Events", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Events/List", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Events"), go_opentelemetry_io_otel_attribute.String("kind", "Event"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1Events) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_core_v1.Event, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Events", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Events/Patch", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Events"), go_opentelemetry_io_otel_attribute.String("kind", "Event"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1Events) PatchWithEventNamespace(arg0 *k8s_io_api_core_v1.Event, arg1 []uint8) (*k8s_io_api_core_v1.Event, error) { - return c.inner.PatchWithEventNamespace(arg0, arg1) + ret0, ret1 := c.inner.PatchWithEventNamespace(arg0, arg1) + return ret0, ret1 } func (c *wrappedCoreV1Events) Search(arg0 *k8s_io_apimachinery_pkg_runtime.Scheme, arg1 k8s_io_apimachinery_pkg_runtime.Object) (*k8s_io_api_core_v1.EventList, error) { - return c.inner.Search(arg0, arg1) + ret0, ret1 := c.inner.Search(arg0, arg1) + return ret0, ret1 } func (c *wrappedCoreV1Events) Update(arg0 context.Context, arg1 *k8s_io_api_core_v1.Event, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_core_v1.Event, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Events", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Events/Update", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Events"), go_opentelemetry_io_otel_attribute.String("kind", "Event"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1Events) UpdateWithEventNamespace(arg0 *k8s_io_api_core_v1.Event) (*k8s_io_api_core_v1.Event, error) { - return c.inner.UpdateWithEventNamespace(arg0) + ret0, ret1 := c.inner.UpdateWithEventNamespace(arg0) + return ret0, ret1 } func (c *wrappedCoreV1Events) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Events", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Events/Watch", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Events"), go_opentelemetry_io_otel_attribute.String("kind", "Event"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedCoreV1LimitRanges wrapper @@ -6339,119 +8095,164 @@ func newCoreV1LimitRanges(inner k8s_io_client_go_kubernetes_typed_core_v1.LimitR func (c *wrappedCoreV1LimitRanges) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_core_v1.LimitRangeApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_core_v1.LimitRange, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/LimitRanges", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/LimitRanges/Apply", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "LimitRanges"), go_opentelemetry_io_otel_attribute.String("kind", "LimitRange"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1LimitRanges) Create(arg0 context.Context, arg1 *k8s_io_api_core_v1.LimitRange, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_core_v1.LimitRange, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/LimitRanges", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/LimitRanges/Create", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "LimitRanges"), go_opentelemetry_io_otel_attribute.String("kind", "LimitRange"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1LimitRanges) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/LimitRanges", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/LimitRanges/Delete", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "LimitRanges"), go_opentelemetry_io_otel_attribute.String("kind", "LimitRange"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedCoreV1LimitRanges) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/LimitRanges", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/LimitRanges/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "LimitRanges"), go_opentelemetry_io_otel_attribute.String("kind", "LimitRange"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedCoreV1LimitRanges) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_core_v1.LimitRange, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/LimitRanges", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/LimitRanges/Get", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "LimitRanges"), go_opentelemetry_io_otel_attribute.String("kind", "LimitRange"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1LimitRanges) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_core_v1.LimitRangeList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/LimitRanges", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/LimitRanges/List", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "LimitRanges"), go_opentelemetry_io_otel_attribute.String("kind", "LimitRange"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1LimitRanges) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_core_v1.LimitRange, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/LimitRanges", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/LimitRanges/Patch", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "LimitRanges"), go_opentelemetry_io_otel_attribute.String("kind", "LimitRange"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1LimitRanges) Update(arg0 context.Context, arg1 *k8s_io_api_core_v1.LimitRange, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_core_v1.LimitRange, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/LimitRanges", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/LimitRanges/Update", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "LimitRanges"), go_opentelemetry_io_otel_attribute.String("kind", "LimitRange"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1LimitRanges) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/LimitRanges", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/LimitRanges/Watch", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "LimitRanges"), go_opentelemetry_io_otel_attribute.String("kind", "LimitRange"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedCoreV1Namespaces wrapper @@ -6465,145 +8266,200 @@ func newCoreV1Namespaces(inner k8s_io_client_go_kubernetes_typed_core_v1.Namespa func (c *wrappedCoreV1Namespaces) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_core_v1.NamespaceApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_core_v1.Namespace, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Namespaces", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Namespaces/Apply", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Namespaces"), go_opentelemetry_io_otel_attribute.String("kind", "Namespace"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1Namespaces) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_core_v1.NamespaceApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_core_v1.Namespace, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Namespaces", - "ApplyStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Namespaces/ApplyStatus", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Namespaces"), go_opentelemetry_io_otel_attribute.String("kind", "Namespace"), ) defer span.End() arg0 = ctx - return c.inner.ApplyStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.ApplyStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1Namespaces) Create(arg0 context.Context, arg1 *k8s_io_api_core_v1.Namespace, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_core_v1.Namespace, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Namespaces", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Namespaces/Create", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Namespaces"), go_opentelemetry_io_otel_attribute.String("kind", "Namespace"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1Namespaces) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Namespaces", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Namespaces/Delete", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Namespaces"), go_opentelemetry_io_otel_attribute.String("kind", "Namespace"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedCoreV1Namespaces) Finalize(arg0 context.Context, arg1 *k8s_io_api_core_v1.Namespace, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_core_v1.Namespace, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Namespaces", - "Finalize", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Namespaces/Finalize", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Namespaces"), go_opentelemetry_io_otel_attribute.String("kind", "Namespace"), ) defer span.End() arg0 = ctx - return c.inner.Finalize(arg0, arg1, arg2) + ret0, ret1 := c.inner.Finalize(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1Namespaces) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_core_v1.Namespace, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Namespaces", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Namespaces/Get", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Namespaces"), go_opentelemetry_io_otel_attribute.String("kind", "Namespace"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1Namespaces) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_core_v1.NamespaceList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Namespaces", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Namespaces/List", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Namespaces"), go_opentelemetry_io_otel_attribute.String("kind", "Namespace"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1Namespaces) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_core_v1.Namespace, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Namespaces", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Namespaces/Patch", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Namespaces"), go_opentelemetry_io_otel_attribute.String("kind", "Namespace"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1Namespaces) Update(arg0 context.Context, arg1 *k8s_io_api_core_v1.Namespace, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_core_v1.Namespace, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Namespaces", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Namespaces/Update", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Namespaces"), go_opentelemetry_io_otel_attribute.String("kind", "Namespace"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1Namespaces) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_core_v1.Namespace, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_core_v1.Namespace, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Namespaces", - "UpdateStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Namespaces/UpdateStatus", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Namespaces"), go_opentelemetry_io_otel_attribute.String("kind", "Namespace"), ) defer span.End() arg0 = ctx - return c.inner.UpdateStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.UpdateStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1Namespaces) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Namespaces", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Namespaces/Watch", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Namespaces"), go_opentelemetry_io_otel_attribute.String("kind", "Namespace"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedCoreV1Nodes wrapper @@ -6617,158 +8473,218 @@ func newCoreV1Nodes(inner k8s_io_client_go_kubernetes_typed_core_v1.NodeInterfac func (c *wrappedCoreV1Nodes) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_core_v1.NodeApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_core_v1.Node, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Nodes", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Nodes/Apply", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Nodes"), go_opentelemetry_io_otel_attribute.String("kind", "Node"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1Nodes) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_core_v1.NodeApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_core_v1.Node, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Nodes", - "ApplyStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Nodes/ApplyStatus", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Nodes"), go_opentelemetry_io_otel_attribute.String("kind", "Node"), ) defer span.End() arg0 = ctx - return c.inner.ApplyStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.ApplyStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1Nodes) Create(arg0 context.Context, arg1 *k8s_io_api_core_v1.Node, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_core_v1.Node, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Nodes", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Nodes/Create", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Nodes"), go_opentelemetry_io_otel_attribute.String("kind", "Node"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1Nodes) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Nodes", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Nodes/Delete", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Nodes"), go_opentelemetry_io_otel_attribute.String("kind", "Node"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedCoreV1Nodes) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Nodes", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Nodes/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Nodes"), go_opentelemetry_io_otel_attribute.String("kind", "Node"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedCoreV1Nodes) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_core_v1.Node, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Nodes", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Nodes/Get", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Nodes"), go_opentelemetry_io_otel_attribute.String("kind", "Node"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1Nodes) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_core_v1.NodeList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Nodes", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Nodes/List", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Nodes"), go_opentelemetry_io_otel_attribute.String("kind", "Node"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1Nodes) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_core_v1.Node, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Nodes", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Nodes/Patch", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Nodes"), go_opentelemetry_io_otel_attribute.String("kind", "Node"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1Nodes) PatchStatus(arg0 context.Context, arg1 string, arg2 []uint8) (*k8s_io_api_core_v1.Node, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Nodes", - "PatchStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Nodes/PatchStatus", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Nodes"), go_opentelemetry_io_otel_attribute.String("kind", "Node"), ) defer span.End() arg0 = ctx - return c.inner.PatchStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.PatchStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1Nodes) Update(arg0 context.Context, arg1 *k8s_io_api_core_v1.Node, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_core_v1.Node, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Nodes", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Nodes/Update", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Nodes"), go_opentelemetry_io_otel_attribute.String("kind", "Node"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1Nodes) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_core_v1.Node, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_core_v1.Node, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Nodes", - "UpdateStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Nodes/UpdateStatus", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Nodes"), go_opentelemetry_io_otel_attribute.String("kind", "Node"), ) defer span.End() arg0 = ctx - return c.inner.UpdateStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.UpdateStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1Nodes) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Nodes", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Nodes/Watch", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Nodes"), go_opentelemetry_io_otel_attribute.String("kind", "Node"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedCoreV1PersistentVolumeClaims wrapper @@ -6782,145 +8698,200 @@ func newCoreV1PersistentVolumeClaims(inner k8s_io_client_go_kubernetes_typed_cor func (c *wrappedCoreV1PersistentVolumeClaims) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_core_v1.PersistentVolumeClaimApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_core_v1.PersistentVolumeClaim, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/PersistentVolumeClaims", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/PersistentVolumeClaims/Apply", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "PersistentVolumeClaims"), go_opentelemetry_io_otel_attribute.String("kind", "PersistentVolumeClaim"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1PersistentVolumeClaims) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_core_v1.PersistentVolumeClaimApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_core_v1.PersistentVolumeClaim, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/PersistentVolumeClaims", - "ApplyStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/PersistentVolumeClaims/ApplyStatus", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "PersistentVolumeClaims"), go_opentelemetry_io_otel_attribute.String("kind", "PersistentVolumeClaim"), ) defer span.End() arg0 = ctx - return c.inner.ApplyStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.ApplyStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1PersistentVolumeClaims) Create(arg0 context.Context, arg1 *k8s_io_api_core_v1.PersistentVolumeClaim, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_core_v1.PersistentVolumeClaim, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/PersistentVolumeClaims", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/PersistentVolumeClaims/Create", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "PersistentVolumeClaims"), go_opentelemetry_io_otel_attribute.String("kind", "PersistentVolumeClaim"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1PersistentVolumeClaims) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/PersistentVolumeClaims", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/PersistentVolumeClaims/Delete", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "PersistentVolumeClaims"), go_opentelemetry_io_otel_attribute.String("kind", "PersistentVolumeClaim"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedCoreV1PersistentVolumeClaims) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/PersistentVolumeClaims", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/PersistentVolumeClaims/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "PersistentVolumeClaims"), go_opentelemetry_io_otel_attribute.String("kind", "PersistentVolumeClaim"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedCoreV1PersistentVolumeClaims) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_core_v1.PersistentVolumeClaim, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/PersistentVolumeClaims", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/PersistentVolumeClaims/Get", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "PersistentVolumeClaims"), go_opentelemetry_io_otel_attribute.String("kind", "PersistentVolumeClaim"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1PersistentVolumeClaims) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_core_v1.PersistentVolumeClaimList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/PersistentVolumeClaims", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/PersistentVolumeClaims/List", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "PersistentVolumeClaims"), go_opentelemetry_io_otel_attribute.String("kind", "PersistentVolumeClaim"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1PersistentVolumeClaims) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_core_v1.PersistentVolumeClaim, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/PersistentVolumeClaims", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/PersistentVolumeClaims/Patch", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "PersistentVolumeClaims"), go_opentelemetry_io_otel_attribute.String("kind", "PersistentVolumeClaim"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1PersistentVolumeClaims) Update(arg0 context.Context, arg1 *k8s_io_api_core_v1.PersistentVolumeClaim, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_core_v1.PersistentVolumeClaim, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/PersistentVolumeClaims", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/PersistentVolumeClaims/Update", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "PersistentVolumeClaims"), go_opentelemetry_io_otel_attribute.String("kind", "PersistentVolumeClaim"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1PersistentVolumeClaims) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_core_v1.PersistentVolumeClaim, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_core_v1.PersistentVolumeClaim, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/PersistentVolumeClaims", - "UpdateStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/PersistentVolumeClaims/UpdateStatus", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "PersistentVolumeClaims"), go_opentelemetry_io_otel_attribute.String("kind", "PersistentVolumeClaim"), ) defer span.End() arg0 = ctx - return c.inner.UpdateStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.UpdateStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1PersistentVolumeClaims) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/PersistentVolumeClaims", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/PersistentVolumeClaims/Watch", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "PersistentVolumeClaims"), go_opentelemetry_io_otel_attribute.String("kind", "PersistentVolumeClaim"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedCoreV1PersistentVolumes wrapper @@ -6934,145 +8905,200 @@ func newCoreV1PersistentVolumes(inner k8s_io_client_go_kubernetes_typed_core_v1. func (c *wrappedCoreV1PersistentVolumes) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_core_v1.PersistentVolumeApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_core_v1.PersistentVolume, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/PersistentVolumes", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/PersistentVolumes/Apply", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "PersistentVolumes"), go_opentelemetry_io_otel_attribute.String("kind", "PersistentVolume"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1PersistentVolumes) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_core_v1.PersistentVolumeApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_core_v1.PersistentVolume, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/PersistentVolumes", - "ApplyStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/PersistentVolumes/ApplyStatus", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "PersistentVolumes"), go_opentelemetry_io_otel_attribute.String("kind", "PersistentVolume"), ) defer span.End() arg0 = ctx - return c.inner.ApplyStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.ApplyStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1PersistentVolumes) Create(arg0 context.Context, arg1 *k8s_io_api_core_v1.PersistentVolume, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_core_v1.PersistentVolume, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/PersistentVolumes", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/PersistentVolumes/Create", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "PersistentVolumes"), go_opentelemetry_io_otel_attribute.String("kind", "PersistentVolume"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1PersistentVolumes) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/PersistentVolumes", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/PersistentVolumes/Delete", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "PersistentVolumes"), go_opentelemetry_io_otel_attribute.String("kind", "PersistentVolume"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedCoreV1PersistentVolumes) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/PersistentVolumes", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/PersistentVolumes/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "PersistentVolumes"), go_opentelemetry_io_otel_attribute.String("kind", "PersistentVolume"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedCoreV1PersistentVolumes) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_core_v1.PersistentVolume, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/PersistentVolumes", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/PersistentVolumes/Get", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "PersistentVolumes"), go_opentelemetry_io_otel_attribute.String("kind", "PersistentVolume"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1PersistentVolumes) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_core_v1.PersistentVolumeList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/PersistentVolumes", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/PersistentVolumes/List", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "PersistentVolumes"), go_opentelemetry_io_otel_attribute.String("kind", "PersistentVolume"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1PersistentVolumes) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_core_v1.PersistentVolume, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/PersistentVolumes", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/PersistentVolumes/Patch", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "PersistentVolumes"), go_opentelemetry_io_otel_attribute.String("kind", "PersistentVolume"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1PersistentVolumes) Update(arg0 context.Context, arg1 *k8s_io_api_core_v1.PersistentVolume, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_core_v1.PersistentVolume, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/PersistentVolumes", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/PersistentVolumes/Update", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "PersistentVolumes"), go_opentelemetry_io_otel_attribute.String("kind", "PersistentVolume"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1PersistentVolumes) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_core_v1.PersistentVolume, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_core_v1.PersistentVolume, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/PersistentVolumes", - "UpdateStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/PersistentVolumes/UpdateStatus", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "PersistentVolumes"), go_opentelemetry_io_otel_attribute.String("kind", "PersistentVolume"), ) defer span.End() arg0 = ctx - return c.inner.UpdateStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.UpdateStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1PersistentVolumes) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/PersistentVolumes", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/PersistentVolumes/Watch", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "PersistentVolumes"), go_opentelemetry_io_otel_attribute.String("kind", "PersistentVolume"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedCoreV1PodTemplates wrapper @@ -7086,119 +9112,164 @@ func newCoreV1PodTemplates(inner k8s_io_client_go_kubernetes_typed_core_v1.PodTe func (c *wrappedCoreV1PodTemplates) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_core_v1.PodTemplateApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_core_v1.PodTemplate, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/PodTemplates", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/PodTemplates/Apply", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "PodTemplates"), go_opentelemetry_io_otel_attribute.String("kind", "PodTemplate"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1PodTemplates) Create(arg0 context.Context, arg1 *k8s_io_api_core_v1.PodTemplate, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_core_v1.PodTemplate, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/PodTemplates", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/PodTemplates/Create", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "PodTemplates"), go_opentelemetry_io_otel_attribute.String("kind", "PodTemplate"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1PodTemplates) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/PodTemplates", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/PodTemplates/Delete", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "PodTemplates"), go_opentelemetry_io_otel_attribute.String("kind", "PodTemplate"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedCoreV1PodTemplates) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/PodTemplates", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/PodTemplates/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "PodTemplates"), go_opentelemetry_io_otel_attribute.String("kind", "PodTemplate"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedCoreV1PodTemplates) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_core_v1.PodTemplate, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/PodTemplates", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/PodTemplates/Get", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "PodTemplates"), go_opentelemetry_io_otel_attribute.String("kind", "PodTemplate"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1PodTemplates) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_core_v1.PodTemplateList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/PodTemplates", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/PodTemplates/List", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "PodTemplates"), go_opentelemetry_io_otel_attribute.String("kind", "PodTemplate"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1PodTemplates) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_core_v1.PodTemplate, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/PodTemplates", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/PodTemplates/Patch", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "PodTemplates"), go_opentelemetry_io_otel_attribute.String("kind", "PodTemplate"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1PodTemplates) Update(arg0 context.Context, arg1 *k8s_io_api_core_v1.PodTemplate, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_core_v1.PodTemplate, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/PodTemplates", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/PodTemplates/Update", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "PodTemplates"), go_opentelemetry_io_otel_attribute.String("kind", "PodTemplate"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1PodTemplates) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/PodTemplates", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/PodTemplates/Watch", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "PodTemplates"), go_opentelemetry_io_otel_attribute.String("kind", "PodTemplate"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedCoreV1Pods wrapper @@ -7212,216 +9283,298 @@ func newCoreV1Pods(inner k8s_io_client_go_kubernetes_typed_core_v1.PodInterface) func (c *wrappedCoreV1Pods) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_core_v1.PodApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_core_v1.Pod, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Pods", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Pods/Apply", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Pods"), go_opentelemetry_io_otel_attribute.String("kind", "Pod"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1Pods) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_core_v1.PodApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_core_v1.Pod, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Pods", - "ApplyStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Pods/ApplyStatus", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Pods"), go_opentelemetry_io_otel_attribute.String("kind", "Pod"), ) defer span.End() arg0 = ctx - return c.inner.ApplyStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.ApplyStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1Pods) Bind(arg0 context.Context, arg1 *k8s_io_api_core_v1.Binding, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Pods", - "Bind", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Pods/Bind", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Pods"), go_opentelemetry_io_otel_attribute.String("kind", "Pod"), ) defer span.End() arg0 = ctx - return c.inner.Bind(arg0, arg1, arg2) + ret0 := c.inner.Bind(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedCoreV1Pods) Create(arg0 context.Context, arg1 *k8s_io_api_core_v1.Pod, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_core_v1.Pod, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Pods", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Pods/Create", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Pods"), go_opentelemetry_io_otel_attribute.String("kind", "Pod"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1Pods) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Pods", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Pods/Delete", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Pods"), go_opentelemetry_io_otel_attribute.String("kind", "Pod"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedCoreV1Pods) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Pods", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Pods/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Pods"), go_opentelemetry_io_otel_attribute.String("kind", "Pod"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedCoreV1Pods) Evict(arg0 context.Context, arg1 *k8s_io_api_policy_v1beta1.Eviction) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Pods", - "Evict", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Pods/Evict", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Pods"), go_opentelemetry_io_otel_attribute.String("kind", "Pod"), ) defer span.End() arg0 = ctx - return c.inner.Evict(arg0, arg1) + ret0 := c.inner.Evict(arg0, arg1) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedCoreV1Pods) EvictV1(arg0 context.Context, arg1 *k8s_io_api_policy_v1.Eviction) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Pods", - "EvictV1", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Pods/EvictV1", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Pods"), go_opentelemetry_io_otel_attribute.String("kind", "Pod"), ) defer span.End() arg0 = ctx - return c.inner.EvictV1(arg0, arg1) + ret0 := c.inner.EvictV1(arg0, arg1) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedCoreV1Pods) EvictV1beta1(arg0 context.Context, arg1 *k8s_io_api_policy_v1beta1.Eviction) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Pods", - "EvictV1beta1", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Pods/EvictV1beta1", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Pods"), go_opentelemetry_io_otel_attribute.String("kind", "Pod"), ) defer span.End() arg0 = ctx - return c.inner.EvictV1beta1(arg0, arg1) + ret0 := c.inner.EvictV1beta1(arg0, arg1) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedCoreV1Pods) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_core_v1.Pod, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Pods", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Pods/Get", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Pods"), go_opentelemetry_io_otel_attribute.String("kind", "Pod"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1Pods) GetLogs(arg0 string, arg1 *k8s_io_api_core_v1.PodLogOptions) *k8s_io_client_go_rest.Request { - return c.inner.GetLogs(arg0, arg1) + ret0 := c.inner.GetLogs(arg0, arg1) + return ret0 } func (c *wrappedCoreV1Pods) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_core_v1.PodList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Pods", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Pods/List", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Pods"), go_opentelemetry_io_otel_attribute.String("kind", "Pod"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1Pods) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_core_v1.Pod, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Pods", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Pods/Patch", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Pods"), go_opentelemetry_io_otel_attribute.String("kind", "Pod"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1Pods) ProxyGet(arg0 string, arg1 string, arg2 string, arg3 string, arg4 map[string]string) k8s_io_client_go_rest.ResponseWrapper { - return c.inner.ProxyGet(arg0, arg1, arg2, arg3, arg4) + ret0 := c.inner.ProxyGet(arg0, arg1, arg2, arg3, arg4) + return ret0 } func (c *wrappedCoreV1Pods) Update(arg0 context.Context, arg1 *k8s_io_api_core_v1.Pod, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_core_v1.Pod, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Pods", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Pods/Update", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Pods"), go_opentelemetry_io_otel_attribute.String("kind", "Pod"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1Pods) UpdateEphemeralContainers(arg0 context.Context, arg1 string, arg2 *k8s_io_api_core_v1.Pod, arg3 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_core_v1.Pod, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Pods", - "UpdateEphemeralContainers", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Pods/UpdateEphemeralContainers", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Pods"), go_opentelemetry_io_otel_attribute.String("kind", "Pod"), ) defer span.End() arg0 = ctx - return c.inner.UpdateEphemeralContainers(arg0, arg1, arg2, arg3) + ret0, ret1 := c.inner.UpdateEphemeralContainers(arg0, arg1, arg2, arg3) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1Pods) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_core_v1.Pod, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_core_v1.Pod, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Pods", - "UpdateStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Pods/UpdateStatus", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Pods"), go_opentelemetry_io_otel_attribute.String("kind", "Pod"), ) defer span.End() arg0 = ctx - return c.inner.UpdateStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.UpdateStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1Pods) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Pods", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Pods/Watch", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Pods"), go_opentelemetry_io_otel_attribute.String("kind", "Pod"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedCoreV1ReplicationControllers wrapper @@ -7435,171 +9588,236 @@ func newCoreV1ReplicationControllers(inner k8s_io_client_go_kubernetes_typed_cor func (c *wrappedCoreV1ReplicationControllers) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_core_v1.ReplicationControllerApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_core_v1.ReplicationController, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/ReplicationControllers", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/ReplicationControllers/Apply", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "ReplicationControllers"), go_opentelemetry_io_otel_attribute.String("kind", "ReplicationController"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1ReplicationControllers) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_core_v1.ReplicationControllerApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_core_v1.ReplicationController, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/ReplicationControllers", - "ApplyStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/ReplicationControllers/ApplyStatus", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "ReplicationControllers"), go_opentelemetry_io_otel_attribute.String("kind", "ReplicationController"), ) defer span.End() arg0 = ctx - return c.inner.ApplyStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.ApplyStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1ReplicationControllers) Create(arg0 context.Context, arg1 *k8s_io_api_core_v1.ReplicationController, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_core_v1.ReplicationController, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/ReplicationControllers", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/ReplicationControllers/Create", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "ReplicationControllers"), go_opentelemetry_io_otel_attribute.String("kind", "ReplicationController"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1ReplicationControllers) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/ReplicationControllers", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/ReplicationControllers/Delete", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "ReplicationControllers"), go_opentelemetry_io_otel_attribute.String("kind", "ReplicationController"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedCoreV1ReplicationControllers) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/ReplicationControllers", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/ReplicationControllers/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "ReplicationControllers"), go_opentelemetry_io_otel_attribute.String("kind", "ReplicationController"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedCoreV1ReplicationControllers) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_core_v1.ReplicationController, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/ReplicationControllers", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/ReplicationControllers/Get", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "ReplicationControllers"), go_opentelemetry_io_otel_attribute.String("kind", "ReplicationController"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1ReplicationControllers) GetScale(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_autoscaling_v1.Scale, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/ReplicationControllers", - "GetScale", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/ReplicationControllers/GetScale", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "ReplicationControllers"), go_opentelemetry_io_otel_attribute.String("kind", "ReplicationController"), ) defer span.End() arg0 = ctx - return c.inner.GetScale(arg0, arg1, arg2) + ret0, ret1 := c.inner.GetScale(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1ReplicationControllers) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_core_v1.ReplicationControllerList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/ReplicationControllers", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/ReplicationControllers/List", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "ReplicationControllers"), go_opentelemetry_io_otel_attribute.String("kind", "ReplicationController"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1ReplicationControllers) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_core_v1.ReplicationController, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/ReplicationControllers", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/ReplicationControllers/Patch", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "ReplicationControllers"), go_opentelemetry_io_otel_attribute.String("kind", "ReplicationController"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1ReplicationControllers) Update(arg0 context.Context, arg1 *k8s_io_api_core_v1.ReplicationController, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_core_v1.ReplicationController, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/ReplicationControllers", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/ReplicationControllers/Update", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "ReplicationControllers"), go_opentelemetry_io_otel_attribute.String("kind", "ReplicationController"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1ReplicationControllers) UpdateScale(arg0 context.Context, arg1 string, arg2 *k8s_io_api_autoscaling_v1.Scale, arg3 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_autoscaling_v1.Scale, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/ReplicationControllers", - "UpdateScale", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/ReplicationControllers/UpdateScale", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "ReplicationControllers"), go_opentelemetry_io_otel_attribute.String("kind", "ReplicationController"), ) defer span.End() arg0 = ctx - return c.inner.UpdateScale(arg0, arg1, arg2, arg3) + ret0, ret1 := c.inner.UpdateScale(arg0, arg1, arg2, arg3) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1ReplicationControllers) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_core_v1.ReplicationController, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_core_v1.ReplicationController, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/ReplicationControllers", - "UpdateStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/ReplicationControllers/UpdateStatus", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "ReplicationControllers"), go_opentelemetry_io_otel_attribute.String("kind", "ReplicationController"), ) defer span.End() arg0 = ctx - return c.inner.UpdateStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.UpdateStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1ReplicationControllers) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/ReplicationControllers", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/ReplicationControllers/Watch", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "ReplicationControllers"), go_opentelemetry_io_otel_attribute.String("kind", "ReplicationController"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedCoreV1ResourceQuotas wrapper @@ -7613,145 +9831,200 @@ func newCoreV1ResourceQuotas(inner k8s_io_client_go_kubernetes_typed_core_v1.Res func (c *wrappedCoreV1ResourceQuotas) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_core_v1.ResourceQuotaApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_core_v1.ResourceQuota, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/ResourceQuotas", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/ResourceQuotas/Apply", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "ResourceQuotas"), go_opentelemetry_io_otel_attribute.String("kind", "ResourceQuota"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1ResourceQuotas) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_core_v1.ResourceQuotaApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_core_v1.ResourceQuota, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/ResourceQuotas", - "ApplyStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/ResourceQuotas/ApplyStatus", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "ResourceQuotas"), go_opentelemetry_io_otel_attribute.String("kind", "ResourceQuota"), ) defer span.End() arg0 = ctx - return c.inner.ApplyStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.ApplyStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1ResourceQuotas) Create(arg0 context.Context, arg1 *k8s_io_api_core_v1.ResourceQuota, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_core_v1.ResourceQuota, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/ResourceQuotas", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/ResourceQuotas/Create", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "ResourceQuotas"), go_opentelemetry_io_otel_attribute.String("kind", "ResourceQuota"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1ResourceQuotas) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/ResourceQuotas", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/ResourceQuotas/Delete", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "ResourceQuotas"), go_opentelemetry_io_otel_attribute.String("kind", "ResourceQuota"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedCoreV1ResourceQuotas) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/ResourceQuotas", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/ResourceQuotas/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "ResourceQuotas"), go_opentelemetry_io_otel_attribute.String("kind", "ResourceQuota"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedCoreV1ResourceQuotas) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_core_v1.ResourceQuota, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/ResourceQuotas", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/ResourceQuotas/Get", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "ResourceQuotas"), go_opentelemetry_io_otel_attribute.String("kind", "ResourceQuota"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1ResourceQuotas) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_core_v1.ResourceQuotaList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/ResourceQuotas", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/ResourceQuotas/List", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "ResourceQuotas"), go_opentelemetry_io_otel_attribute.String("kind", "ResourceQuota"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1ResourceQuotas) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_core_v1.ResourceQuota, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/ResourceQuotas", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/ResourceQuotas/Patch", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "ResourceQuotas"), go_opentelemetry_io_otel_attribute.String("kind", "ResourceQuota"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1ResourceQuotas) Update(arg0 context.Context, arg1 *k8s_io_api_core_v1.ResourceQuota, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_core_v1.ResourceQuota, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/ResourceQuotas", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/ResourceQuotas/Update", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "ResourceQuotas"), go_opentelemetry_io_otel_attribute.String("kind", "ResourceQuota"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1ResourceQuotas) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_core_v1.ResourceQuota, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_core_v1.ResourceQuota, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/ResourceQuotas", - "UpdateStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/ResourceQuotas/UpdateStatus", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "ResourceQuotas"), go_opentelemetry_io_otel_attribute.String("kind", "ResourceQuota"), ) defer span.End() arg0 = ctx - return c.inner.UpdateStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.UpdateStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1ResourceQuotas) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/ResourceQuotas", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/ResourceQuotas/Watch", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "ResourceQuotas"), go_opentelemetry_io_otel_attribute.String("kind", "ResourceQuota"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedCoreV1Secrets wrapper @@ -7765,119 +10038,164 @@ func newCoreV1Secrets(inner k8s_io_client_go_kubernetes_typed_core_v1.SecretInte func (c *wrappedCoreV1Secrets) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_core_v1.SecretApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_core_v1.Secret, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Secrets", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Secrets/Apply", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Secrets"), go_opentelemetry_io_otel_attribute.String("kind", "Secret"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1Secrets) Create(arg0 context.Context, arg1 *k8s_io_api_core_v1.Secret, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_core_v1.Secret, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Secrets", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Secrets/Create", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Secrets"), go_opentelemetry_io_otel_attribute.String("kind", "Secret"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1Secrets) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Secrets", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Secrets/Delete", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Secrets"), go_opentelemetry_io_otel_attribute.String("kind", "Secret"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedCoreV1Secrets) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Secrets", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Secrets/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Secrets"), go_opentelemetry_io_otel_attribute.String("kind", "Secret"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedCoreV1Secrets) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_core_v1.Secret, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Secrets", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Secrets/Get", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Secrets"), go_opentelemetry_io_otel_attribute.String("kind", "Secret"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1Secrets) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_core_v1.SecretList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Secrets", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Secrets/List", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Secrets"), go_opentelemetry_io_otel_attribute.String("kind", "Secret"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1Secrets) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_core_v1.Secret, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Secrets", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Secrets/Patch", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Secrets"), go_opentelemetry_io_otel_attribute.String("kind", "Secret"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1Secrets) Update(arg0 context.Context, arg1 *k8s_io_api_core_v1.Secret, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_core_v1.Secret, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Secrets", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Secrets/Update", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Secrets"), go_opentelemetry_io_otel_attribute.String("kind", "Secret"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1Secrets) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Secrets", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Secrets/Watch", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Secrets"), go_opentelemetry_io_otel_attribute.String("kind", "Secret"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedCoreV1ServiceAccounts wrapper @@ -7891,132 +10209,182 @@ func newCoreV1ServiceAccounts(inner k8s_io_client_go_kubernetes_typed_core_v1.Se func (c *wrappedCoreV1ServiceAccounts) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_core_v1.ServiceAccountApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_core_v1.ServiceAccount, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/ServiceAccounts", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/ServiceAccounts/Apply", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "ServiceAccounts"), go_opentelemetry_io_otel_attribute.String("kind", "ServiceAccount"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1ServiceAccounts) Create(arg0 context.Context, arg1 *k8s_io_api_core_v1.ServiceAccount, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_core_v1.ServiceAccount, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/ServiceAccounts", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/ServiceAccounts/Create", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "ServiceAccounts"), go_opentelemetry_io_otel_attribute.String("kind", "ServiceAccount"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1ServiceAccounts) CreateToken(arg0 context.Context, arg1 string, arg2 *k8s_io_api_authentication_v1.TokenRequest, arg3 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_authentication_v1.TokenRequest, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/ServiceAccounts", - "CreateToken", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/ServiceAccounts/CreateToken", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "ServiceAccounts"), go_opentelemetry_io_otel_attribute.String("kind", "ServiceAccount"), ) defer span.End() arg0 = ctx - return c.inner.CreateToken(arg0, arg1, arg2, arg3) + ret0, ret1 := c.inner.CreateToken(arg0, arg1, arg2, arg3) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1ServiceAccounts) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/ServiceAccounts", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/ServiceAccounts/Delete", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "ServiceAccounts"), go_opentelemetry_io_otel_attribute.String("kind", "ServiceAccount"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedCoreV1ServiceAccounts) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/ServiceAccounts", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/ServiceAccounts/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "ServiceAccounts"), go_opentelemetry_io_otel_attribute.String("kind", "ServiceAccount"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedCoreV1ServiceAccounts) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_core_v1.ServiceAccount, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/ServiceAccounts", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/ServiceAccounts/Get", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "ServiceAccounts"), go_opentelemetry_io_otel_attribute.String("kind", "ServiceAccount"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1ServiceAccounts) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_core_v1.ServiceAccountList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/ServiceAccounts", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/ServiceAccounts/List", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "ServiceAccounts"), go_opentelemetry_io_otel_attribute.String("kind", "ServiceAccount"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1ServiceAccounts) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_core_v1.ServiceAccount, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/ServiceAccounts", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/ServiceAccounts/Patch", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "ServiceAccounts"), go_opentelemetry_io_otel_attribute.String("kind", "ServiceAccount"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1ServiceAccounts) Update(arg0 context.Context, arg1 *k8s_io_api_core_v1.ServiceAccount, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_core_v1.ServiceAccount, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/ServiceAccounts", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/ServiceAccounts/Update", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "ServiceAccounts"), go_opentelemetry_io_otel_attribute.String("kind", "ServiceAccount"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1ServiceAccounts) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/ServiceAccounts", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/ServiceAccounts/Watch", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "ServiceAccounts"), go_opentelemetry_io_otel_attribute.String("kind", "ServiceAccount"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedCoreV1Services wrapper @@ -8030,135 +10398,186 @@ func newCoreV1Services(inner k8s_io_client_go_kubernetes_typed_core_v1.ServiceIn func (c *wrappedCoreV1Services) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_core_v1.ServiceApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_core_v1.Service, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Services", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Services/Apply", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Services"), go_opentelemetry_io_otel_attribute.String("kind", "Service"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1Services) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_core_v1.ServiceApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_core_v1.Service, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Services", - "ApplyStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Services/ApplyStatus", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Services"), go_opentelemetry_io_otel_attribute.String("kind", "Service"), ) defer span.End() arg0 = ctx - return c.inner.ApplyStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.ApplyStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1Services) Create(arg0 context.Context, arg1 *k8s_io_api_core_v1.Service, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_core_v1.Service, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Services", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Services/Create", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Services"), go_opentelemetry_io_otel_attribute.String("kind", "Service"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1Services) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Services", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Services/Delete", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Services"), go_opentelemetry_io_otel_attribute.String("kind", "Service"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedCoreV1Services) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_core_v1.Service, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Services", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Services/Get", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Services"), go_opentelemetry_io_otel_attribute.String("kind", "Service"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1Services) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_core_v1.ServiceList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Services", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Services/List", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Services"), go_opentelemetry_io_otel_attribute.String("kind", "Service"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1Services) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_core_v1.Service, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Services", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Services/Patch", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Services"), go_opentelemetry_io_otel_attribute.String("kind", "Service"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1Services) ProxyGet(arg0 string, arg1 string, arg2 string, arg3 string, arg4 map[string]string) k8s_io_client_go_rest.ResponseWrapper { - return c.inner.ProxyGet(arg0, arg1, arg2, arg3, arg4) + ret0 := c.inner.ProxyGet(arg0, arg1, arg2, arg3, arg4) + return ret0 } func (c *wrappedCoreV1Services) Update(arg0 context.Context, arg1 *k8s_io_api_core_v1.Service, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_core_v1.Service, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Services", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Services/Update", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Services"), go_opentelemetry_io_otel_attribute.String("kind", "Service"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1Services) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_core_v1.Service, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_core_v1.Service, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Services", - "UpdateStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Services/UpdateStatus", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Services"), go_opentelemetry_io_otel_attribute.String("kind", "Service"), ) defer span.End() arg0 = ctx - return c.inner.UpdateStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.UpdateStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedCoreV1Services) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "CoreV1/Services", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE CoreV1/Services/Watch", go_opentelemetry_io_otel_attribute.String("client", "CoreV1"), go_opentelemetry_io_otel_attribute.String("resource", "Services"), go_opentelemetry_io_otel_attribute.String("kind", "Service"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedDiscoveryV1EndpointSlices wrapper @@ -8172,119 +10591,164 @@ func newDiscoveryV1EndpointSlices(inner k8s_io_client_go_kubernetes_typed_discov func (c *wrappedDiscoveryV1EndpointSlices) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_discovery_v1.EndpointSliceApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_discovery_v1.EndpointSlice, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "DiscoveryV1/EndpointSlices", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE DiscoveryV1/EndpointSlices/Apply", go_opentelemetry_io_otel_attribute.String("client", "DiscoveryV1"), go_opentelemetry_io_otel_attribute.String("resource", "EndpointSlices"), go_opentelemetry_io_otel_attribute.String("kind", "EndpointSlice"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedDiscoveryV1EndpointSlices) Create(arg0 context.Context, arg1 *k8s_io_api_discovery_v1.EndpointSlice, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_discovery_v1.EndpointSlice, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "DiscoveryV1/EndpointSlices", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE DiscoveryV1/EndpointSlices/Create", go_opentelemetry_io_otel_attribute.String("client", "DiscoveryV1"), go_opentelemetry_io_otel_attribute.String("resource", "EndpointSlices"), go_opentelemetry_io_otel_attribute.String("kind", "EndpointSlice"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedDiscoveryV1EndpointSlices) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "DiscoveryV1/EndpointSlices", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE DiscoveryV1/EndpointSlices/Delete", go_opentelemetry_io_otel_attribute.String("client", "DiscoveryV1"), go_opentelemetry_io_otel_attribute.String("resource", "EndpointSlices"), go_opentelemetry_io_otel_attribute.String("kind", "EndpointSlice"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedDiscoveryV1EndpointSlices) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "DiscoveryV1/EndpointSlices", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE DiscoveryV1/EndpointSlices/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "DiscoveryV1"), go_opentelemetry_io_otel_attribute.String("resource", "EndpointSlices"), go_opentelemetry_io_otel_attribute.String("kind", "EndpointSlice"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedDiscoveryV1EndpointSlices) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_discovery_v1.EndpointSlice, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "DiscoveryV1/EndpointSlices", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE DiscoveryV1/EndpointSlices/Get", go_opentelemetry_io_otel_attribute.String("client", "DiscoveryV1"), go_opentelemetry_io_otel_attribute.String("resource", "EndpointSlices"), go_opentelemetry_io_otel_attribute.String("kind", "EndpointSlice"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedDiscoveryV1EndpointSlices) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_discovery_v1.EndpointSliceList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "DiscoveryV1/EndpointSlices", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE DiscoveryV1/EndpointSlices/List", go_opentelemetry_io_otel_attribute.String("client", "DiscoveryV1"), go_opentelemetry_io_otel_attribute.String("resource", "EndpointSlices"), go_opentelemetry_io_otel_attribute.String("kind", "EndpointSlice"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedDiscoveryV1EndpointSlices) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_discovery_v1.EndpointSlice, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "DiscoveryV1/EndpointSlices", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE DiscoveryV1/EndpointSlices/Patch", go_opentelemetry_io_otel_attribute.String("client", "DiscoveryV1"), go_opentelemetry_io_otel_attribute.String("resource", "EndpointSlices"), go_opentelemetry_io_otel_attribute.String("kind", "EndpointSlice"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedDiscoveryV1EndpointSlices) Update(arg0 context.Context, arg1 *k8s_io_api_discovery_v1.EndpointSlice, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_discovery_v1.EndpointSlice, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "DiscoveryV1/EndpointSlices", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE DiscoveryV1/EndpointSlices/Update", go_opentelemetry_io_otel_attribute.String("client", "DiscoveryV1"), go_opentelemetry_io_otel_attribute.String("resource", "EndpointSlices"), go_opentelemetry_io_otel_attribute.String("kind", "EndpointSlice"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedDiscoveryV1EndpointSlices) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "DiscoveryV1/EndpointSlices", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE DiscoveryV1/EndpointSlices/Watch", go_opentelemetry_io_otel_attribute.String("client", "DiscoveryV1"), go_opentelemetry_io_otel_attribute.String("resource", "EndpointSlices"), go_opentelemetry_io_otel_attribute.String("kind", "EndpointSlice"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedDiscoveryV1beta1EndpointSlices wrapper @@ -8298,119 +10762,164 @@ func newDiscoveryV1beta1EndpointSlices(inner k8s_io_client_go_kubernetes_typed_d func (c *wrappedDiscoveryV1beta1EndpointSlices) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_discovery_v1beta1.EndpointSliceApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_discovery_v1beta1.EndpointSlice, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "DiscoveryV1beta1/EndpointSlices", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE DiscoveryV1beta1/EndpointSlices/Apply", go_opentelemetry_io_otel_attribute.String("client", "DiscoveryV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "EndpointSlices"), go_opentelemetry_io_otel_attribute.String("kind", "EndpointSlice"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedDiscoveryV1beta1EndpointSlices) Create(arg0 context.Context, arg1 *k8s_io_api_discovery_v1beta1.EndpointSlice, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_discovery_v1beta1.EndpointSlice, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "DiscoveryV1beta1/EndpointSlices", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE DiscoveryV1beta1/EndpointSlices/Create", go_opentelemetry_io_otel_attribute.String("client", "DiscoveryV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "EndpointSlices"), go_opentelemetry_io_otel_attribute.String("kind", "EndpointSlice"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedDiscoveryV1beta1EndpointSlices) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "DiscoveryV1beta1/EndpointSlices", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE DiscoveryV1beta1/EndpointSlices/Delete", go_opentelemetry_io_otel_attribute.String("client", "DiscoveryV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "EndpointSlices"), go_opentelemetry_io_otel_attribute.String("kind", "EndpointSlice"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedDiscoveryV1beta1EndpointSlices) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "DiscoveryV1beta1/EndpointSlices", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE DiscoveryV1beta1/EndpointSlices/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "DiscoveryV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "EndpointSlices"), go_opentelemetry_io_otel_attribute.String("kind", "EndpointSlice"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedDiscoveryV1beta1EndpointSlices) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_discovery_v1beta1.EndpointSlice, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "DiscoveryV1beta1/EndpointSlices", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE DiscoveryV1beta1/EndpointSlices/Get", go_opentelemetry_io_otel_attribute.String("client", "DiscoveryV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "EndpointSlices"), go_opentelemetry_io_otel_attribute.String("kind", "EndpointSlice"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedDiscoveryV1beta1EndpointSlices) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_discovery_v1beta1.EndpointSliceList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "DiscoveryV1beta1/EndpointSlices", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE DiscoveryV1beta1/EndpointSlices/List", go_opentelemetry_io_otel_attribute.String("client", "DiscoveryV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "EndpointSlices"), go_opentelemetry_io_otel_attribute.String("kind", "EndpointSlice"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedDiscoveryV1beta1EndpointSlices) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_discovery_v1beta1.EndpointSlice, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "DiscoveryV1beta1/EndpointSlices", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE DiscoveryV1beta1/EndpointSlices/Patch", go_opentelemetry_io_otel_attribute.String("client", "DiscoveryV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "EndpointSlices"), go_opentelemetry_io_otel_attribute.String("kind", "EndpointSlice"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedDiscoveryV1beta1EndpointSlices) Update(arg0 context.Context, arg1 *k8s_io_api_discovery_v1beta1.EndpointSlice, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_discovery_v1beta1.EndpointSlice, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "DiscoveryV1beta1/EndpointSlices", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE DiscoveryV1beta1/EndpointSlices/Update", go_opentelemetry_io_otel_attribute.String("client", "DiscoveryV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "EndpointSlices"), go_opentelemetry_io_otel_attribute.String("kind", "EndpointSlice"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedDiscoveryV1beta1EndpointSlices) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "DiscoveryV1beta1/EndpointSlices", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE DiscoveryV1beta1/EndpointSlices/Watch", go_opentelemetry_io_otel_attribute.String("client", "DiscoveryV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "EndpointSlices"), go_opentelemetry_io_otel_attribute.String("kind", "EndpointSlice"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedEventsV1Events wrapper @@ -8424,119 +10933,164 @@ func newEventsV1Events(inner k8s_io_client_go_kubernetes_typed_events_v1.EventIn func (c *wrappedEventsV1Events) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_events_v1.EventApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_events_v1.Event, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "EventsV1/Events", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE EventsV1/Events/Apply", go_opentelemetry_io_otel_attribute.String("client", "EventsV1"), go_opentelemetry_io_otel_attribute.String("resource", "Events"), go_opentelemetry_io_otel_attribute.String("kind", "Event"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedEventsV1Events) Create(arg0 context.Context, arg1 *k8s_io_api_events_v1.Event, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_events_v1.Event, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "EventsV1/Events", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE EventsV1/Events/Create", go_opentelemetry_io_otel_attribute.String("client", "EventsV1"), go_opentelemetry_io_otel_attribute.String("resource", "Events"), go_opentelemetry_io_otel_attribute.String("kind", "Event"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedEventsV1Events) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "EventsV1/Events", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE EventsV1/Events/Delete", go_opentelemetry_io_otel_attribute.String("client", "EventsV1"), go_opentelemetry_io_otel_attribute.String("resource", "Events"), go_opentelemetry_io_otel_attribute.String("kind", "Event"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedEventsV1Events) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "EventsV1/Events", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE EventsV1/Events/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "EventsV1"), go_opentelemetry_io_otel_attribute.String("resource", "Events"), go_opentelemetry_io_otel_attribute.String("kind", "Event"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedEventsV1Events) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_events_v1.Event, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "EventsV1/Events", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE EventsV1/Events/Get", go_opentelemetry_io_otel_attribute.String("client", "EventsV1"), go_opentelemetry_io_otel_attribute.String("resource", "Events"), go_opentelemetry_io_otel_attribute.String("kind", "Event"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedEventsV1Events) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_events_v1.EventList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "EventsV1/Events", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE EventsV1/Events/List", go_opentelemetry_io_otel_attribute.String("client", "EventsV1"), go_opentelemetry_io_otel_attribute.String("resource", "Events"), go_opentelemetry_io_otel_attribute.String("kind", "Event"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedEventsV1Events) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_events_v1.Event, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "EventsV1/Events", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE EventsV1/Events/Patch", go_opentelemetry_io_otel_attribute.String("client", "EventsV1"), go_opentelemetry_io_otel_attribute.String("resource", "Events"), go_opentelemetry_io_otel_attribute.String("kind", "Event"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedEventsV1Events) Update(arg0 context.Context, arg1 *k8s_io_api_events_v1.Event, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_events_v1.Event, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "EventsV1/Events", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE EventsV1/Events/Update", go_opentelemetry_io_otel_attribute.String("client", "EventsV1"), go_opentelemetry_io_otel_attribute.String("resource", "Events"), go_opentelemetry_io_otel_attribute.String("kind", "Event"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedEventsV1Events) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "EventsV1/Events", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE EventsV1/Events/Watch", go_opentelemetry_io_otel_attribute.String("client", "EventsV1"), go_opentelemetry_io_otel_attribute.String("resource", "Events"), go_opentelemetry_io_otel_attribute.String("kind", "Event"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedEventsV1beta1Events wrapper @@ -8550,128 +11104,176 @@ func newEventsV1beta1Events(inner k8s_io_client_go_kubernetes_typed_events_v1bet func (c *wrappedEventsV1beta1Events) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_events_v1beta1.EventApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_events_v1beta1.Event, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "EventsV1beta1/Events", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE EventsV1beta1/Events/Apply", go_opentelemetry_io_otel_attribute.String("client", "EventsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Events"), go_opentelemetry_io_otel_attribute.String("kind", "Event"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedEventsV1beta1Events) Create(arg0 context.Context, arg1 *k8s_io_api_events_v1beta1.Event, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_events_v1beta1.Event, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "EventsV1beta1/Events", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE EventsV1beta1/Events/Create", go_opentelemetry_io_otel_attribute.String("client", "EventsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Events"), go_opentelemetry_io_otel_attribute.String("kind", "Event"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedEventsV1beta1Events) CreateWithEventNamespace(arg0 *k8s_io_api_events_v1beta1.Event) (*k8s_io_api_events_v1beta1.Event, error) { - return c.inner.CreateWithEventNamespace(arg0) + ret0, ret1 := c.inner.CreateWithEventNamespace(arg0) + return ret0, ret1 } func (c *wrappedEventsV1beta1Events) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "EventsV1beta1/Events", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE EventsV1beta1/Events/Delete", go_opentelemetry_io_otel_attribute.String("client", "EventsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Events"), go_opentelemetry_io_otel_attribute.String("kind", "Event"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedEventsV1beta1Events) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "EventsV1beta1/Events", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE EventsV1beta1/Events/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "EventsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Events"), go_opentelemetry_io_otel_attribute.String("kind", "Event"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedEventsV1beta1Events) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_events_v1beta1.Event, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "EventsV1beta1/Events", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE EventsV1beta1/Events/Get", go_opentelemetry_io_otel_attribute.String("client", "EventsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Events"), go_opentelemetry_io_otel_attribute.String("kind", "Event"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedEventsV1beta1Events) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_events_v1beta1.EventList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "EventsV1beta1/Events", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE EventsV1beta1/Events/List", go_opentelemetry_io_otel_attribute.String("client", "EventsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Events"), go_opentelemetry_io_otel_attribute.String("kind", "Event"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedEventsV1beta1Events) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_events_v1beta1.Event, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "EventsV1beta1/Events", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE EventsV1beta1/Events/Patch", go_opentelemetry_io_otel_attribute.String("client", "EventsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Events"), go_opentelemetry_io_otel_attribute.String("kind", "Event"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedEventsV1beta1Events) PatchWithEventNamespace(arg0 *k8s_io_api_events_v1beta1.Event, arg1 []uint8) (*k8s_io_api_events_v1beta1.Event, error) { - return c.inner.PatchWithEventNamespace(arg0, arg1) + ret0, ret1 := c.inner.PatchWithEventNamespace(arg0, arg1) + return ret0, ret1 } func (c *wrappedEventsV1beta1Events) Update(arg0 context.Context, arg1 *k8s_io_api_events_v1beta1.Event, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_events_v1beta1.Event, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "EventsV1beta1/Events", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE EventsV1beta1/Events/Update", go_opentelemetry_io_otel_attribute.String("client", "EventsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Events"), go_opentelemetry_io_otel_attribute.String("kind", "Event"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedEventsV1beta1Events) UpdateWithEventNamespace(arg0 *k8s_io_api_events_v1beta1.Event) (*k8s_io_api_events_v1beta1.Event, error) { - return c.inner.UpdateWithEventNamespace(arg0) + ret0, ret1 := c.inner.UpdateWithEventNamespace(arg0) + return ret0, ret1 } func (c *wrappedEventsV1beta1Events) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "EventsV1beta1/Events", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE EventsV1beta1/Events/Watch", go_opentelemetry_io_otel_attribute.String("client", "EventsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Events"), go_opentelemetry_io_otel_attribute.String("kind", "Event"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedExtensionsV1beta1DaemonSets wrapper @@ -8685,145 +11287,200 @@ func newExtensionsV1beta1DaemonSets(inner k8s_io_client_go_kubernetes_typed_exte func (c *wrappedExtensionsV1beta1DaemonSets) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_extensions_v1beta1.DaemonSetApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_extensions_v1beta1.DaemonSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/DaemonSets", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/DaemonSets/Apply", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "DaemonSets"), go_opentelemetry_io_otel_attribute.String("kind", "DaemonSet"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedExtensionsV1beta1DaemonSets) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_extensions_v1beta1.DaemonSetApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_extensions_v1beta1.DaemonSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/DaemonSets", - "ApplyStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/DaemonSets/ApplyStatus", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "DaemonSets"), go_opentelemetry_io_otel_attribute.String("kind", "DaemonSet"), ) defer span.End() arg0 = ctx - return c.inner.ApplyStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.ApplyStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedExtensionsV1beta1DaemonSets) Create(arg0 context.Context, arg1 *k8s_io_api_extensions_v1beta1.DaemonSet, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_extensions_v1beta1.DaemonSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/DaemonSets", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/DaemonSets/Create", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "DaemonSets"), go_opentelemetry_io_otel_attribute.String("kind", "DaemonSet"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedExtensionsV1beta1DaemonSets) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/DaemonSets", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/DaemonSets/Delete", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "DaemonSets"), go_opentelemetry_io_otel_attribute.String("kind", "DaemonSet"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedExtensionsV1beta1DaemonSets) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/DaemonSets", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/DaemonSets/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "DaemonSets"), go_opentelemetry_io_otel_attribute.String("kind", "DaemonSet"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedExtensionsV1beta1DaemonSets) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_extensions_v1beta1.DaemonSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/DaemonSets", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/DaemonSets/Get", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "DaemonSets"), go_opentelemetry_io_otel_attribute.String("kind", "DaemonSet"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedExtensionsV1beta1DaemonSets) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_extensions_v1beta1.DaemonSetList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/DaemonSets", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/DaemonSets/List", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "DaemonSets"), go_opentelemetry_io_otel_attribute.String("kind", "DaemonSet"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedExtensionsV1beta1DaemonSets) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_extensions_v1beta1.DaemonSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/DaemonSets", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/DaemonSets/Patch", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "DaemonSets"), go_opentelemetry_io_otel_attribute.String("kind", "DaemonSet"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedExtensionsV1beta1DaemonSets) Update(arg0 context.Context, arg1 *k8s_io_api_extensions_v1beta1.DaemonSet, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_extensions_v1beta1.DaemonSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/DaemonSets", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/DaemonSets/Update", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "DaemonSets"), go_opentelemetry_io_otel_attribute.String("kind", "DaemonSet"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedExtensionsV1beta1DaemonSets) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_extensions_v1beta1.DaemonSet, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_extensions_v1beta1.DaemonSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/DaemonSets", - "UpdateStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/DaemonSets/UpdateStatus", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "DaemonSets"), go_opentelemetry_io_otel_attribute.String("kind", "DaemonSet"), ) defer span.End() arg0 = ctx - return c.inner.UpdateStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.UpdateStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedExtensionsV1beta1DaemonSets) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/DaemonSets", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/DaemonSets/Watch", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "DaemonSets"), go_opentelemetry_io_otel_attribute.String("kind", "DaemonSet"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedExtensionsV1beta1Deployments wrapper @@ -8837,197 +11494,272 @@ func newExtensionsV1beta1Deployments(inner k8s_io_client_go_kubernetes_typed_ext func (c *wrappedExtensionsV1beta1Deployments) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_extensions_v1beta1.DeploymentApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_extensions_v1beta1.Deployment, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/Deployments", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/Deployments/Apply", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Deployments"), go_opentelemetry_io_otel_attribute.String("kind", "Deployment"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedExtensionsV1beta1Deployments) ApplyScale(arg0 context.Context, arg1 string, arg2 *k8s_io_client_go_applyconfigurations_extensions_v1beta1.ScaleApplyConfiguration, arg3 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_extensions_v1beta1.Scale, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/Deployments", - "ApplyScale", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/Deployments/ApplyScale", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Deployments"), go_opentelemetry_io_otel_attribute.String("kind", "Deployment"), ) defer span.End() arg0 = ctx - return c.inner.ApplyScale(arg0, arg1, arg2, arg3) + ret0, ret1 := c.inner.ApplyScale(arg0, arg1, arg2, arg3) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedExtensionsV1beta1Deployments) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_extensions_v1beta1.DeploymentApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_extensions_v1beta1.Deployment, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/Deployments", - "ApplyStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/Deployments/ApplyStatus", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Deployments"), go_opentelemetry_io_otel_attribute.String("kind", "Deployment"), ) defer span.End() arg0 = ctx - return c.inner.ApplyStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.ApplyStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedExtensionsV1beta1Deployments) Create(arg0 context.Context, arg1 *k8s_io_api_extensions_v1beta1.Deployment, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_extensions_v1beta1.Deployment, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/Deployments", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/Deployments/Create", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Deployments"), go_opentelemetry_io_otel_attribute.String("kind", "Deployment"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedExtensionsV1beta1Deployments) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/Deployments", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/Deployments/Delete", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Deployments"), go_opentelemetry_io_otel_attribute.String("kind", "Deployment"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedExtensionsV1beta1Deployments) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/Deployments", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/Deployments/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Deployments"), go_opentelemetry_io_otel_attribute.String("kind", "Deployment"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedExtensionsV1beta1Deployments) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_extensions_v1beta1.Deployment, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/Deployments", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/Deployments/Get", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Deployments"), go_opentelemetry_io_otel_attribute.String("kind", "Deployment"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedExtensionsV1beta1Deployments) GetScale(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_extensions_v1beta1.Scale, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/Deployments", - "GetScale", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/Deployments/GetScale", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Deployments"), go_opentelemetry_io_otel_attribute.String("kind", "Deployment"), ) defer span.End() arg0 = ctx - return c.inner.GetScale(arg0, arg1, arg2) + ret0, ret1 := c.inner.GetScale(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedExtensionsV1beta1Deployments) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_extensions_v1beta1.DeploymentList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/Deployments", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/Deployments/List", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Deployments"), go_opentelemetry_io_otel_attribute.String("kind", "Deployment"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedExtensionsV1beta1Deployments) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_extensions_v1beta1.Deployment, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/Deployments", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/Deployments/Patch", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Deployments"), go_opentelemetry_io_otel_attribute.String("kind", "Deployment"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedExtensionsV1beta1Deployments) Rollback(arg0 context.Context, arg1 *k8s_io_api_extensions_v1beta1.DeploymentRollback, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/Deployments", - "Rollback", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/Deployments/Rollback", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Deployments"), go_opentelemetry_io_otel_attribute.String("kind", "Deployment"), ) defer span.End() arg0 = ctx - return c.inner.Rollback(arg0, arg1, arg2) + ret0 := c.inner.Rollback(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedExtensionsV1beta1Deployments) Update(arg0 context.Context, arg1 *k8s_io_api_extensions_v1beta1.Deployment, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_extensions_v1beta1.Deployment, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/Deployments", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/Deployments/Update", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Deployments"), go_opentelemetry_io_otel_attribute.String("kind", "Deployment"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedExtensionsV1beta1Deployments) UpdateScale(arg0 context.Context, arg1 string, arg2 *k8s_io_api_extensions_v1beta1.Scale, arg3 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_extensions_v1beta1.Scale, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/Deployments", - "UpdateScale", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/Deployments/UpdateScale", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Deployments"), go_opentelemetry_io_otel_attribute.String("kind", "Deployment"), ) defer span.End() arg0 = ctx - return c.inner.UpdateScale(arg0, arg1, arg2, arg3) + ret0, ret1 := c.inner.UpdateScale(arg0, arg1, arg2, arg3) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedExtensionsV1beta1Deployments) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_extensions_v1beta1.Deployment, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_extensions_v1beta1.Deployment, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/Deployments", - "UpdateStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/Deployments/UpdateStatus", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Deployments"), go_opentelemetry_io_otel_attribute.String("kind", "Deployment"), ) defer span.End() arg0 = ctx - return c.inner.UpdateStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.UpdateStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedExtensionsV1beta1Deployments) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/Deployments", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/Deployments/Watch", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Deployments"), go_opentelemetry_io_otel_attribute.String("kind", "Deployment"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedExtensionsV1beta1Ingresses wrapper @@ -9041,145 +11773,200 @@ func newExtensionsV1beta1Ingresses(inner k8s_io_client_go_kubernetes_typed_exten func (c *wrappedExtensionsV1beta1Ingresses) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_extensions_v1beta1.IngressApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_extensions_v1beta1.Ingress, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/Ingresses", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/Ingresses/Apply", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Ingresses"), go_opentelemetry_io_otel_attribute.String("kind", "Ingress"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedExtensionsV1beta1Ingresses) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_extensions_v1beta1.IngressApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_extensions_v1beta1.Ingress, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/Ingresses", - "ApplyStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/Ingresses/ApplyStatus", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Ingresses"), go_opentelemetry_io_otel_attribute.String("kind", "Ingress"), ) defer span.End() arg0 = ctx - return c.inner.ApplyStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.ApplyStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedExtensionsV1beta1Ingresses) Create(arg0 context.Context, arg1 *k8s_io_api_extensions_v1beta1.Ingress, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_extensions_v1beta1.Ingress, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/Ingresses", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/Ingresses/Create", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Ingresses"), go_opentelemetry_io_otel_attribute.String("kind", "Ingress"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedExtensionsV1beta1Ingresses) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/Ingresses", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/Ingresses/Delete", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Ingresses"), go_opentelemetry_io_otel_attribute.String("kind", "Ingress"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedExtensionsV1beta1Ingresses) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/Ingresses", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/Ingresses/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Ingresses"), go_opentelemetry_io_otel_attribute.String("kind", "Ingress"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedExtensionsV1beta1Ingresses) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_extensions_v1beta1.Ingress, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/Ingresses", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/Ingresses/Get", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Ingresses"), go_opentelemetry_io_otel_attribute.String("kind", "Ingress"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedExtensionsV1beta1Ingresses) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_extensions_v1beta1.IngressList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/Ingresses", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/Ingresses/List", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Ingresses"), go_opentelemetry_io_otel_attribute.String("kind", "Ingress"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedExtensionsV1beta1Ingresses) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_extensions_v1beta1.Ingress, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/Ingresses", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/Ingresses/Patch", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Ingresses"), go_opentelemetry_io_otel_attribute.String("kind", "Ingress"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedExtensionsV1beta1Ingresses) Update(arg0 context.Context, arg1 *k8s_io_api_extensions_v1beta1.Ingress, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_extensions_v1beta1.Ingress, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/Ingresses", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/Ingresses/Update", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Ingresses"), go_opentelemetry_io_otel_attribute.String("kind", "Ingress"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedExtensionsV1beta1Ingresses) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_extensions_v1beta1.Ingress, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_extensions_v1beta1.Ingress, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/Ingresses", - "UpdateStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/Ingresses/UpdateStatus", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Ingresses"), go_opentelemetry_io_otel_attribute.String("kind", "Ingress"), ) defer span.End() arg0 = ctx - return c.inner.UpdateStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.UpdateStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedExtensionsV1beta1Ingresses) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/Ingresses", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/Ingresses/Watch", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Ingresses"), go_opentelemetry_io_otel_attribute.String("kind", "Ingress"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedExtensionsV1beta1NetworkPolicies wrapper @@ -9193,145 +11980,200 @@ func newExtensionsV1beta1NetworkPolicies(inner k8s_io_client_go_kubernetes_typed func (c *wrappedExtensionsV1beta1NetworkPolicies) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_extensions_v1beta1.NetworkPolicyApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_extensions_v1beta1.NetworkPolicy, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/NetworkPolicies", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/NetworkPolicies/Apply", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "NetworkPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "NetworkPolicy"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedExtensionsV1beta1NetworkPolicies) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_extensions_v1beta1.NetworkPolicyApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_extensions_v1beta1.NetworkPolicy, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/NetworkPolicies", - "ApplyStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/NetworkPolicies/ApplyStatus", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "NetworkPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "NetworkPolicy"), ) defer span.End() arg0 = ctx - return c.inner.ApplyStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.ApplyStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedExtensionsV1beta1NetworkPolicies) Create(arg0 context.Context, arg1 *k8s_io_api_extensions_v1beta1.NetworkPolicy, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_extensions_v1beta1.NetworkPolicy, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/NetworkPolicies", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/NetworkPolicies/Create", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "NetworkPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "NetworkPolicy"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedExtensionsV1beta1NetworkPolicies) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/NetworkPolicies", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/NetworkPolicies/Delete", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "NetworkPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "NetworkPolicy"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedExtensionsV1beta1NetworkPolicies) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/NetworkPolicies", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/NetworkPolicies/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "NetworkPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "NetworkPolicy"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedExtensionsV1beta1NetworkPolicies) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_extensions_v1beta1.NetworkPolicy, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/NetworkPolicies", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/NetworkPolicies/Get", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "NetworkPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "NetworkPolicy"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedExtensionsV1beta1NetworkPolicies) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_extensions_v1beta1.NetworkPolicyList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/NetworkPolicies", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/NetworkPolicies/List", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "NetworkPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "NetworkPolicy"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedExtensionsV1beta1NetworkPolicies) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_extensions_v1beta1.NetworkPolicy, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/NetworkPolicies", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/NetworkPolicies/Patch", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "NetworkPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "NetworkPolicy"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedExtensionsV1beta1NetworkPolicies) Update(arg0 context.Context, arg1 *k8s_io_api_extensions_v1beta1.NetworkPolicy, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_extensions_v1beta1.NetworkPolicy, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/NetworkPolicies", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/NetworkPolicies/Update", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "NetworkPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "NetworkPolicy"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedExtensionsV1beta1NetworkPolicies) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_extensions_v1beta1.NetworkPolicy, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_extensions_v1beta1.NetworkPolicy, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/NetworkPolicies", - "UpdateStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/NetworkPolicies/UpdateStatus", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "NetworkPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "NetworkPolicy"), ) defer span.End() arg0 = ctx - return c.inner.UpdateStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.UpdateStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedExtensionsV1beta1NetworkPolicies) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/NetworkPolicies", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/NetworkPolicies/Watch", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "NetworkPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "NetworkPolicy"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedExtensionsV1beta1PodSecurityPolicies wrapper @@ -9345,119 +12187,164 @@ func newExtensionsV1beta1PodSecurityPolicies(inner k8s_io_client_go_kubernetes_t func (c *wrappedExtensionsV1beta1PodSecurityPolicies) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_extensions_v1beta1.PodSecurityPolicyApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_extensions_v1beta1.PodSecurityPolicy, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/PodSecurityPolicies", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/PodSecurityPolicies/Apply", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "PodSecurityPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "PodSecurityPolicy"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedExtensionsV1beta1PodSecurityPolicies) Create(arg0 context.Context, arg1 *k8s_io_api_extensions_v1beta1.PodSecurityPolicy, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_extensions_v1beta1.PodSecurityPolicy, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/PodSecurityPolicies", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/PodSecurityPolicies/Create", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "PodSecurityPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "PodSecurityPolicy"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedExtensionsV1beta1PodSecurityPolicies) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/PodSecurityPolicies", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/PodSecurityPolicies/Delete", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "PodSecurityPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "PodSecurityPolicy"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedExtensionsV1beta1PodSecurityPolicies) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/PodSecurityPolicies", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/PodSecurityPolicies/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "PodSecurityPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "PodSecurityPolicy"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedExtensionsV1beta1PodSecurityPolicies) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_extensions_v1beta1.PodSecurityPolicy, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/PodSecurityPolicies", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/PodSecurityPolicies/Get", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "PodSecurityPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "PodSecurityPolicy"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedExtensionsV1beta1PodSecurityPolicies) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_extensions_v1beta1.PodSecurityPolicyList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/PodSecurityPolicies", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/PodSecurityPolicies/List", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "PodSecurityPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "PodSecurityPolicy"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedExtensionsV1beta1PodSecurityPolicies) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_extensions_v1beta1.PodSecurityPolicy, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/PodSecurityPolicies", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/PodSecurityPolicies/Patch", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "PodSecurityPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "PodSecurityPolicy"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedExtensionsV1beta1PodSecurityPolicies) Update(arg0 context.Context, arg1 *k8s_io_api_extensions_v1beta1.PodSecurityPolicy, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_extensions_v1beta1.PodSecurityPolicy, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/PodSecurityPolicies", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/PodSecurityPolicies/Update", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "PodSecurityPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "PodSecurityPolicy"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedExtensionsV1beta1PodSecurityPolicies) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/PodSecurityPolicies", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/PodSecurityPolicies/Watch", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "PodSecurityPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "PodSecurityPolicy"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedExtensionsV1beta1ReplicaSets wrapper @@ -9471,184 +12358,254 @@ func newExtensionsV1beta1ReplicaSets(inner k8s_io_client_go_kubernetes_typed_ext func (c *wrappedExtensionsV1beta1ReplicaSets) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_extensions_v1beta1.ReplicaSetApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_extensions_v1beta1.ReplicaSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/ReplicaSets", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/ReplicaSets/Apply", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "ReplicaSets"), go_opentelemetry_io_otel_attribute.String("kind", "ReplicaSet"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedExtensionsV1beta1ReplicaSets) ApplyScale(arg0 context.Context, arg1 string, arg2 *k8s_io_client_go_applyconfigurations_extensions_v1beta1.ScaleApplyConfiguration, arg3 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_extensions_v1beta1.Scale, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/ReplicaSets", - "ApplyScale", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/ReplicaSets/ApplyScale", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "ReplicaSets"), go_opentelemetry_io_otel_attribute.String("kind", "ReplicaSet"), ) defer span.End() arg0 = ctx - return c.inner.ApplyScale(arg0, arg1, arg2, arg3) + ret0, ret1 := c.inner.ApplyScale(arg0, arg1, arg2, arg3) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedExtensionsV1beta1ReplicaSets) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_extensions_v1beta1.ReplicaSetApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_extensions_v1beta1.ReplicaSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/ReplicaSets", - "ApplyStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/ReplicaSets/ApplyStatus", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "ReplicaSets"), go_opentelemetry_io_otel_attribute.String("kind", "ReplicaSet"), ) defer span.End() arg0 = ctx - return c.inner.ApplyStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.ApplyStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedExtensionsV1beta1ReplicaSets) Create(arg0 context.Context, arg1 *k8s_io_api_extensions_v1beta1.ReplicaSet, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_extensions_v1beta1.ReplicaSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/ReplicaSets", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/ReplicaSets/Create", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "ReplicaSets"), go_opentelemetry_io_otel_attribute.String("kind", "ReplicaSet"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedExtensionsV1beta1ReplicaSets) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/ReplicaSets", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/ReplicaSets/Delete", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "ReplicaSets"), go_opentelemetry_io_otel_attribute.String("kind", "ReplicaSet"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedExtensionsV1beta1ReplicaSets) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/ReplicaSets", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/ReplicaSets/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "ReplicaSets"), go_opentelemetry_io_otel_attribute.String("kind", "ReplicaSet"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedExtensionsV1beta1ReplicaSets) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_extensions_v1beta1.ReplicaSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/ReplicaSets", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/ReplicaSets/Get", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "ReplicaSets"), go_opentelemetry_io_otel_attribute.String("kind", "ReplicaSet"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedExtensionsV1beta1ReplicaSets) GetScale(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_extensions_v1beta1.Scale, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/ReplicaSets", - "GetScale", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/ReplicaSets/GetScale", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "ReplicaSets"), go_opentelemetry_io_otel_attribute.String("kind", "ReplicaSet"), ) defer span.End() arg0 = ctx - return c.inner.GetScale(arg0, arg1, arg2) + ret0, ret1 := c.inner.GetScale(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedExtensionsV1beta1ReplicaSets) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_extensions_v1beta1.ReplicaSetList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/ReplicaSets", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/ReplicaSets/List", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "ReplicaSets"), go_opentelemetry_io_otel_attribute.String("kind", "ReplicaSet"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedExtensionsV1beta1ReplicaSets) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_extensions_v1beta1.ReplicaSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/ReplicaSets", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/ReplicaSets/Patch", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "ReplicaSets"), go_opentelemetry_io_otel_attribute.String("kind", "ReplicaSet"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedExtensionsV1beta1ReplicaSets) Update(arg0 context.Context, arg1 *k8s_io_api_extensions_v1beta1.ReplicaSet, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_extensions_v1beta1.ReplicaSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/ReplicaSets", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/ReplicaSets/Update", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "ReplicaSets"), go_opentelemetry_io_otel_attribute.String("kind", "ReplicaSet"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedExtensionsV1beta1ReplicaSets) UpdateScale(arg0 context.Context, arg1 string, arg2 *k8s_io_api_extensions_v1beta1.Scale, arg3 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_extensions_v1beta1.Scale, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/ReplicaSets", - "UpdateScale", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/ReplicaSets/UpdateScale", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "ReplicaSets"), go_opentelemetry_io_otel_attribute.String("kind", "ReplicaSet"), ) defer span.End() arg0 = ctx - return c.inner.UpdateScale(arg0, arg1, arg2, arg3) + ret0, ret1 := c.inner.UpdateScale(arg0, arg1, arg2, arg3) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedExtensionsV1beta1ReplicaSets) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_extensions_v1beta1.ReplicaSet, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_extensions_v1beta1.ReplicaSet, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/ReplicaSets", - "UpdateStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/ReplicaSets/UpdateStatus", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "ReplicaSets"), go_opentelemetry_io_otel_attribute.String("kind", "ReplicaSet"), ) defer span.End() arg0 = ctx - return c.inner.UpdateStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.UpdateStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedExtensionsV1beta1ReplicaSets) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "ExtensionsV1beta1/ReplicaSets", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE ExtensionsV1beta1/ReplicaSets/Watch", go_opentelemetry_io_otel_attribute.String("client", "ExtensionsV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "ReplicaSets"), go_opentelemetry_io_otel_attribute.String("kind", "ReplicaSet"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedFlowcontrolV1alpha1FlowSchemas wrapper @@ -9662,145 +12619,200 @@ func newFlowcontrolV1alpha1FlowSchemas(inner k8s_io_client_go_kubernetes_typed_f func (c *wrappedFlowcontrolV1alpha1FlowSchemas) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_flowcontrol_v1alpha1.FlowSchemaApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_flowcontrol_v1alpha1.FlowSchema, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1alpha1/FlowSchemas", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1alpha1/FlowSchemas/Apply", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "FlowSchemas"), go_opentelemetry_io_otel_attribute.String("kind", "FlowSchema"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedFlowcontrolV1alpha1FlowSchemas) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_flowcontrol_v1alpha1.FlowSchemaApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_flowcontrol_v1alpha1.FlowSchema, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1alpha1/FlowSchemas", - "ApplyStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1alpha1/FlowSchemas/ApplyStatus", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "FlowSchemas"), go_opentelemetry_io_otel_attribute.String("kind", "FlowSchema"), ) defer span.End() arg0 = ctx - return c.inner.ApplyStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.ApplyStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedFlowcontrolV1alpha1FlowSchemas) Create(arg0 context.Context, arg1 *k8s_io_api_flowcontrol_v1alpha1.FlowSchema, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_flowcontrol_v1alpha1.FlowSchema, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1alpha1/FlowSchemas", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1alpha1/FlowSchemas/Create", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "FlowSchemas"), go_opentelemetry_io_otel_attribute.String("kind", "FlowSchema"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedFlowcontrolV1alpha1FlowSchemas) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1alpha1/FlowSchemas", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1alpha1/FlowSchemas/Delete", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "FlowSchemas"), go_opentelemetry_io_otel_attribute.String("kind", "FlowSchema"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedFlowcontrolV1alpha1FlowSchemas) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1alpha1/FlowSchemas", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1alpha1/FlowSchemas/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "FlowSchemas"), go_opentelemetry_io_otel_attribute.String("kind", "FlowSchema"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedFlowcontrolV1alpha1FlowSchemas) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_flowcontrol_v1alpha1.FlowSchema, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1alpha1/FlowSchemas", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1alpha1/FlowSchemas/Get", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "FlowSchemas"), go_opentelemetry_io_otel_attribute.String("kind", "FlowSchema"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedFlowcontrolV1alpha1FlowSchemas) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_flowcontrol_v1alpha1.FlowSchemaList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1alpha1/FlowSchemas", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1alpha1/FlowSchemas/List", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "FlowSchemas"), go_opentelemetry_io_otel_attribute.String("kind", "FlowSchema"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedFlowcontrolV1alpha1FlowSchemas) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_flowcontrol_v1alpha1.FlowSchema, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1alpha1/FlowSchemas", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1alpha1/FlowSchemas/Patch", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "FlowSchemas"), go_opentelemetry_io_otel_attribute.String("kind", "FlowSchema"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedFlowcontrolV1alpha1FlowSchemas) Update(arg0 context.Context, arg1 *k8s_io_api_flowcontrol_v1alpha1.FlowSchema, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_flowcontrol_v1alpha1.FlowSchema, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1alpha1/FlowSchemas", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1alpha1/FlowSchemas/Update", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "FlowSchemas"), go_opentelemetry_io_otel_attribute.String("kind", "FlowSchema"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedFlowcontrolV1alpha1FlowSchemas) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_flowcontrol_v1alpha1.FlowSchema, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_flowcontrol_v1alpha1.FlowSchema, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1alpha1/FlowSchemas", - "UpdateStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1alpha1/FlowSchemas/UpdateStatus", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "FlowSchemas"), go_opentelemetry_io_otel_attribute.String("kind", "FlowSchema"), ) defer span.End() arg0 = ctx - return c.inner.UpdateStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.UpdateStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedFlowcontrolV1alpha1FlowSchemas) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1alpha1/FlowSchemas", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1alpha1/FlowSchemas/Watch", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "FlowSchemas"), go_opentelemetry_io_otel_attribute.String("kind", "FlowSchema"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedFlowcontrolV1alpha1PriorityLevelConfigurations wrapper @@ -9814,145 +12826,200 @@ func newFlowcontrolV1alpha1PriorityLevelConfigurations(inner k8s_io_client_go_ku func (c *wrappedFlowcontrolV1alpha1PriorityLevelConfigurations) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_flowcontrol_v1alpha1.PriorityLevelConfigurationApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_flowcontrol_v1alpha1.PriorityLevelConfiguration, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1alpha1/PriorityLevelConfigurations", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1alpha1/PriorityLevelConfigurations/Apply", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityLevelConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityLevelConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedFlowcontrolV1alpha1PriorityLevelConfigurations) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_flowcontrol_v1alpha1.PriorityLevelConfigurationApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_flowcontrol_v1alpha1.PriorityLevelConfiguration, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1alpha1/PriorityLevelConfigurations", - "ApplyStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1alpha1/PriorityLevelConfigurations/ApplyStatus", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityLevelConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityLevelConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.ApplyStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.ApplyStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedFlowcontrolV1alpha1PriorityLevelConfigurations) Create(arg0 context.Context, arg1 *k8s_io_api_flowcontrol_v1alpha1.PriorityLevelConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_flowcontrol_v1alpha1.PriorityLevelConfiguration, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1alpha1/PriorityLevelConfigurations", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1alpha1/PriorityLevelConfigurations/Create", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityLevelConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityLevelConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedFlowcontrolV1alpha1PriorityLevelConfigurations) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1alpha1/PriorityLevelConfigurations", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1alpha1/PriorityLevelConfigurations/Delete", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityLevelConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityLevelConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedFlowcontrolV1alpha1PriorityLevelConfigurations) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1alpha1/PriorityLevelConfigurations", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1alpha1/PriorityLevelConfigurations/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityLevelConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityLevelConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedFlowcontrolV1alpha1PriorityLevelConfigurations) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_flowcontrol_v1alpha1.PriorityLevelConfiguration, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1alpha1/PriorityLevelConfigurations", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1alpha1/PriorityLevelConfigurations/Get", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityLevelConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityLevelConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedFlowcontrolV1alpha1PriorityLevelConfigurations) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_flowcontrol_v1alpha1.PriorityLevelConfigurationList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1alpha1/PriorityLevelConfigurations", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1alpha1/PriorityLevelConfigurations/List", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityLevelConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityLevelConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedFlowcontrolV1alpha1PriorityLevelConfigurations) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_flowcontrol_v1alpha1.PriorityLevelConfiguration, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1alpha1/PriorityLevelConfigurations", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1alpha1/PriorityLevelConfigurations/Patch", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityLevelConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityLevelConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedFlowcontrolV1alpha1PriorityLevelConfigurations) Update(arg0 context.Context, arg1 *k8s_io_api_flowcontrol_v1alpha1.PriorityLevelConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_flowcontrol_v1alpha1.PriorityLevelConfiguration, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1alpha1/PriorityLevelConfigurations", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1alpha1/PriorityLevelConfigurations/Update", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityLevelConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityLevelConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedFlowcontrolV1alpha1PriorityLevelConfigurations) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_flowcontrol_v1alpha1.PriorityLevelConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_flowcontrol_v1alpha1.PriorityLevelConfiguration, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1alpha1/PriorityLevelConfigurations", - "UpdateStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1alpha1/PriorityLevelConfigurations/UpdateStatus", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityLevelConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityLevelConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.UpdateStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.UpdateStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedFlowcontrolV1alpha1PriorityLevelConfigurations) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1alpha1/PriorityLevelConfigurations", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1alpha1/PriorityLevelConfigurations/Watch", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityLevelConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityLevelConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedFlowcontrolV1beta1FlowSchemas wrapper @@ -9966,145 +13033,200 @@ func newFlowcontrolV1beta1FlowSchemas(inner k8s_io_client_go_kubernetes_typed_fl func (c *wrappedFlowcontrolV1beta1FlowSchemas) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_flowcontrol_v1beta1.FlowSchemaApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_flowcontrol_v1beta1.FlowSchema, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1beta1/FlowSchemas", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1beta1/FlowSchemas/Apply", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "FlowSchemas"), go_opentelemetry_io_otel_attribute.String("kind", "FlowSchema"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedFlowcontrolV1beta1FlowSchemas) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_flowcontrol_v1beta1.FlowSchemaApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_flowcontrol_v1beta1.FlowSchema, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1beta1/FlowSchemas", - "ApplyStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1beta1/FlowSchemas/ApplyStatus", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "FlowSchemas"), go_opentelemetry_io_otel_attribute.String("kind", "FlowSchema"), ) defer span.End() arg0 = ctx - return c.inner.ApplyStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.ApplyStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedFlowcontrolV1beta1FlowSchemas) Create(arg0 context.Context, arg1 *k8s_io_api_flowcontrol_v1beta1.FlowSchema, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_flowcontrol_v1beta1.FlowSchema, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1beta1/FlowSchemas", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1beta1/FlowSchemas/Create", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "FlowSchemas"), go_opentelemetry_io_otel_attribute.String("kind", "FlowSchema"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedFlowcontrolV1beta1FlowSchemas) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1beta1/FlowSchemas", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1beta1/FlowSchemas/Delete", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "FlowSchemas"), go_opentelemetry_io_otel_attribute.String("kind", "FlowSchema"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedFlowcontrolV1beta1FlowSchemas) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1beta1/FlowSchemas", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1beta1/FlowSchemas/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "FlowSchemas"), go_opentelemetry_io_otel_attribute.String("kind", "FlowSchema"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedFlowcontrolV1beta1FlowSchemas) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_flowcontrol_v1beta1.FlowSchema, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1beta1/FlowSchemas", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1beta1/FlowSchemas/Get", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "FlowSchemas"), go_opentelemetry_io_otel_attribute.String("kind", "FlowSchema"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedFlowcontrolV1beta1FlowSchemas) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_flowcontrol_v1beta1.FlowSchemaList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1beta1/FlowSchemas", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1beta1/FlowSchemas/List", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "FlowSchemas"), go_opentelemetry_io_otel_attribute.String("kind", "FlowSchema"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedFlowcontrolV1beta1FlowSchemas) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_flowcontrol_v1beta1.FlowSchema, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1beta1/FlowSchemas", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1beta1/FlowSchemas/Patch", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "FlowSchemas"), go_opentelemetry_io_otel_attribute.String("kind", "FlowSchema"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedFlowcontrolV1beta1FlowSchemas) Update(arg0 context.Context, arg1 *k8s_io_api_flowcontrol_v1beta1.FlowSchema, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_flowcontrol_v1beta1.FlowSchema, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1beta1/FlowSchemas", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1beta1/FlowSchemas/Update", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "FlowSchemas"), go_opentelemetry_io_otel_attribute.String("kind", "FlowSchema"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedFlowcontrolV1beta1FlowSchemas) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_flowcontrol_v1beta1.FlowSchema, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_flowcontrol_v1beta1.FlowSchema, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1beta1/FlowSchemas", - "UpdateStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1beta1/FlowSchemas/UpdateStatus", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "FlowSchemas"), go_opentelemetry_io_otel_attribute.String("kind", "FlowSchema"), ) defer span.End() arg0 = ctx - return c.inner.UpdateStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.UpdateStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedFlowcontrolV1beta1FlowSchemas) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1beta1/FlowSchemas", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1beta1/FlowSchemas/Watch", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "FlowSchemas"), go_opentelemetry_io_otel_attribute.String("kind", "FlowSchema"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedFlowcontrolV1beta1PriorityLevelConfigurations wrapper @@ -10118,145 +13240,200 @@ func newFlowcontrolV1beta1PriorityLevelConfigurations(inner k8s_io_client_go_kub func (c *wrappedFlowcontrolV1beta1PriorityLevelConfigurations) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_flowcontrol_v1beta1.PriorityLevelConfigurationApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_flowcontrol_v1beta1.PriorityLevelConfiguration, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1beta1/PriorityLevelConfigurations", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1beta1/PriorityLevelConfigurations/Apply", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityLevelConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityLevelConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedFlowcontrolV1beta1PriorityLevelConfigurations) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_flowcontrol_v1beta1.PriorityLevelConfigurationApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_flowcontrol_v1beta1.PriorityLevelConfiguration, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1beta1/PriorityLevelConfigurations", - "ApplyStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1beta1/PriorityLevelConfigurations/ApplyStatus", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityLevelConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityLevelConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.ApplyStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.ApplyStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedFlowcontrolV1beta1PriorityLevelConfigurations) Create(arg0 context.Context, arg1 *k8s_io_api_flowcontrol_v1beta1.PriorityLevelConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_flowcontrol_v1beta1.PriorityLevelConfiguration, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1beta1/PriorityLevelConfigurations", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1beta1/PriorityLevelConfigurations/Create", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityLevelConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityLevelConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedFlowcontrolV1beta1PriorityLevelConfigurations) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1beta1/PriorityLevelConfigurations", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1beta1/PriorityLevelConfigurations/Delete", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityLevelConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityLevelConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedFlowcontrolV1beta1PriorityLevelConfigurations) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1beta1/PriorityLevelConfigurations", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1beta1/PriorityLevelConfigurations/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityLevelConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityLevelConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedFlowcontrolV1beta1PriorityLevelConfigurations) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_flowcontrol_v1beta1.PriorityLevelConfiguration, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1beta1/PriorityLevelConfigurations", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1beta1/PriorityLevelConfigurations/Get", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityLevelConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityLevelConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedFlowcontrolV1beta1PriorityLevelConfigurations) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_flowcontrol_v1beta1.PriorityLevelConfigurationList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1beta1/PriorityLevelConfigurations", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1beta1/PriorityLevelConfigurations/List", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityLevelConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityLevelConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedFlowcontrolV1beta1PriorityLevelConfigurations) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_flowcontrol_v1beta1.PriorityLevelConfiguration, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1beta1/PriorityLevelConfigurations", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1beta1/PriorityLevelConfigurations/Patch", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityLevelConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityLevelConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedFlowcontrolV1beta1PriorityLevelConfigurations) Update(arg0 context.Context, arg1 *k8s_io_api_flowcontrol_v1beta1.PriorityLevelConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_flowcontrol_v1beta1.PriorityLevelConfiguration, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1beta1/PriorityLevelConfigurations", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1beta1/PriorityLevelConfigurations/Update", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityLevelConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityLevelConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedFlowcontrolV1beta1PriorityLevelConfigurations) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_flowcontrol_v1beta1.PriorityLevelConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_flowcontrol_v1beta1.PriorityLevelConfiguration, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1beta1/PriorityLevelConfigurations", - "UpdateStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1beta1/PriorityLevelConfigurations/UpdateStatus", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityLevelConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityLevelConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.UpdateStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.UpdateStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedFlowcontrolV1beta1PriorityLevelConfigurations) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1beta1/PriorityLevelConfigurations", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1beta1/PriorityLevelConfigurations/Watch", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityLevelConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityLevelConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedFlowcontrolV1beta2FlowSchemas wrapper @@ -10270,145 +13447,200 @@ func newFlowcontrolV1beta2FlowSchemas(inner k8s_io_client_go_kubernetes_typed_fl func (c *wrappedFlowcontrolV1beta2FlowSchemas) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_flowcontrol_v1beta2.FlowSchemaApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_flowcontrol_v1beta2.FlowSchema, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1beta2/FlowSchemas", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1beta2/FlowSchemas/Apply", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "FlowSchemas"), go_opentelemetry_io_otel_attribute.String("kind", "FlowSchema"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedFlowcontrolV1beta2FlowSchemas) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_flowcontrol_v1beta2.FlowSchemaApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_flowcontrol_v1beta2.FlowSchema, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1beta2/FlowSchemas", - "ApplyStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1beta2/FlowSchemas/ApplyStatus", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "FlowSchemas"), go_opentelemetry_io_otel_attribute.String("kind", "FlowSchema"), ) defer span.End() arg0 = ctx - return c.inner.ApplyStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.ApplyStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedFlowcontrolV1beta2FlowSchemas) Create(arg0 context.Context, arg1 *k8s_io_api_flowcontrol_v1beta2.FlowSchema, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_flowcontrol_v1beta2.FlowSchema, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1beta2/FlowSchemas", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1beta2/FlowSchemas/Create", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "FlowSchemas"), go_opentelemetry_io_otel_attribute.String("kind", "FlowSchema"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedFlowcontrolV1beta2FlowSchemas) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1beta2/FlowSchemas", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1beta2/FlowSchemas/Delete", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "FlowSchemas"), go_opentelemetry_io_otel_attribute.String("kind", "FlowSchema"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedFlowcontrolV1beta2FlowSchemas) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1beta2/FlowSchemas", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1beta2/FlowSchemas/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "FlowSchemas"), go_opentelemetry_io_otel_attribute.String("kind", "FlowSchema"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedFlowcontrolV1beta2FlowSchemas) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_flowcontrol_v1beta2.FlowSchema, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1beta2/FlowSchemas", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1beta2/FlowSchemas/Get", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "FlowSchemas"), go_opentelemetry_io_otel_attribute.String("kind", "FlowSchema"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedFlowcontrolV1beta2FlowSchemas) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_flowcontrol_v1beta2.FlowSchemaList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1beta2/FlowSchemas", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1beta2/FlowSchemas/List", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "FlowSchemas"), go_opentelemetry_io_otel_attribute.String("kind", "FlowSchema"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedFlowcontrolV1beta2FlowSchemas) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_flowcontrol_v1beta2.FlowSchema, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1beta2/FlowSchemas", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1beta2/FlowSchemas/Patch", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "FlowSchemas"), go_opentelemetry_io_otel_attribute.String("kind", "FlowSchema"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedFlowcontrolV1beta2FlowSchemas) Update(arg0 context.Context, arg1 *k8s_io_api_flowcontrol_v1beta2.FlowSchema, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_flowcontrol_v1beta2.FlowSchema, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1beta2/FlowSchemas", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1beta2/FlowSchemas/Update", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "FlowSchemas"), go_opentelemetry_io_otel_attribute.String("kind", "FlowSchema"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedFlowcontrolV1beta2FlowSchemas) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_flowcontrol_v1beta2.FlowSchema, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_flowcontrol_v1beta2.FlowSchema, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1beta2/FlowSchemas", - "UpdateStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1beta2/FlowSchemas/UpdateStatus", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "FlowSchemas"), go_opentelemetry_io_otel_attribute.String("kind", "FlowSchema"), ) defer span.End() arg0 = ctx - return c.inner.UpdateStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.UpdateStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedFlowcontrolV1beta2FlowSchemas) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1beta2/FlowSchemas", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1beta2/FlowSchemas/Watch", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "FlowSchemas"), go_opentelemetry_io_otel_attribute.String("kind", "FlowSchema"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedFlowcontrolV1beta2PriorityLevelConfigurations wrapper @@ -10422,145 +13654,200 @@ func newFlowcontrolV1beta2PriorityLevelConfigurations(inner k8s_io_client_go_kub func (c *wrappedFlowcontrolV1beta2PriorityLevelConfigurations) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_flowcontrol_v1beta2.PriorityLevelConfigurationApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_flowcontrol_v1beta2.PriorityLevelConfiguration, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1beta2/PriorityLevelConfigurations", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1beta2/PriorityLevelConfigurations/Apply", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityLevelConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityLevelConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedFlowcontrolV1beta2PriorityLevelConfigurations) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_flowcontrol_v1beta2.PriorityLevelConfigurationApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_flowcontrol_v1beta2.PriorityLevelConfiguration, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1beta2/PriorityLevelConfigurations", - "ApplyStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1beta2/PriorityLevelConfigurations/ApplyStatus", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityLevelConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityLevelConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.ApplyStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.ApplyStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedFlowcontrolV1beta2PriorityLevelConfigurations) Create(arg0 context.Context, arg1 *k8s_io_api_flowcontrol_v1beta2.PriorityLevelConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_flowcontrol_v1beta2.PriorityLevelConfiguration, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1beta2/PriorityLevelConfigurations", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1beta2/PriorityLevelConfigurations/Create", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityLevelConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityLevelConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedFlowcontrolV1beta2PriorityLevelConfigurations) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1beta2/PriorityLevelConfigurations", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1beta2/PriorityLevelConfigurations/Delete", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityLevelConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityLevelConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedFlowcontrolV1beta2PriorityLevelConfigurations) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1beta2/PriorityLevelConfigurations", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1beta2/PriorityLevelConfigurations/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityLevelConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityLevelConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedFlowcontrolV1beta2PriorityLevelConfigurations) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_flowcontrol_v1beta2.PriorityLevelConfiguration, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1beta2/PriorityLevelConfigurations", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1beta2/PriorityLevelConfigurations/Get", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityLevelConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityLevelConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedFlowcontrolV1beta2PriorityLevelConfigurations) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_flowcontrol_v1beta2.PriorityLevelConfigurationList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1beta2/PriorityLevelConfigurations", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1beta2/PriorityLevelConfigurations/List", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityLevelConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityLevelConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedFlowcontrolV1beta2PriorityLevelConfigurations) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_flowcontrol_v1beta2.PriorityLevelConfiguration, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1beta2/PriorityLevelConfigurations", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1beta2/PriorityLevelConfigurations/Patch", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityLevelConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityLevelConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedFlowcontrolV1beta2PriorityLevelConfigurations) Update(arg0 context.Context, arg1 *k8s_io_api_flowcontrol_v1beta2.PriorityLevelConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_flowcontrol_v1beta2.PriorityLevelConfiguration, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1beta2/PriorityLevelConfigurations", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1beta2/PriorityLevelConfigurations/Update", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityLevelConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityLevelConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedFlowcontrolV1beta2PriorityLevelConfigurations) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_flowcontrol_v1beta2.PriorityLevelConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_flowcontrol_v1beta2.PriorityLevelConfiguration, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1beta2/PriorityLevelConfigurations", - "UpdateStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1beta2/PriorityLevelConfigurations/UpdateStatus", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityLevelConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityLevelConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.UpdateStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.UpdateStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedFlowcontrolV1beta2PriorityLevelConfigurations) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "FlowcontrolV1beta2/PriorityLevelConfigurations", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE FlowcontrolV1beta2/PriorityLevelConfigurations/Watch", go_opentelemetry_io_otel_attribute.String("client", "FlowcontrolV1beta2"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityLevelConfigurations"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityLevelConfiguration"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedInternalV1alpha1StorageVersions wrapper @@ -10574,145 +13861,200 @@ func newInternalV1alpha1StorageVersions(inner k8s_io_client_go_kubernetes_typed_ func (c *wrappedInternalV1alpha1StorageVersions) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_apiserverinternal_v1alpha1.StorageVersionApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_apiserverinternal_v1alpha1.StorageVersion, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "InternalV1alpha1/StorageVersions", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE InternalV1alpha1/StorageVersions/Apply", go_opentelemetry_io_otel_attribute.String("client", "InternalV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "StorageVersions"), go_opentelemetry_io_otel_attribute.String("kind", "StorageVersion"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedInternalV1alpha1StorageVersions) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_apiserverinternal_v1alpha1.StorageVersionApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_apiserverinternal_v1alpha1.StorageVersion, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "InternalV1alpha1/StorageVersions", - "ApplyStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE InternalV1alpha1/StorageVersions/ApplyStatus", go_opentelemetry_io_otel_attribute.String("client", "InternalV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "StorageVersions"), go_opentelemetry_io_otel_attribute.String("kind", "StorageVersion"), ) defer span.End() arg0 = ctx - return c.inner.ApplyStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.ApplyStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedInternalV1alpha1StorageVersions) Create(arg0 context.Context, arg1 *k8s_io_api_apiserverinternal_v1alpha1.StorageVersion, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_apiserverinternal_v1alpha1.StorageVersion, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "InternalV1alpha1/StorageVersions", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE InternalV1alpha1/StorageVersions/Create", go_opentelemetry_io_otel_attribute.String("client", "InternalV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "StorageVersions"), go_opentelemetry_io_otel_attribute.String("kind", "StorageVersion"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedInternalV1alpha1StorageVersions) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "InternalV1alpha1/StorageVersions", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE InternalV1alpha1/StorageVersions/Delete", go_opentelemetry_io_otel_attribute.String("client", "InternalV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "StorageVersions"), go_opentelemetry_io_otel_attribute.String("kind", "StorageVersion"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedInternalV1alpha1StorageVersions) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "InternalV1alpha1/StorageVersions", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE InternalV1alpha1/StorageVersions/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "InternalV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "StorageVersions"), go_opentelemetry_io_otel_attribute.String("kind", "StorageVersion"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedInternalV1alpha1StorageVersions) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_apiserverinternal_v1alpha1.StorageVersion, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "InternalV1alpha1/StorageVersions", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE InternalV1alpha1/StorageVersions/Get", go_opentelemetry_io_otel_attribute.String("client", "InternalV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "StorageVersions"), go_opentelemetry_io_otel_attribute.String("kind", "StorageVersion"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedInternalV1alpha1StorageVersions) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_apiserverinternal_v1alpha1.StorageVersionList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "InternalV1alpha1/StorageVersions", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE InternalV1alpha1/StorageVersions/List", go_opentelemetry_io_otel_attribute.String("client", "InternalV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "StorageVersions"), go_opentelemetry_io_otel_attribute.String("kind", "StorageVersion"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedInternalV1alpha1StorageVersions) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_apiserverinternal_v1alpha1.StorageVersion, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "InternalV1alpha1/StorageVersions", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE InternalV1alpha1/StorageVersions/Patch", go_opentelemetry_io_otel_attribute.String("client", "InternalV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "StorageVersions"), go_opentelemetry_io_otel_attribute.String("kind", "StorageVersion"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedInternalV1alpha1StorageVersions) Update(arg0 context.Context, arg1 *k8s_io_api_apiserverinternal_v1alpha1.StorageVersion, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_apiserverinternal_v1alpha1.StorageVersion, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "InternalV1alpha1/StorageVersions", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE InternalV1alpha1/StorageVersions/Update", go_opentelemetry_io_otel_attribute.String("client", "InternalV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "StorageVersions"), go_opentelemetry_io_otel_attribute.String("kind", "StorageVersion"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedInternalV1alpha1StorageVersions) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_apiserverinternal_v1alpha1.StorageVersion, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_apiserverinternal_v1alpha1.StorageVersion, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "InternalV1alpha1/StorageVersions", - "UpdateStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE InternalV1alpha1/StorageVersions/UpdateStatus", go_opentelemetry_io_otel_attribute.String("client", "InternalV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "StorageVersions"), go_opentelemetry_io_otel_attribute.String("kind", "StorageVersion"), ) defer span.End() arg0 = ctx - return c.inner.UpdateStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.UpdateStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedInternalV1alpha1StorageVersions) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "InternalV1alpha1/StorageVersions", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE InternalV1alpha1/StorageVersions/Watch", go_opentelemetry_io_otel_attribute.String("client", "InternalV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "StorageVersions"), go_opentelemetry_io_otel_attribute.String("kind", "StorageVersion"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedNetworkingV1IngressClasses wrapper @@ -10726,119 +14068,164 @@ func newNetworkingV1IngressClasses(inner k8s_io_client_go_kubernetes_typed_netwo func (c *wrappedNetworkingV1IngressClasses) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_networking_v1.IngressClassApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_networking_v1.IngressClass, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1/IngressClasses", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1/IngressClasses/Apply", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1"), go_opentelemetry_io_otel_attribute.String("resource", "IngressClasses"), go_opentelemetry_io_otel_attribute.String("kind", "IngressClass"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNetworkingV1IngressClasses) Create(arg0 context.Context, arg1 *k8s_io_api_networking_v1.IngressClass, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_networking_v1.IngressClass, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1/IngressClasses", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1/IngressClasses/Create", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1"), go_opentelemetry_io_otel_attribute.String("resource", "IngressClasses"), go_opentelemetry_io_otel_attribute.String("kind", "IngressClass"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNetworkingV1IngressClasses) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1/IngressClasses", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1/IngressClasses/Delete", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1"), go_opentelemetry_io_otel_attribute.String("resource", "IngressClasses"), go_opentelemetry_io_otel_attribute.String("kind", "IngressClass"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedNetworkingV1IngressClasses) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1/IngressClasses", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1/IngressClasses/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1"), go_opentelemetry_io_otel_attribute.String("resource", "IngressClasses"), go_opentelemetry_io_otel_attribute.String("kind", "IngressClass"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedNetworkingV1IngressClasses) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_networking_v1.IngressClass, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1/IngressClasses", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1/IngressClasses/Get", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1"), go_opentelemetry_io_otel_attribute.String("resource", "IngressClasses"), go_opentelemetry_io_otel_attribute.String("kind", "IngressClass"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNetworkingV1IngressClasses) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_networking_v1.IngressClassList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1/IngressClasses", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1/IngressClasses/List", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1"), go_opentelemetry_io_otel_attribute.String("resource", "IngressClasses"), go_opentelemetry_io_otel_attribute.String("kind", "IngressClass"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNetworkingV1IngressClasses) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_networking_v1.IngressClass, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1/IngressClasses", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1/IngressClasses/Patch", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1"), go_opentelemetry_io_otel_attribute.String("resource", "IngressClasses"), go_opentelemetry_io_otel_attribute.String("kind", "IngressClass"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNetworkingV1IngressClasses) Update(arg0 context.Context, arg1 *k8s_io_api_networking_v1.IngressClass, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_networking_v1.IngressClass, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1/IngressClasses", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1/IngressClasses/Update", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1"), go_opentelemetry_io_otel_attribute.String("resource", "IngressClasses"), go_opentelemetry_io_otel_attribute.String("kind", "IngressClass"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNetworkingV1IngressClasses) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1/IngressClasses", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1/IngressClasses/Watch", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1"), go_opentelemetry_io_otel_attribute.String("resource", "IngressClasses"), go_opentelemetry_io_otel_attribute.String("kind", "IngressClass"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedNetworkingV1Ingresses wrapper @@ -10852,145 +14239,200 @@ func newNetworkingV1Ingresses(inner k8s_io_client_go_kubernetes_typed_networking func (c *wrappedNetworkingV1Ingresses) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_networking_v1.IngressApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_networking_v1.Ingress, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1/Ingresses", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1/Ingresses/Apply", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1"), go_opentelemetry_io_otel_attribute.String("resource", "Ingresses"), go_opentelemetry_io_otel_attribute.String("kind", "Ingress"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNetworkingV1Ingresses) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_networking_v1.IngressApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_networking_v1.Ingress, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1/Ingresses", - "ApplyStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1/Ingresses/ApplyStatus", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1"), go_opentelemetry_io_otel_attribute.String("resource", "Ingresses"), go_opentelemetry_io_otel_attribute.String("kind", "Ingress"), ) defer span.End() arg0 = ctx - return c.inner.ApplyStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.ApplyStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNetworkingV1Ingresses) Create(arg0 context.Context, arg1 *k8s_io_api_networking_v1.Ingress, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_networking_v1.Ingress, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1/Ingresses", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1/Ingresses/Create", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1"), go_opentelemetry_io_otel_attribute.String("resource", "Ingresses"), go_opentelemetry_io_otel_attribute.String("kind", "Ingress"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNetworkingV1Ingresses) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1/Ingresses", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1/Ingresses/Delete", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1"), go_opentelemetry_io_otel_attribute.String("resource", "Ingresses"), go_opentelemetry_io_otel_attribute.String("kind", "Ingress"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedNetworkingV1Ingresses) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1/Ingresses", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1/Ingresses/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1"), go_opentelemetry_io_otel_attribute.String("resource", "Ingresses"), go_opentelemetry_io_otel_attribute.String("kind", "Ingress"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedNetworkingV1Ingresses) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_networking_v1.Ingress, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1/Ingresses", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1/Ingresses/Get", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1"), go_opentelemetry_io_otel_attribute.String("resource", "Ingresses"), go_opentelemetry_io_otel_attribute.String("kind", "Ingress"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNetworkingV1Ingresses) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_networking_v1.IngressList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1/Ingresses", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1/Ingresses/List", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1"), go_opentelemetry_io_otel_attribute.String("resource", "Ingresses"), go_opentelemetry_io_otel_attribute.String("kind", "Ingress"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNetworkingV1Ingresses) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_networking_v1.Ingress, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1/Ingresses", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1/Ingresses/Patch", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1"), go_opentelemetry_io_otel_attribute.String("resource", "Ingresses"), go_opentelemetry_io_otel_attribute.String("kind", "Ingress"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNetworkingV1Ingresses) Update(arg0 context.Context, arg1 *k8s_io_api_networking_v1.Ingress, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_networking_v1.Ingress, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1/Ingresses", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1/Ingresses/Update", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1"), go_opentelemetry_io_otel_attribute.String("resource", "Ingresses"), go_opentelemetry_io_otel_attribute.String("kind", "Ingress"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNetworkingV1Ingresses) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_networking_v1.Ingress, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_networking_v1.Ingress, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1/Ingresses", - "UpdateStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1/Ingresses/UpdateStatus", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1"), go_opentelemetry_io_otel_attribute.String("resource", "Ingresses"), go_opentelemetry_io_otel_attribute.String("kind", "Ingress"), ) defer span.End() arg0 = ctx - return c.inner.UpdateStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.UpdateStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNetworkingV1Ingresses) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1/Ingresses", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1/Ingresses/Watch", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1"), go_opentelemetry_io_otel_attribute.String("resource", "Ingresses"), go_opentelemetry_io_otel_attribute.String("kind", "Ingress"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedNetworkingV1NetworkPolicies wrapper @@ -11004,145 +14446,200 @@ func newNetworkingV1NetworkPolicies(inner k8s_io_client_go_kubernetes_typed_netw func (c *wrappedNetworkingV1NetworkPolicies) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_networking_v1.NetworkPolicyApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_networking_v1.NetworkPolicy, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1/NetworkPolicies", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1/NetworkPolicies/Apply", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1"), go_opentelemetry_io_otel_attribute.String("resource", "NetworkPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "NetworkPolicy"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNetworkingV1NetworkPolicies) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_networking_v1.NetworkPolicyApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_networking_v1.NetworkPolicy, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1/NetworkPolicies", - "ApplyStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1/NetworkPolicies/ApplyStatus", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1"), go_opentelemetry_io_otel_attribute.String("resource", "NetworkPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "NetworkPolicy"), ) defer span.End() arg0 = ctx - return c.inner.ApplyStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.ApplyStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNetworkingV1NetworkPolicies) Create(arg0 context.Context, arg1 *k8s_io_api_networking_v1.NetworkPolicy, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_networking_v1.NetworkPolicy, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1/NetworkPolicies", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1/NetworkPolicies/Create", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1"), go_opentelemetry_io_otel_attribute.String("resource", "NetworkPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "NetworkPolicy"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNetworkingV1NetworkPolicies) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1/NetworkPolicies", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1/NetworkPolicies/Delete", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1"), go_opentelemetry_io_otel_attribute.String("resource", "NetworkPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "NetworkPolicy"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedNetworkingV1NetworkPolicies) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1/NetworkPolicies", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1/NetworkPolicies/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1"), go_opentelemetry_io_otel_attribute.String("resource", "NetworkPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "NetworkPolicy"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedNetworkingV1NetworkPolicies) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_networking_v1.NetworkPolicy, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1/NetworkPolicies", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1/NetworkPolicies/Get", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1"), go_opentelemetry_io_otel_attribute.String("resource", "NetworkPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "NetworkPolicy"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNetworkingV1NetworkPolicies) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_networking_v1.NetworkPolicyList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1/NetworkPolicies", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1/NetworkPolicies/List", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1"), go_opentelemetry_io_otel_attribute.String("resource", "NetworkPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "NetworkPolicy"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNetworkingV1NetworkPolicies) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_networking_v1.NetworkPolicy, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1/NetworkPolicies", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1/NetworkPolicies/Patch", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1"), go_opentelemetry_io_otel_attribute.String("resource", "NetworkPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "NetworkPolicy"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNetworkingV1NetworkPolicies) Update(arg0 context.Context, arg1 *k8s_io_api_networking_v1.NetworkPolicy, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_networking_v1.NetworkPolicy, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1/NetworkPolicies", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1/NetworkPolicies/Update", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1"), go_opentelemetry_io_otel_attribute.String("resource", "NetworkPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "NetworkPolicy"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNetworkingV1NetworkPolicies) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_networking_v1.NetworkPolicy, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_networking_v1.NetworkPolicy, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1/NetworkPolicies", - "UpdateStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1/NetworkPolicies/UpdateStatus", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1"), go_opentelemetry_io_otel_attribute.String("resource", "NetworkPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "NetworkPolicy"), ) defer span.End() arg0 = ctx - return c.inner.UpdateStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.UpdateStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNetworkingV1NetworkPolicies) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1/NetworkPolicies", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1/NetworkPolicies/Watch", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1"), go_opentelemetry_io_otel_attribute.String("resource", "NetworkPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "NetworkPolicy"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedNetworkingV1alpha1ClusterCIDRs wrapper @@ -11156,119 +14653,164 @@ func newNetworkingV1alpha1ClusterCIDRs(inner k8s_io_client_go_kubernetes_typed_n func (c *wrappedNetworkingV1alpha1ClusterCIDRs) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_networking_v1alpha1.ClusterCIDRApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_networking_v1alpha1.ClusterCIDR, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1alpha1/ClusterCIDRs", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1alpha1/ClusterCIDRs/Apply", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterCIDRs"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterCIDR"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNetworkingV1alpha1ClusterCIDRs) Create(arg0 context.Context, arg1 *k8s_io_api_networking_v1alpha1.ClusterCIDR, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_networking_v1alpha1.ClusterCIDR, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1alpha1/ClusterCIDRs", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1alpha1/ClusterCIDRs/Create", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterCIDRs"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterCIDR"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNetworkingV1alpha1ClusterCIDRs) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1alpha1/ClusterCIDRs", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1alpha1/ClusterCIDRs/Delete", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterCIDRs"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterCIDR"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedNetworkingV1alpha1ClusterCIDRs) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1alpha1/ClusterCIDRs", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1alpha1/ClusterCIDRs/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterCIDRs"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterCIDR"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedNetworkingV1alpha1ClusterCIDRs) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_networking_v1alpha1.ClusterCIDR, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1alpha1/ClusterCIDRs", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1alpha1/ClusterCIDRs/Get", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterCIDRs"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterCIDR"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNetworkingV1alpha1ClusterCIDRs) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_networking_v1alpha1.ClusterCIDRList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1alpha1/ClusterCIDRs", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1alpha1/ClusterCIDRs/List", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterCIDRs"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterCIDR"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNetworkingV1alpha1ClusterCIDRs) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_networking_v1alpha1.ClusterCIDR, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1alpha1/ClusterCIDRs", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1alpha1/ClusterCIDRs/Patch", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterCIDRs"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterCIDR"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNetworkingV1alpha1ClusterCIDRs) Update(arg0 context.Context, arg1 *k8s_io_api_networking_v1alpha1.ClusterCIDR, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_networking_v1alpha1.ClusterCIDR, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1alpha1/ClusterCIDRs", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1alpha1/ClusterCIDRs/Update", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterCIDRs"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterCIDR"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNetworkingV1alpha1ClusterCIDRs) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1alpha1/ClusterCIDRs", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1alpha1/ClusterCIDRs/Watch", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterCIDRs"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterCIDR"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedNetworkingV1beta1IngressClasses wrapper @@ -11282,119 +14824,164 @@ func newNetworkingV1beta1IngressClasses(inner k8s_io_client_go_kubernetes_typed_ func (c *wrappedNetworkingV1beta1IngressClasses) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_networking_v1beta1.IngressClassApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_networking_v1beta1.IngressClass, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1beta1/IngressClasses", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1beta1/IngressClasses/Apply", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "IngressClasses"), go_opentelemetry_io_otel_attribute.String("kind", "IngressClass"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNetworkingV1beta1IngressClasses) Create(arg0 context.Context, arg1 *k8s_io_api_networking_v1beta1.IngressClass, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_networking_v1beta1.IngressClass, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1beta1/IngressClasses", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1beta1/IngressClasses/Create", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "IngressClasses"), go_opentelemetry_io_otel_attribute.String("kind", "IngressClass"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNetworkingV1beta1IngressClasses) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1beta1/IngressClasses", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1beta1/IngressClasses/Delete", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "IngressClasses"), go_opentelemetry_io_otel_attribute.String("kind", "IngressClass"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedNetworkingV1beta1IngressClasses) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1beta1/IngressClasses", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1beta1/IngressClasses/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "IngressClasses"), go_opentelemetry_io_otel_attribute.String("kind", "IngressClass"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedNetworkingV1beta1IngressClasses) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_networking_v1beta1.IngressClass, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1beta1/IngressClasses", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1beta1/IngressClasses/Get", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "IngressClasses"), go_opentelemetry_io_otel_attribute.String("kind", "IngressClass"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNetworkingV1beta1IngressClasses) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_networking_v1beta1.IngressClassList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1beta1/IngressClasses", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1beta1/IngressClasses/List", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "IngressClasses"), go_opentelemetry_io_otel_attribute.String("kind", "IngressClass"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNetworkingV1beta1IngressClasses) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_networking_v1beta1.IngressClass, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1beta1/IngressClasses", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1beta1/IngressClasses/Patch", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "IngressClasses"), go_opentelemetry_io_otel_attribute.String("kind", "IngressClass"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNetworkingV1beta1IngressClasses) Update(arg0 context.Context, arg1 *k8s_io_api_networking_v1beta1.IngressClass, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_networking_v1beta1.IngressClass, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1beta1/IngressClasses", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1beta1/IngressClasses/Update", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "IngressClasses"), go_opentelemetry_io_otel_attribute.String("kind", "IngressClass"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNetworkingV1beta1IngressClasses) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1beta1/IngressClasses", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1beta1/IngressClasses/Watch", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "IngressClasses"), go_opentelemetry_io_otel_attribute.String("kind", "IngressClass"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedNetworkingV1beta1Ingresses wrapper @@ -11408,145 +14995,200 @@ func newNetworkingV1beta1Ingresses(inner k8s_io_client_go_kubernetes_typed_netwo func (c *wrappedNetworkingV1beta1Ingresses) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_networking_v1beta1.IngressApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_networking_v1beta1.Ingress, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1beta1/Ingresses", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1beta1/Ingresses/Apply", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Ingresses"), go_opentelemetry_io_otel_attribute.String("kind", "Ingress"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNetworkingV1beta1Ingresses) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_networking_v1beta1.IngressApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_networking_v1beta1.Ingress, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1beta1/Ingresses", - "ApplyStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1beta1/Ingresses/ApplyStatus", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Ingresses"), go_opentelemetry_io_otel_attribute.String("kind", "Ingress"), ) defer span.End() arg0 = ctx - return c.inner.ApplyStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.ApplyStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNetworkingV1beta1Ingresses) Create(arg0 context.Context, arg1 *k8s_io_api_networking_v1beta1.Ingress, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_networking_v1beta1.Ingress, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1beta1/Ingresses", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1beta1/Ingresses/Create", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Ingresses"), go_opentelemetry_io_otel_attribute.String("kind", "Ingress"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNetworkingV1beta1Ingresses) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1beta1/Ingresses", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1beta1/Ingresses/Delete", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Ingresses"), go_opentelemetry_io_otel_attribute.String("kind", "Ingress"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedNetworkingV1beta1Ingresses) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1beta1/Ingresses", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1beta1/Ingresses/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Ingresses"), go_opentelemetry_io_otel_attribute.String("kind", "Ingress"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedNetworkingV1beta1Ingresses) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_networking_v1beta1.Ingress, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1beta1/Ingresses", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1beta1/Ingresses/Get", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Ingresses"), go_opentelemetry_io_otel_attribute.String("kind", "Ingress"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNetworkingV1beta1Ingresses) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_networking_v1beta1.IngressList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1beta1/Ingresses", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1beta1/Ingresses/List", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Ingresses"), go_opentelemetry_io_otel_attribute.String("kind", "Ingress"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNetworkingV1beta1Ingresses) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_networking_v1beta1.Ingress, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1beta1/Ingresses", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1beta1/Ingresses/Patch", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Ingresses"), go_opentelemetry_io_otel_attribute.String("kind", "Ingress"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNetworkingV1beta1Ingresses) Update(arg0 context.Context, arg1 *k8s_io_api_networking_v1beta1.Ingress, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_networking_v1beta1.Ingress, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1beta1/Ingresses", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1beta1/Ingresses/Update", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Ingresses"), go_opentelemetry_io_otel_attribute.String("kind", "Ingress"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNetworkingV1beta1Ingresses) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_networking_v1beta1.Ingress, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_networking_v1beta1.Ingress, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1beta1/Ingresses", - "UpdateStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1beta1/Ingresses/UpdateStatus", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Ingresses"), go_opentelemetry_io_otel_attribute.String("kind", "Ingress"), ) defer span.End() arg0 = ctx - return c.inner.UpdateStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.UpdateStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNetworkingV1beta1Ingresses) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NetworkingV1beta1/Ingresses", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE NetworkingV1beta1/Ingresses/Watch", go_opentelemetry_io_otel_attribute.String("client", "NetworkingV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Ingresses"), go_opentelemetry_io_otel_attribute.String("kind", "Ingress"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedNodeV1RuntimeClasses wrapper @@ -11560,119 +15202,164 @@ func newNodeV1RuntimeClasses(inner k8s_io_client_go_kubernetes_typed_node_v1.Run func (c *wrappedNodeV1RuntimeClasses) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_node_v1.RuntimeClassApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_node_v1.RuntimeClass, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NodeV1/RuntimeClasses", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE NodeV1/RuntimeClasses/Apply", go_opentelemetry_io_otel_attribute.String("client", "NodeV1"), go_opentelemetry_io_otel_attribute.String("resource", "RuntimeClasses"), go_opentelemetry_io_otel_attribute.String("kind", "RuntimeClass"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNodeV1RuntimeClasses) Create(arg0 context.Context, arg1 *k8s_io_api_node_v1.RuntimeClass, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_node_v1.RuntimeClass, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NodeV1/RuntimeClasses", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE NodeV1/RuntimeClasses/Create", go_opentelemetry_io_otel_attribute.String("client", "NodeV1"), go_opentelemetry_io_otel_attribute.String("resource", "RuntimeClasses"), go_opentelemetry_io_otel_attribute.String("kind", "RuntimeClass"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNodeV1RuntimeClasses) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NodeV1/RuntimeClasses", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE NodeV1/RuntimeClasses/Delete", go_opentelemetry_io_otel_attribute.String("client", "NodeV1"), go_opentelemetry_io_otel_attribute.String("resource", "RuntimeClasses"), go_opentelemetry_io_otel_attribute.String("kind", "RuntimeClass"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedNodeV1RuntimeClasses) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NodeV1/RuntimeClasses", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE NodeV1/RuntimeClasses/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "NodeV1"), go_opentelemetry_io_otel_attribute.String("resource", "RuntimeClasses"), go_opentelemetry_io_otel_attribute.String("kind", "RuntimeClass"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedNodeV1RuntimeClasses) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_node_v1.RuntimeClass, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NodeV1/RuntimeClasses", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE NodeV1/RuntimeClasses/Get", go_opentelemetry_io_otel_attribute.String("client", "NodeV1"), go_opentelemetry_io_otel_attribute.String("resource", "RuntimeClasses"), go_opentelemetry_io_otel_attribute.String("kind", "RuntimeClass"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNodeV1RuntimeClasses) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_node_v1.RuntimeClassList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NodeV1/RuntimeClasses", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE NodeV1/RuntimeClasses/List", go_opentelemetry_io_otel_attribute.String("client", "NodeV1"), go_opentelemetry_io_otel_attribute.String("resource", "RuntimeClasses"), go_opentelemetry_io_otel_attribute.String("kind", "RuntimeClass"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNodeV1RuntimeClasses) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_node_v1.RuntimeClass, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NodeV1/RuntimeClasses", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE NodeV1/RuntimeClasses/Patch", go_opentelemetry_io_otel_attribute.String("client", "NodeV1"), go_opentelemetry_io_otel_attribute.String("resource", "RuntimeClasses"), go_opentelemetry_io_otel_attribute.String("kind", "RuntimeClass"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNodeV1RuntimeClasses) Update(arg0 context.Context, arg1 *k8s_io_api_node_v1.RuntimeClass, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_node_v1.RuntimeClass, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NodeV1/RuntimeClasses", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE NodeV1/RuntimeClasses/Update", go_opentelemetry_io_otel_attribute.String("client", "NodeV1"), go_opentelemetry_io_otel_attribute.String("resource", "RuntimeClasses"), go_opentelemetry_io_otel_attribute.String("kind", "RuntimeClass"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNodeV1RuntimeClasses) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NodeV1/RuntimeClasses", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE NodeV1/RuntimeClasses/Watch", go_opentelemetry_io_otel_attribute.String("client", "NodeV1"), go_opentelemetry_io_otel_attribute.String("resource", "RuntimeClasses"), go_opentelemetry_io_otel_attribute.String("kind", "RuntimeClass"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedNodeV1alpha1RuntimeClasses wrapper @@ -11686,119 +15373,164 @@ func newNodeV1alpha1RuntimeClasses(inner k8s_io_client_go_kubernetes_typed_node_ func (c *wrappedNodeV1alpha1RuntimeClasses) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_node_v1alpha1.RuntimeClassApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_node_v1alpha1.RuntimeClass, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NodeV1alpha1/RuntimeClasses", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE NodeV1alpha1/RuntimeClasses/Apply", go_opentelemetry_io_otel_attribute.String("client", "NodeV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "RuntimeClasses"), go_opentelemetry_io_otel_attribute.String("kind", "RuntimeClass"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNodeV1alpha1RuntimeClasses) Create(arg0 context.Context, arg1 *k8s_io_api_node_v1alpha1.RuntimeClass, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_node_v1alpha1.RuntimeClass, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NodeV1alpha1/RuntimeClasses", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE NodeV1alpha1/RuntimeClasses/Create", go_opentelemetry_io_otel_attribute.String("client", "NodeV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "RuntimeClasses"), go_opentelemetry_io_otel_attribute.String("kind", "RuntimeClass"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNodeV1alpha1RuntimeClasses) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NodeV1alpha1/RuntimeClasses", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE NodeV1alpha1/RuntimeClasses/Delete", go_opentelemetry_io_otel_attribute.String("client", "NodeV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "RuntimeClasses"), go_opentelemetry_io_otel_attribute.String("kind", "RuntimeClass"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedNodeV1alpha1RuntimeClasses) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NodeV1alpha1/RuntimeClasses", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE NodeV1alpha1/RuntimeClasses/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "NodeV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "RuntimeClasses"), go_opentelemetry_io_otel_attribute.String("kind", "RuntimeClass"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedNodeV1alpha1RuntimeClasses) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_node_v1alpha1.RuntimeClass, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NodeV1alpha1/RuntimeClasses", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE NodeV1alpha1/RuntimeClasses/Get", go_opentelemetry_io_otel_attribute.String("client", "NodeV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "RuntimeClasses"), go_opentelemetry_io_otel_attribute.String("kind", "RuntimeClass"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNodeV1alpha1RuntimeClasses) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_node_v1alpha1.RuntimeClassList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NodeV1alpha1/RuntimeClasses", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE NodeV1alpha1/RuntimeClasses/List", go_opentelemetry_io_otel_attribute.String("client", "NodeV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "RuntimeClasses"), go_opentelemetry_io_otel_attribute.String("kind", "RuntimeClass"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNodeV1alpha1RuntimeClasses) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_node_v1alpha1.RuntimeClass, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NodeV1alpha1/RuntimeClasses", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE NodeV1alpha1/RuntimeClasses/Patch", go_opentelemetry_io_otel_attribute.String("client", "NodeV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "RuntimeClasses"), go_opentelemetry_io_otel_attribute.String("kind", "RuntimeClass"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNodeV1alpha1RuntimeClasses) Update(arg0 context.Context, arg1 *k8s_io_api_node_v1alpha1.RuntimeClass, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_node_v1alpha1.RuntimeClass, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NodeV1alpha1/RuntimeClasses", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE NodeV1alpha1/RuntimeClasses/Update", go_opentelemetry_io_otel_attribute.String("client", "NodeV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "RuntimeClasses"), go_opentelemetry_io_otel_attribute.String("kind", "RuntimeClass"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNodeV1alpha1RuntimeClasses) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NodeV1alpha1/RuntimeClasses", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE NodeV1alpha1/RuntimeClasses/Watch", go_opentelemetry_io_otel_attribute.String("client", "NodeV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "RuntimeClasses"), go_opentelemetry_io_otel_attribute.String("kind", "RuntimeClass"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedNodeV1beta1RuntimeClasses wrapper @@ -11812,119 +15544,164 @@ func newNodeV1beta1RuntimeClasses(inner k8s_io_client_go_kubernetes_typed_node_v func (c *wrappedNodeV1beta1RuntimeClasses) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_node_v1beta1.RuntimeClassApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_node_v1beta1.RuntimeClass, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NodeV1beta1/RuntimeClasses", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE NodeV1beta1/RuntimeClasses/Apply", go_opentelemetry_io_otel_attribute.String("client", "NodeV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "RuntimeClasses"), go_opentelemetry_io_otel_attribute.String("kind", "RuntimeClass"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNodeV1beta1RuntimeClasses) Create(arg0 context.Context, arg1 *k8s_io_api_node_v1beta1.RuntimeClass, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_node_v1beta1.RuntimeClass, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NodeV1beta1/RuntimeClasses", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE NodeV1beta1/RuntimeClasses/Create", go_opentelemetry_io_otel_attribute.String("client", "NodeV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "RuntimeClasses"), go_opentelemetry_io_otel_attribute.String("kind", "RuntimeClass"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNodeV1beta1RuntimeClasses) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NodeV1beta1/RuntimeClasses", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE NodeV1beta1/RuntimeClasses/Delete", go_opentelemetry_io_otel_attribute.String("client", "NodeV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "RuntimeClasses"), go_opentelemetry_io_otel_attribute.String("kind", "RuntimeClass"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedNodeV1beta1RuntimeClasses) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NodeV1beta1/RuntimeClasses", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE NodeV1beta1/RuntimeClasses/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "NodeV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "RuntimeClasses"), go_opentelemetry_io_otel_attribute.String("kind", "RuntimeClass"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedNodeV1beta1RuntimeClasses) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_node_v1beta1.RuntimeClass, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NodeV1beta1/RuntimeClasses", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE NodeV1beta1/RuntimeClasses/Get", go_opentelemetry_io_otel_attribute.String("client", "NodeV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "RuntimeClasses"), go_opentelemetry_io_otel_attribute.String("kind", "RuntimeClass"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNodeV1beta1RuntimeClasses) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_node_v1beta1.RuntimeClassList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NodeV1beta1/RuntimeClasses", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE NodeV1beta1/RuntimeClasses/List", go_opentelemetry_io_otel_attribute.String("client", "NodeV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "RuntimeClasses"), go_opentelemetry_io_otel_attribute.String("kind", "RuntimeClass"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNodeV1beta1RuntimeClasses) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_node_v1beta1.RuntimeClass, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NodeV1beta1/RuntimeClasses", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE NodeV1beta1/RuntimeClasses/Patch", go_opentelemetry_io_otel_attribute.String("client", "NodeV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "RuntimeClasses"), go_opentelemetry_io_otel_attribute.String("kind", "RuntimeClass"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNodeV1beta1RuntimeClasses) Update(arg0 context.Context, arg1 *k8s_io_api_node_v1beta1.RuntimeClass, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_node_v1beta1.RuntimeClass, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NodeV1beta1/RuntimeClasses", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE NodeV1beta1/RuntimeClasses/Update", go_opentelemetry_io_otel_attribute.String("client", "NodeV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "RuntimeClasses"), go_opentelemetry_io_otel_attribute.String("kind", "RuntimeClass"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedNodeV1beta1RuntimeClasses) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "NodeV1beta1/RuntimeClasses", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE NodeV1beta1/RuntimeClasses/Watch", go_opentelemetry_io_otel_attribute.String("client", "NodeV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "RuntimeClasses"), go_opentelemetry_io_otel_attribute.String("kind", "RuntimeClass"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedPolicyV1Evictions wrapper @@ -11938,15 +15715,20 @@ func newPolicyV1Evictions(inner k8s_io_client_go_kubernetes_typed_policy_v1.Evic func (c *wrappedPolicyV1Evictions) Evict(arg0 context.Context, arg1 *k8s_io_api_policy_v1.Eviction) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "PolicyV1/Evictions", - "Evict", + "pkg/clients/wrappers/traces/kube", + "KUBE PolicyV1/Evictions/Evict", go_opentelemetry_io_otel_attribute.String("client", "PolicyV1"), go_opentelemetry_io_otel_attribute.String("resource", "Evictions"), go_opentelemetry_io_otel_attribute.String("kind", "Eviction"), ) defer span.End() arg0 = ctx - return c.inner.Evict(arg0, arg1) + ret0 := c.inner.Evict(arg0, arg1) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } // wrappedPolicyV1PodDisruptionBudgets wrapper @@ -11960,145 +15742,200 @@ func newPolicyV1PodDisruptionBudgets(inner k8s_io_client_go_kubernetes_typed_pol func (c *wrappedPolicyV1PodDisruptionBudgets) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_policy_v1.PodDisruptionBudgetApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_policy_v1.PodDisruptionBudget, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "PolicyV1/PodDisruptionBudgets", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE PolicyV1/PodDisruptionBudgets/Apply", go_opentelemetry_io_otel_attribute.String("client", "PolicyV1"), go_opentelemetry_io_otel_attribute.String("resource", "PodDisruptionBudgets"), go_opentelemetry_io_otel_attribute.String("kind", "PodDisruptionBudget"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedPolicyV1PodDisruptionBudgets) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_policy_v1.PodDisruptionBudgetApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_policy_v1.PodDisruptionBudget, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "PolicyV1/PodDisruptionBudgets", - "ApplyStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE PolicyV1/PodDisruptionBudgets/ApplyStatus", go_opentelemetry_io_otel_attribute.String("client", "PolicyV1"), go_opentelemetry_io_otel_attribute.String("resource", "PodDisruptionBudgets"), go_opentelemetry_io_otel_attribute.String("kind", "PodDisruptionBudget"), ) defer span.End() arg0 = ctx - return c.inner.ApplyStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.ApplyStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedPolicyV1PodDisruptionBudgets) Create(arg0 context.Context, arg1 *k8s_io_api_policy_v1.PodDisruptionBudget, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_policy_v1.PodDisruptionBudget, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "PolicyV1/PodDisruptionBudgets", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE PolicyV1/PodDisruptionBudgets/Create", go_opentelemetry_io_otel_attribute.String("client", "PolicyV1"), go_opentelemetry_io_otel_attribute.String("resource", "PodDisruptionBudgets"), go_opentelemetry_io_otel_attribute.String("kind", "PodDisruptionBudget"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedPolicyV1PodDisruptionBudgets) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "PolicyV1/PodDisruptionBudgets", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE PolicyV1/PodDisruptionBudgets/Delete", go_opentelemetry_io_otel_attribute.String("client", "PolicyV1"), go_opentelemetry_io_otel_attribute.String("resource", "PodDisruptionBudgets"), go_opentelemetry_io_otel_attribute.String("kind", "PodDisruptionBudget"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedPolicyV1PodDisruptionBudgets) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "PolicyV1/PodDisruptionBudgets", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE PolicyV1/PodDisruptionBudgets/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "PolicyV1"), go_opentelemetry_io_otel_attribute.String("resource", "PodDisruptionBudgets"), go_opentelemetry_io_otel_attribute.String("kind", "PodDisruptionBudget"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedPolicyV1PodDisruptionBudgets) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_policy_v1.PodDisruptionBudget, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "PolicyV1/PodDisruptionBudgets", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE PolicyV1/PodDisruptionBudgets/Get", go_opentelemetry_io_otel_attribute.String("client", "PolicyV1"), go_opentelemetry_io_otel_attribute.String("resource", "PodDisruptionBudgets"), go_opentelemetry_io_otel_attribute.String("kind", "PodDisruptionBudget"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedPolicyV1PodDisruptionBudgets) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_policy_v1.PodDisruptionBudgetList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "PolicyV1/PodDisruptionBudgets", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE PolicyV1/PodDisruptionBudgets/List", go_opentelemetry_io_otel_attribute.String("client", "PolicyV1"), go_opentelemetry_io_otel_attribute.String("resource", "PodDisruptionBudgets"), go_opentelemetry_io_otel_attribute.String("kind", "PodDisruptionBudget"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedPolicyV1PodDisruptionBudgets) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_policy_v1.PodDisruptionBudget, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "PolicyV1/PodDisruptionBudgets", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE PolicyV1/PodDisruptionBudgets/Patch", go_opentelemetry_io_otel_attribute.String("client", "PolicyV1"), go_opentelemetry_io_otel_attribute.String("resource", "PodDisruptionBudgets"), go_opentelemetry_io_otel_attribute.String("kind", "PodDisruptionBudget"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedPolicyV1PodDisruptionBudgets) Update(arg0 context.Context, arg1 *k8s_io_api_policy_v1.PodDisruptionBudget, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_policy_v1.PodDisruptionBudget, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "PolicyV1/PodDisruptionBudgets", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE PolicyV1/PodDisruptionBudgets/Update", go_opentelemetry_io_otel_attribute.String("client", "PolicyV1"), go_opentelemetry_io_otel_attribute.String("resource", "PodDisruptionBudgets"), go_opentelemetry_io_otel_attribute.String("kind", "PodDisruptionBudget"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedPolicyV1PodDisruptionBudgets) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_policy_v1.PodDisruptionBudget, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_policy_v1.PodDisruptionBudget, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "PolicyV1/PodDisruptionBudgets", - "UpdateStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE PolicyV1/PodDisruptionBudgets/UpdateStatus", go_opentelemetry_io_otel_attribute.String("client", "PolicyV1"), go_opentelemetry_io_otel_attribute.String("resource", "PodDisruptionBudgets"), go_opentelemetry_io_otel_attribute.String("kind", "PodDisruptionBudget"), ) defer span.End() arg0 = ctx - return c.inner.UpdateStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.UpdateStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedPolicyV1PodDisruptionBudgets) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "PolicyV1/PodDisruptionBudgets", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE PolicyV1/PodDisruptionBudgets/Watch", go_opentelemetry_io_otel_attribute.String("client", "PolicyV1"), go_opentelemetry_io_otel_attribute.String("resource", "PodDisruptionBudgets"), go_opentelemetry_io_otel_attribute.String("kind", "PodDisruptionBudget"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedPolicyV1beta1Evictions wrapper @@ -12112,15 +15949,20 @@ func newPolicyV1beta1Evictions(inner k8s_io_client_go_kubernetes_typed_policy_v1 func (c *wrappedPolicyV1beta1Evictions) Evict(arg0 context.Context, arg1 *k8s_io_api_policy_v1beta1.Eviction) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "PolicyV1beta1/Evictions", - "Evict", + "pkg/clients/wrappers/traces/kube", + "KUBE PolicyV1beta1/Evictions/Evict", go_opentelemetry_io_otel_attribute.String("client", "PolicyV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Evictions"), go_opentelemetry_io_otel_attribute.String("kind", "Eviction"), ) defer span.End() arg0 = ctx - return c.inner.Evict(arg0, arg1) + ret0 := c.inner.Evict(arg0, arg1) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } // wrappedPolicyV1beta1PodDisruptionBudgets wrapper @@ -12134,145 +15976,200 @@ func newPolicyV1beta1PodDisruptionBudgets(inner k8s_io_client_go_kubernetes_type func (c *wrappedPolicyV1beta1PodDisruptionBudgets) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_policy_v1beta1.PodDisruptionBudgetApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_policy_v1beta1.PodDisruptionBudget, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "PolicyV1beta1/PodDisruptionBudgets", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE PolicyV1beta1/PodDisruptionBudgets/Apply", go_opentelemetry_io_otel_attribute.String("client", "PolicyV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "PodDisruptionBudgets"), go_opentelemetry_io_otel_attribute.String("kind", "PodDisruptionBudget"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedPolicyV1beta1PodDisruptionBudgets) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_policy_v1beta1.PodDisruptionBudgetApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_policy_v1beta1.PodDisruptionBudget, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "PolicyV1beta1/PodDisruptionBudgets", - "ApplyStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE PolicyV1beta1/PodDisruptionBudgets/ApplyStatus", go_opentelemetry_io_otel_attribute.String("client", "PolicyV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "PodDisruptionBudgets"), go_opentelemetry_io_otel_attribute.String("kind", "PodDisruptionBudget"), ) defer span.End() arg0 = ctx - return c.inner.ApplyStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.ApplyStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedPolicyV1beta1PodDisruptionBudgets) Create(arg0 context.Context, arg1 *k8s_io_api_policy_v1beta1.PodDisruptionBudget, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_policy_v1beta1.PodDisruptionBudget, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "PolicyV1beta1/PodDisruptionBudgets", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE PolicyV1beta1/PodDisruptionBudgets/Create", go_opentelemetry_io_otel_attribute.String("client", "PolicyV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "PodDisruptionBudgets"), go_opentelemetry_io_otel_attribute.String("kind", "PodDisruptionBudget"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedPolicyV1beta1PodDisruptionBudgets) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "PolicyV1beta1/PodDisruptionBudgets", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE PolicyV1beta1/PodDisruptionBudgets/Delete", go_opentelemetry_io_otel_attribute.String("client", "PolicyV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "PodDisruptionBudgets"), go_opentelemetry_io_otel_attribute.String("kind", "PodDisruptionBudget"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedPolicyV1beta1PodDisruptionBudgets) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "PolicyV1beta1/PodDisruptionBudgets", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE PolicyV1beta1/PodDisruptionBudgets/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "PolicyV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "PodDisruptionBudgets"), go_opentelemetry_io_otel_attribute.String("kind", "PodDisruptionBudget"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedPolicyV1beta1PodDisruptionBudgets) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_policy_v1beta1.PodDisruptionBudget, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "PolicyV1beta1/PodDisruptionBudgets", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE PolicyV1beta1/PodDisruptionBudgets/Get", go_opentelemetry_io_otel_attribute.String("client", "PolicyV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "PodDisruptionBudgets"), go_opentelemetry_io_otel_attribute.String("kind", "PodDisruptionBudget"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedPolicyV1beta1PodDisruptionBudgets) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_policy_v1beta1.PodDisruptionBudgetList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "PolicyV1beta1/PodDisruptionBudgets", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE PolicyV1beta1/PodDisruptionBudgets/List", go_opentelemetry_io_otel_attribute.String("client", "PolicyV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "PodDisruptionBudgets"), go_opentelemetry_io_otel_attribute.String("kind", "PodDisruptionBudget"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedPolicyV1beta1PodDisruptionBudgets) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_policy_v1beta1.PodDisruptionBudget, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "PolicyV1beta1/PodDisruptionBudgets", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE PolicyV1beta1/PodDisruptionBudgets/Patch", go_opentelemetry_io_otel_attribute.String("client", "PolicyV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "PodDisruptionBudgets"), go_opentelemetry_io_otel_attribute.String("kind", "PodDisruptionBudget"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedPolicyV1beta1PodDisruptionBudgets) Update(arg0 context.Context, arg1 *k8s_io_api_policy_v1beta1.PodDisruptionBudget, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_policy_v1beta1.PodDisruptionBudget, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "PolicyV1beta1/PodDisruptionBudgets", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE PolicyV1beta1/PodDisruptionBudgets/Update", go_opentelemetry_io_otel_attribute.String("client", "PolicyV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "PodDisruptionBudgets"), go_opentelemetry_io_otel_attribute.String("kind", "PodDisruptionBudget"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedPolicyV1beta1PodDisruptionBudgets) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_policy_v1beta1.PodDisruptionBudget, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_policy_v1beta1.PodDisruptionBudget, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "PolicyV1beta1/PodDisruptionBudgets", - "UpdateStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE PolicyV1beta1/PodDisruptionBudgets/UpdateStatus", go_opentelemetry_io_otel_attribute.String("client", "PolicyV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "PodDisruptionBudgets"), go_opentelemetry_io_otel_attribute.String("kind", "PodDisruptionBudget"), ) defer span.End() arg0 = ctx - return c.inner.UpdateStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.UpdateStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedPolicyV1beta1PodDisruptionBudgets) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "PolicyV1beta1/PodDisruptionBudgets", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE PolicyV1beta1/PodDisruptionBudgets/Watch", go_opentelemetry_io_otel_attribute.String("client", "PolicyV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "PodDisruptionBudgets"), go_opentelemetry_io_otel_attribute.String("kind", "PodDisruptionBudget"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedPolicyV1beta1PodSecurityPolicies wrapper @@ -12286,119 +16183,164 @@ func newPolicyV1beta1PodSecurityPolicies(inner k8s_io_client_go_kubernetes_typed func (c *wrappedPolicyV1beta1PodSecurityPolicies) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_policy_v1beta1.PodSecurityPolicyApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_policy_v1beta1.PodSecurityPolicy, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "PolicyV1beta1/PodSecurityPolicies", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE PolicyV1beta1/PodSecurityPolicies/Apply", go_opentelemetry_io_otel_attribute.String("client", "PolicyV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "PodSecurityPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "PodSecurityPolicy"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedPolicyV1beta1PodSecurityPolicies) Create(arg0 context.Context, arg1 *k8s_io_api_policy_v1beta1.PodSecurityPolicy, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_policy_v1beta1.PodSecurityPolicy, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "PolicyV1beta1/PodSecurityPolicies", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE PolicyV1beta1/PodSecurityPolicies/Create", go_opentelemetry_io_otel_attribute.String("client", "PolicyV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "PodSecurityPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "PodSecurityPolicy"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedPolicyV1beta1PodSecurityPolicies) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "PolicyV1beta1/PodSecurityPolicies", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE PolicyV1beta1/PodSecurityPolicies/Delete", go_opentelemetry_io_otel_attribute.String("client", "PolicyV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "PodSecurityPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "PodSecurityPolicy"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedPolicyV1beta1PodSecurityPolicies) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "PolicyV1beta1/PodSecurityPolicies", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE PolicyV1beta1/PodSecurityPolicies/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "PolicyV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "PodSecurityPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "PodSecurityPolicy"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedPolicyV1beta1PodSecurityPolicies) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_policy_v1beta1.PodSecurityPolicy, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "PolicyV1beta1/PodSecurityPolicies", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE PolicyV1beta1/PodSecurityPolicies/Get", go_opentelemetry_io_otel_attribute.String("client", "PolicyV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "PodSecurityPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "PodSecurityPolicy"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedPolicyV1beta1PodSecurityPolicies) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_policy_v1beta1.PodSecurityPolicyList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "PolicyV1beta1/PodSecurityPolicies", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE PolicyV1beta1/PodSecurityPolicies/List", go_opentelemetry_io_otel_attribute.String("client", "PolicyV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "PodSecurityPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "PodSecurityPolicy"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedPolicyV1beta1PodSecurityPolicies) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_policy_v1beta1.PodSecurityPolicy, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "PolicyV1beta1/PodSecurityPolicies", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE PolicyV1beta1/PodSecurityPolicies/Patch", go_opentelemetry_io_otel_attribute.String("client", "PolicyV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "PodSecurityPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "PodSecurityPolicy"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedPolicyV1beta1PodSecurityPolicies) Update(arg0 context.Context, arg1 *k8s_io_api_policy_v1beta1.PodSecurityPolicy, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_policy_v1beta1.PodSecurityPolicy, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "PolicyV1beta1/PodSecurityPolicies", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE PolicyV1beta1/PodSecurityPolicies/Update", go_opentelemetry_io_otel_attribute.String("client", "PolicyV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "PodSecurityPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "PodSecurityPolicy"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedPolicyV1beta1PodSecurityPolicies) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "PolicyV1beta1/PodSecurityPolicies", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE PolicyV1beta1/PodSecurityPolicies/Watch", go_opentelemetry_io_otel_attribute.String("client", "PolicyV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "PodSecurityPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "PodSecurityPolicy"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedRbacV1ClusterRoleBindings wrapper @@ -12412,119 +16354,164 @@ func newRbacV1ClusterRoleBindings(inner k8s_io_client_go_kubernetes_typed_rbac_v func (c *wrappedRbacV1ClusterRoleBindings) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_rbac_v1.ClusterRoleBindingApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_rbac_v1.ClusterRoleBinding, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1/ClusterRoleBindings", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1/ClusterRoleBindings/Apply", go_opentelemetry_io_otel_attribute.String("client", "RbacV1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterRoleBindings"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterRoleBinding"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1ClusterRoleBindings) Create(arg0 context.Context, arg1 *k8s_io_api_rbac_v1.ClusterRoleBinding, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_rbac_v1.ClusterRoleBinding, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1/ClusterRoleBindings", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1/ClusterRoleBindings/Create", go_opentelemetry_io_otel_attribute.String("client", "RbacV1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterRoleBindings"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterRoleBinding"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1ClusterRoleBindings) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1/ClusterRoleBindings", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1/ClusterRoleBindings/Delete", go_opentelemetry_io_otel_attribute.String("client", "RbacV1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterRoleBindings"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterRoleBinding"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedRbacV1ClusterRoleBindings) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1/ClusterRoleBindings", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1/ClusterRoleBindings/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "RbacV1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterRoleBindings"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterRoleBinding"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedRbacV1ClusterRoleBindings) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_rbac_v1.ClusterRoleBinding, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1/ClusterRoleBindings", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1/ClusterRoleBindings/Get", go_opentelemetry_io_otel_attribute.String("client", "RbacV1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterRoleBindings"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterRoleBinding"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1ClusterRoleBindings) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_rbac_v1.ClusterRoleBindingList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1/ClusterRoleBindings", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1/ClusterRoleBindings/List", go_opentelemetry_io_otel_attribute.String("client", "RbacV1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterRoleBindings"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterRoleBinding"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1ClusterRoleBindings) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_rbac_v1.ClusterRoleBinding, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1/ClusterRoleBindings", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1/ClusterRoleBindings/Patch", go_opentelemetry_io_otel_attribute.String("client", "RbacV1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterRoleBindings"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterRoleBinding"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1ClusterRoleBindings) Update(arg0 context.Context, arg1 *k8s_io_api_rbac_v1.ClusterRoleBinding, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_rbac_v1.ClusterRoleBinding, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1/ClusterRoleBindings", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1/ClusterRoleBindings/Update", go_opentelemetry_io_otel_attribute.String("client", "RbacV1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterRoleBindings"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterRoleBinding"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1ClusterRoleBindings) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1/ClusterRoleBindings", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1/ClusterRoleBindings/Watch", go_opentelemetry_io_otel_attribute.String("client", "RbacV1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterRoleBindings"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterRoleBinding"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedRbacV1ClusterRoles wrapper @@ -12538,119 +16525,164 @@ func newRbacV1ClusterRoles(inner k8s_io_client_go_kubernetes_typed_rbac_v1.Clust func (c *wrappedRbacV1ClusterRoles) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_rbac_v1.ClusterRoleApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_rbac_v1.ClusterRole, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1/ClusterRoles", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1/ClusterRoles/Apply", go_opentelemetry_io_otel_attribute.String("client", "RbacV1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterRoles"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterRole"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1ClusterRoles) Create(arg0 context.Context, arg1 *k8s_io_api_rbac_v1.ClusterRole, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_rbac_v1.ClusterRole, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1/ClusterRoles", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1/ClusterRoles/Create", go_opentelemetry_io_otel_attribute.String("client", "RbacV1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterRoles"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterRole"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1ClusterRoles) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1/ClusterRoles", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1/ClusterRoles/Delete", go_opentelemetry_io_otel_attribute.String("client", "RbacV1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterRoles"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterRole"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedRbacV1ClusterRoles) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1/ClusterRoles", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1/ClusterRoles/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "RbacV1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterRoles"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterRole"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedRbacV1ClusterRoles) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_rbac_v1.ClusterRole, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1/ClusterRoles", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1/ClusterRoles/Get", go_opentelemetry_io_otel_attribute.String("client", "RbacV1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterRoles"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterRole"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1ClusterRoles) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_rbac_v1.ClusterRoleList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1/ClusterRoles", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1/ClusterRoles/List", go_opentelemetry_io_otel_attribute.String("client", "RbacV1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterRoles"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterRole"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1ClusterRoles) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_rbac_v1.ClusterRole, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1/ClusterRoles", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1/ClusterRoles/Patch", go_opentelemetry_io_otel_attribute.String("client", "RbacV1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterRoles"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterRole"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1ClusterRoles) Update(arg0 context.Context, arg1 *k8s_io_api_rbac_v1.ClusterRole, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_rbac_v1.ClusterRole, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1/ClusterRoles", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1/ClusterRoles/Update", go_opentelemetry_io_otel_attribute.String("client", "RbacV1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterRoles"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterRole"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1ClusterRoles) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1/ClusterRoles", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1/ClusterRoles/Watch", go_opentelemetry_io_otel_attribute.String("client", "RbacV1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterRoles"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterRole"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedRbacV1RoleBindings wrapper @@ -12664,119 +16696,164 @@ func newRbacV1RoleBindings(inner k8s_io_client_go_kubernetes_typed_rbac_v1.RoleB func (c *wrappedRbacV1RoleBindings) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_rbac_v1.RoleBindingApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_rbac_v1.RoleBinding, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1/RoleBindings", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1/RoleBindings/Apply", go_opentelemetry_io_otel_attribute.String("client", "RbacV1"), go_opentelemetry_io_otel_attribute.String("resource", "RoleBindings"), go_opentelemetry_io_otel_attribute.String("kind", "RoleBinding"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1RoleBindings) Create(arg0 context.Context, arg1 *k8s_io_api_rbac_v1.RoleBinding, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_rbac_v1.RoleBinding, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1/RoleBindings", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1/RoleBindings/Create", go_opentelemetry_io_otel_attribute.String("client", "RbacV1"), go_opentelemetry_io_otel_attribute.String("resource", "RoleBindings"), go_opentelemetry_io_otel_attribute.String("kind", "RoleBinding"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1RoleBindings) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1/RoleBindings", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1/RoleBindings/Delete", go_opentelemetry_io_otel_attribute.String("client", "RbacV1"), go_opentelemetry_io_otel_attribute.String("resource", "RoleBindings"), go_opentelemetry_io_otel_attribute.String("kind", "RoleBinding"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedRbacV1RoleBindings) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1/RoleBindings", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1/RoleBindings/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "RbacV1"), go_opentelemetry_io_otel_attribute.String("resource", "RoleBindings"), go_opentelemetry_io_otel_attribute.String("kind", "RoleBinding"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedRbacV1RoleBindings) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_rbac_v1.RoleBinding, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1/RoleBindings", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1/RoleBindings/Get", go_opentelemetry_io_otel_attribute.String("client", "RbacV1"), go_opentelemetry_io_otel_attribute.String("resource", "RoleBindings"), go_opentelemetry_io_otel_attribute.String("kind", "RoleBinding"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1RoleBindings) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_rbac_v1.RoleBindingList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1/RoleBindings", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1/RoleBindings/List", go_opentelemetry_io_otel_attribute.String("client", "RbacV1"), go_opentelemetry_io_otel_attribute.String("resource", "RoleBindings"), go_opentelemetry_io_otel_attribute.String("kind", "RoleBinding"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1RoleBindings) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_rbac_v1.RoleBinding, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1/RoleBindings", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1/RoleBindings/Patch", go_opentelemetry_io_otel_attribute.String("client", "RbacV1"), go_opentelemetry_io_otel_attribute.String("resource", "RoleBindings"), go_opentelemetry_io_otel_attribute.String("kind", "RoleBinding"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1RoleBindings) Update(arg0 context.Context, arg1 *k8s_io_api_rbac_v1.RoleBinding, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_rbac_v1.RoleBinding, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1/RoleBindings", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1/RoleBindings/Update", go_opentelemetry_io_otel_attribute.String("client", "RbacV1"), go_opentelemetry_io_otel_attribute.String("resource", "RoleBindings"), go_opentelemetry_io_otel_attribute.String("kind", "RoleBinding"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1RoleBindings) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1/RoleBindings", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1/RoleBindings/Watch", go_opentelemetry_io_otel_attribute.String("client", "RbacV1"), go_opentelemetry_io_otel_attribute.String("resource", "RoleBindings"), go_opentelemetry_io_otel_attribute.String("kind", "RoleBinding"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedRbacV1Roles wrapper @@ -12790,119 +16867,164 @@ func newRbacV1Roles(inner k8s_io_client_go_kubernetes_typed_rbac_v1.RoleInterfac func (c *wrappedRbacV1Roles) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_rbac_v1.RoleApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_rbac_v1.Role, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1/Roles", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1/Roles/Apply", go_opentelemetry_io_otel_attribute.String("client", "RbacV1"), go_opentelemetry_io_otel_attribute.String("resource", "Roles"), go_opentelemetry_io_otel_attribute.String("kind", "Role"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1Roles) Create(arg0 context.Context, arg1 *k8s_io_api_rbac_v1.Role, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_rbac_v1.Role, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1/Roles", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1/Roles/Create", go_opentelemetry_io_otel_attribute.String("client", "RbacV1"), go_opentelemetry_io_otel_attribute.String("resource", "Roles"), go_opentelemetry_io_otel_attribute.String("kind", "Role"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1Roles) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1/Roles", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1/Roles/Delete", go_opentelemetry_io_otel_attribute.String("client", "RbacV1"), go_opentelemetry_io_otel_attribute.String("resource", "Roles"), go_opentelemetry_io_otel_attribute.String("kind", "Role"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedRbacV1Roles) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1/Roles", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1/Roles/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "RbacV1"), go_opentelemetry_io_otel_attribute.String("resource", "Roles"), go_opentelemetry_io_otel_attribute.String("kind", "Role"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedRbacV1Roles) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_rbac_v1.Role, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1/Roles", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1/Roles/Get", go_opentelemetry_io_otel_attribute.String("client", "RbacV1"), go_opentelemetry_io_otel_attribute.String("resource", "Roles"), go_opentelemetry_io_otel_attribute.String("kind", "Role"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1Roles) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_rbac_v1.RoleList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1/Roles", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1/Roles/List", go_opentelemetry_io_otel_attribute.String("client", "RbacV1"), go_opentelemetry_io_otel_attribute.String("resource", "Roles"), go_opentelemetry_io_otel_attribute.String("kind", "Role"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1Roles) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_rbac_v1.Role, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1/Roles", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1/Roles/Patch", go_opentelemetry_io_otel_attribute.String("client", "RbacV1"), go_opentelemetry_io_otel_attribute.String("resource", "Roles"), go_opentelemetry_io_otel_attribute.String("kind", "Role"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1Roles) Update(arg0 context.Context, arg1 *k8s_io_api_rbac_v1.Role, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_rbac_v1.Role, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1/Roles", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1/Roles/Update", go_opentelemetry_io_otel_attribute.String("client", "RbacV1"), go_opentelemetry_io_otel_attribute.String("resource", "Roles"), go_opentelemetry_io_otel_attribute.String("kind", "Role"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1Roles) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1/Roles", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1/Roles/Watch", go_opentelemetry_io_otel_attribute.String("client", "RbacV1"), go_opentelemetry_io_otel_attribute.String("resource", "Roles"), go_opentelemetry_io_otel_attribute.String("kind", "Role"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedRbacV1alpha1ClusterRoleBindings wrapper @@ -12916,119 +17038,164 @@ func newRbacV1alpha1ClusterRoleBindings(inner k8s_io_client_go_kubernetes_typed_ func (c *wrappedRbacV1alpha1ClusterRoleBindings) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_rbac_v1alpha1.ClusterRoleBindingApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_rbac_v1alpha1.ClusterRoleBinding, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1alpha1/ClusterRoleBindings", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1alpha1/ClusterRoleBindings/Apply", go_opentelemetry_io_otel_attribute.String("client", "RbacV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterRoleBindings"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterRoleBinding"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1alpha1ClusterRoleBindings) Create(arg0 context.Context, arg1 *k8s_io_api_rbac_v1alpha1.ClusterRoleBinding, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_rbac_v1alpha1.ClusterRoleBinding, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1alpha1/ClusterRoleBindings", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1alpha1/ClusterRoleBindings/Create", go_opentelemetry_io_otel_attribute.String("client", "RbacV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterRoleBindings"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterRoleBinding"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1alpha1ClusterRoleBindings) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1alpha1/ClusterRoleBindings", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1alpha1/ClusterRoleBindings/Delete", go_opentelemetry_io_otel_attribute.String("client", "RbacV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterRoleBindings"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterRoleBinding"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedRbacV1alpha1ClusterRoleBindings) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1alpha1/ClusterRoleBindings", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1alpha1/ClusterRoleBindings/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "RbacV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterRoleBindings"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterRoleBinding"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedRbacV1alpha1ClusterRoleBindings) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_rbac_v1alpha1.ClusterRoleBinding, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1alpha1/ClusterRoleBindings", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1alpha1/ClusterRoleBindings/Get", go_opentelemetry_io_otel_attribute.String("client", "RbacV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterRoleBindings"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterRoleBinding"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1alpha1ClusterRoleBindings) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_rbac_v1alpha1.ClusterRoleBindingList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1alpha1/ClusterRoleBindings", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1alpha1/ClusterRoleBindings/List", go_opentelemetry_io_otel_attribute.String("client", "RbacV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterRoleBindings"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterRoleBinding"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1alpha1ClusterRoleBindings) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_rbac_v1alpha1.ClusterRoleBinding, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1alpha1/ClusterRoleBindings", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1alpha1/ClusterRoleBindings/Patch", go_opentelemetry_io_otel_attribute.String("client", "RbacV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterRoleBindings"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterRoleBinding"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1alpha1ClusterRoleBindings) Update(arg0 context.Context, arg1 *k8s_io_api_rbac_v1alpha1.ClusterRoleBinding, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_rbac_v1alpha1.ClusterRoleBinding, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1alpha1/ClusterRoleBindings", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1alpha1/ClusterRoleBindings/Update", go_opentelemetry_io_otel_attribute.String("client", "RbacV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterRoleBindings"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterRoleBinding"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1alpha1ClusterRoleBindings) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1alpha1/ClusterRoleBindings", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1alpha1/ClusterRoleBindings/Watch", go_opentelemetry_io_otel_attribute.String("client", "RbacV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterRoleBindings"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterRoleBinding"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedRbacV1alpha1ClusterRoles wrapper @@ -13042,119 +17209,164 @@ func newRbacV1alpha1ClusterRoles(inner k8s_io_client_go_kubernetes_typed_rbac_v1 func (c *wrappedRbacV1alpha1ClusterRoles) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_rbac_v1alpha1.ClusterRoleApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_rbac_v1alpha1.ClusterRole, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1alpha1/ClusterRoles", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1alpha1/ClusterRoles/Apply", go_opentelemetry_io_otel_attribute.String("client", "RbacV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterRoles"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterRole"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1alpha1ClusterRoles) Create(arg0 context.Context, arg1 *k8s_io_api_rbac_v1alpha1.ClusterRole, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_rbac_v1alpha1.ClusterRole, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1alpha1/ClusterRoles", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1alpha1/ClusterRoles/Create", go_opentelemetry_io_otel_attribute.String("client", "RbacV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterRoles"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterRole"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1alpha1ClusterRoles) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1alpha1/ClusterRoles", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1alpha1/ClusterRoles/Delete", go_opentelemetry_io_otel_attribute.String("client", "RbacV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterRoles"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterRole"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedRbacV1alpha1ClusterRoles) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1alpha1/ClusterRoles", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1alpha1/ClusterRoles/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "RbacV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterRoles"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterRole"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedRbacV1alpha1ClusterRoles) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_rbac_v1alpha1.ClusterRole, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1alpha1/ClusterRoles", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1alpha1/ClusterRoles/Get", go_opentelemetry_io_otel_attribute.String("client", "RbacV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterRoles"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterRole"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1alpha1ClusterRoles) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_rbac_v1alpha1.ClusterRoleList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1alpha1/ClusterRoles", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1alpha1/ClusterRoles/List", go_opentelemetry_io_otel_attribute.String("client", "RbacV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterRoles"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterRole"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1alpha1ClusterRoles) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_rbac_v1alpha1.ClusterRole, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1alpha1/ClusterRoles", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1alpha1/ClusterRoles/Patch", go_opentelemetry_io_otel_attribute.String("client", "RbacV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterRoles"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterRole"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1alpha1ClusterRoles) Update(arg0 context.Context, arg1 *k8s_io_api_rbac_v1alpha1.ClusterRole, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_rbac_v1alpha1.ClusterRole, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1alpha1/ClusterRoles", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1alpha1/ClusterRoles/Update", go_opentelemetry_io_otel_attribute.String("client", "RbacV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterRoles"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterRole"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1alpha1ClusterRoles) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1alpha1/ClusterRoles", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1alpha1/ClusterRoles/Watch", go_opentelemetry_io_otel_attribute.String("client", "RbacV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterRoles"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterRole"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedRbacV1alpha1RoleBindings wrapper @@ -13168,119 +17380,164 @@ func newRbacV1alpha1RoleBindings(inner k8s_io_client_go_kubernetes_typed_rbac_v1 func (c *wrappedRbacV1alpha1RoleBindings) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_rbac_v1alpha1.RoleBindingApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_rbac_v1alpha1.RoleBinding, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1alpha1/RoleBindings", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1alpha1/RoleBindings/Apply", go_opentelemetry_io_otel_attribute.String("client", "RbacV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "RoleBindings"), go_opentelemetry_io_otel_attribute.String("kind", "RoleBinding"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1alpha1RoleBindings) Create(arg0 context.Context, arg1 *k8s_io_api_rbac_v1alpha1.RoleBinding, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_rbac_v1alpha1.RoleBinding, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1alpha1/RoleBindings", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1alpha1/RoleBindings/Create", go_opentelemetry_io_otel_attribute.String("client", "RbacV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "RoleBindings"), go_opentelemetry_io_otel_attribute.String("kind", "RoleBinding"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1alpha1RoleBindings) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1alpha1/RoleBindings", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1alpha1/RoleBindings/Delete", go_opentelemetry_io_otel_attribute.String("client", "RbacV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "RoleBindings"), go_opentelemetry_io_otel_attribute.String("kind", "RoleBinding"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedRbacV1alpha1RoleBindings) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1alpha1/RoleBindings", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1alpha1/RoleBindings/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "RbacV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "RoleBindings"), go_opentelemetry_io_otel_attribute.String("kind", "RoleBinding"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedRbacV1alpha1RoleBindings) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_rbac_v1alpha1.RoleBinding, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1alpha1/RoleBindings", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1alpha1/RoleBindings/Get", go_opentelemetry_io_otel_attribute.String("client", "RbacV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "RoleBindings"), go_opentelemetry_io_otel_attribute.String("kind", "RoleBinding"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1alpha1RoleBindings) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_rbac_v1alpha1.RoleBindingList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1alpha1/RoleBindings", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1alpha1/RoleBindings/List", go_opentelemetry_io_otel_attribute.String("client", "RbacV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "RoleBindings"), go_opentelemetry_io_otel_attribute.String("kind", "RoleBinding"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1alpha1RoleBindings) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_rbac_v1alpha1.RoleBinding, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1alpha1/RoleBindings", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1alpha1/RoleBindings/Patch", go_opentelemetry_io_otel_attribute.String("client", "RbacV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "RoleBindings"), go_opentelemetry_io_otel_attribute.String("kind", "RoleBinding"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1alpha1RoleBindings) Update(arg0 context.Context, arg1 *k8s_io_api_rbac_v1alpha1.RoleBinding, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_rbac_v1alpha1.RoleBinding, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1alpha1/RoleBindings", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1alpha1/RoleBindings/Update", go_opentelemetry_io_otel_attribute.String("client", "RbacV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "RoleBindings"), go_opentelemetry_io_otel_attribute.String("kind", "RoleBinding"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1alpha1RoleBindings) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1alpha1/RoleBindings", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1alpha1/RoleBindings/Watch", go_opentelemetry_io_otel_attribute.String("client", "RbacV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "RoleBindings"), go_opentelemetry_io_otel_attribute.String("kind", "RoleBinding"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedRbacV1alpha1Roles wrapper @@ -13294,119 +17551,164 @@ func newRbacV1alpha1Roles(inner k8s_io_client_go_kubernetes_typed_rbac_v1alpha1. func (c *wrappedRbacV1alpha1Roles) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_rbac_v1alpha1.RoleApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_rbac_v1alpha1.Role, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1alpha1/Roles", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1alpha1/Roles/Apply", go_opentelemetry_io_otel_attribute.String("client", "RbacV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "Roles"), go_opentelemetry_io_otel_attribute.String("kind", "Role"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1alpha1Roles) Create(arg0 context.Context, arg1 *k8s_io_api_rbac_v1alpha1.Role, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_rbac_v1alpha1.Role, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1alpha1/Roles", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1alpha1/Roles/Create", go_opentelemetry_io_otel_attribute.String("client", "RbacV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "Roles"), go_opentelemetry_io_otel_attribute.String("kind", "Role"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1alpha1Roles) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1alpha1/Roles", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1alpha1/Roles/Delete", go_opentelemetry_io_otel_attribute.String("client", "RbacV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "Roles"), go_opentelemetry_io_otel_attribute.String("kind", "Role"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedRbacV1alpha1Roles) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1alpha1/Roles", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1alpha1/Roles/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "RbacV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "Roles"), go_opentelemetry_io_otel_attribute.String("kind", "Role"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedRbacV1alpha1Roles) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_rbac_v1alpha1.Role, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1alpha1/Roles", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1alpha1/Roles/Get", go_opentelemetry_io_otel_attribute.String("client", "RbacV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "Roles"), go_opentelemetry_io_otel_attribute.String("kind", "Role"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1alpha1Roles) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_rbac_v1alpha1.RoleList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1alpha1/Roles", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1alpha1/Roles/List", go_opentelemetry_io_otel_attribute.String("client", "RbacV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "Roles"), go_opentelemetry_io_otel_attribute.String("kind", "Role"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1alpha1Roles) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_rbac_v1alpha1.Role, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1alpha1/Roles", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1alpha1/Roles/Patch", go_opentelemetry_io_otel_attribute.String("client", "RbacV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "Roles"), go_opentelemetry_io_otel_attribute.String("kind", "Role"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1alpha1Roles) Update(arg0 context.Context, arg1 *k8s_io_api_rbac_v1alpha1.Role, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_rbac_v1alpha1.Role, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1alpha1/Roles", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1alpha1/Roles/Update", go_opentelemetry_io_otel_attribute.String("client", "RbacV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "Roles"), go_opentelemetry_io_otel_attribute.String("kind", "Role"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1alpha1Roles) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1alpha1/Roles", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1alpha1/Roles/Watch", go_opentelemetry_io_otel_attribute.String("client", "RbacV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "Roles"), go_opentelemetry_io_otel_attribute.String("kind", "Role"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedRbacV1beta1ClusterRoleBindings wrapper @@ -13420,119 +17722,164 @@ func newRbacV1beta1ClusterRoleBindings(inner k8s_io_client_go_kubernetes_typed_r func (c *wrappedRbacV1beta1ClusterRoleBindings) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_rbac_v1beta1.ClusterRoleBindingApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_rbac_v1beta1.ClusterRoleBinding, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1beta1/ClusterRoleBindings", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1beta1/ClusterRoleBindings/Apply", go_opentelemetry_io_otel_attribute.String("client", "RbacV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterRoleBindings"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterRoleBinding"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1beta1ClusterRoleBindings) Create(arg0 context.Context, arg1 *k8s_io_api_rbac_v1beta1.ClusterRoleBinding, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_rbac_v1beta1.ClusterRoleBinding, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1beta1/ClusterRoleBindings", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1beta1/ClusterRoleBindings/Create", go_opentelemetry_io_otel_attribute.String("client", "RbacV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterRoleBindings"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterRoleBinding"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1beta1ClusterRoleBindings) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1beta1/ClusterRoleBindings", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1beta1/ClusterRoleBindings/Delete", go_opentelemetry_io_otel_attribute.String("client", "RbacV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterRoleBindings"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterRoleBinding"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedRbacV1beta1ClusterRoleBindings) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1beta1/ClusterRoleBindings", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1beta1/ClusterRoleBindings/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "RbacV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterRoleBindings"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterRoleBinding"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedRbacV1beta1ClusterRoleBindings) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_rbac_v1beta1.ClusterRoleBinding, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1beta1/ClusterRoleBindings", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1beta1/ClusterRoleBindings/Get", go_opentelemetry_io_otel_attribute.String("client", "RbacV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterRoleBindings"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterRoleBinding"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1beta1ClusterRoleBindings) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_rbac_v1beta1.ClusterRoleBindingList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1beta1/ClusterRoleBindings", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1beta1/ClusterRoleBindings/List", go_opentelemetry_io_otel_attribute.String("client", "RbacV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterRoleBindings"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterRoleBinding"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1beta1ClusterRoleBindings) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_rbac_v1beta1.ClusterRoleBinding, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1beta1/ClusterRoleBindings", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1beta1/ClusterRoleBindings/Patch", go_opentelemetry_io_otel_attribute.String("client", "RbacV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterRoleBindings"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterRoleBinding"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1beta1ClusterRoleBindings) Update(arg0 context.Context, arg1 *k8s_io_api_rbac_v1beta1.ClusterRoleBinding, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_rbac_v1beta1.ClusterRoleBinding, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1beta1/ClusterRoleBindings", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1beta1/ClusterRoleBindings/Update", go_opentelemetry_io_otel_attribute.String("client", "RbacV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterRoleBindings"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterRoleBinding"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1beta1ClusterRoleBindings) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1beta1/ClusterRoleBindings", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1beta1/ClusterRoleBindings/Watch", go_opentelemetry_io_otel_attribute.String("client", "RbacV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterRoleBindings"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterRoleBinding"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedRbacV1beta1ClusterRoles wrapper @@ -13546,119 +17893,164 @@ func newRbacV1beta1ClusterRoles(inner k8s_io_client_go_kubernetes_typed_rbac_v1b func (c *wrappedRbacV1beta1ClusterRoles) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_rbac_v1beta1.ClusterRoleApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_rbac_v1beta1.ClusterRole, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1beta1/ClusterRoles", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1beta1/ClusterRoles/Apply", go_opentelemetry_io_otel_attribute.String("client", "RbacV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterRoles"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterRole"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1beta1ClusterRoles) Create(arg0 context.Context, arg1 *k8s_io_api_rbac_v1beta1.ClusterRole, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_rbac_v1beta1.ClusterRole, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1beta1/ClusterRoles", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1beta1/ClusterRoles/Create", go_opentelemetry_io_otel_attribute.String("client", "RbacV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterRoles"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterRole"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1beta1ClusterRoles) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1beta1/ClusterRoles", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1beta1/ClusterRoles/Delete", go_opentelemetry_io_otel_attribute.String("client", "RbacV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterRoles"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterRole"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedRbacV1beta1ClusterRoles) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1beta1/ClusterRoles", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1beta1/ClusterRoles/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "RbacV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterRoles"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterRole"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedRbacV1beta1ClusterRoles) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_rbac_v1beta1.ClusterRole, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1beta1/ClusterRoles", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1beta1/ClusterRoles/Get", go_opentelemetry_io_otel_attribute.String("client", "RbacV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterRoles"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterRole"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1beta1ClusterRoles) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_rbac_v1beta1.ClusterRoleList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1beta1/ClusterRoles", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1beta1/ClusterRoles/List", go_opentelemetry_io_otel_attribute.String("client", "RbacV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterRoles"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterRole"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1beta1ClusterRoles) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_rbac_v1beta1.ClusterRole, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1beta1/ClusterRoles", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1beta1/ClusterRoles/Patch", go_opentelemetry_io_otel_attribute.String("client", "RbacV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterRoles"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterRole"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1beta1ClusterRoles) Update(arg0 context.Context, arg1 *k8s_io_api_rbac_v1beta1.ClusterRole, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_rbac_v1beta1.ClusterRole, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1beta1/ClusterRoles", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1beta1/ClusterRoles/Update", go_opentelemetry_io_otel_attribute.String("client", "RbacV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterRoles"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterRole"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1beta1ClusterRoles) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1beta1/ClusterRoles", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1beta1/ClusterRoles/Watch", go_opentelemetry_io_otel_attribute.String("client", "RbacV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterRoles"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterRole"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedRbacV1beta1RoleBindings wrapper @@ -13672,119 +18064,164 @@ func newRbacV1beta1RoleBindings(inner k8s_io_client_go_kubernetes_typed_rbac_v1b func (c *wrappedRbacV1beta1RoleBindings) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_rbac_v1beta1.RoleBindingApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_rbac_v1beta1.RoleBinding, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1beta1/RoleBindings", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1beta1/RoleBindings/Apply", go_opentelemetry_io_otel_attribute.String("client", "RbacV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "RoleBindings"), go_opentelemetry_io_otel_attribute.String("kind", "RoleBinding"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1beta1RoleBindings) Create(arg0 context.Context, arg1 *k8s_io_api_rbac_v1beta1.RoleBinding, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_rbac_v1beta1.RoleBinding, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1beta1/RoleBindings", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1beta1/RoleBindings/Create", go_opentelemetry_io_otel_attribute.String("client", "RbacV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "RoleBindings"), go_opentelemetry_io_otel_attribute.String("kind", "RoleBinding"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1beta1RoleBindings) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1beta1/RoleBindings", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1beta1/RoleBindings/Delete", go_opentelemetry_io_otel_attribute.String("client", "RbacV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "RoleBindings"), go_opentelemetry_io_otel_attribute.String("kind", "RoleBinding"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedRbacV1beta1RoleBindings) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1beta1/RoleBindings", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1beta1/RoleBindings/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "RbacV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "RoleBindings"), go_opentelemetry_io_otel_attribute.String("kind", "RoleBinding"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedRbacV1beta1RoleBindings) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_rbac_v1beta1.RoleBinding, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1beta1/RoleBindings", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1beta1/RoleBindings/Get", go_opentelemetry_io_otel_attribute.String("client", "RbacV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "RoleBindings"), go_opentelemetry_io_otel_attribute.String("kind", "RoleBinding"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1beta1RoleBindings) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_rbac_v1beta1.RoleBindingList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1beta1/RoleBindings", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1beta1/RoleBindings/List", go_opentelemetry_io_otel_attribute.String("client", "RbacV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "RoleBindings"), go_opentelemetry_io_otel_attribute.String("kind", "RoleBinding"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1beta1RoleBindings) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_rbac_v1beta1.RoleBinding, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1beta1/RoleBindings", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1beta1/RoleBindings/Patch", go_opentelemetry_io_otel_attribute.String("client", "RbacV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "RoleBindings"), go_opentelemetry_io_otel_attribute.String("kind", "RoleBinding"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1beta1RoleBindings) Update(arg0 context.Context, arg1 *k8s_io_api_rbac_v1beta1.RoleBinding, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_rbac_v1beta1.RoleBinding, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1beta1/RoleBindings", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1beta1/RoleBindings/Update", go_opentelemetry_io_otel_attribute.String("client", "RbacV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "RoleBindings"), go_opentelemetry_io_otel_attribute.String("kind", "RoleBinding"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1beta1RoleBindings) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1beta1/RoleBindings", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1beta1/RoleBindings/Watch", go_opentelemetry_io_otel_attribute.String("client", "RbacV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "RoleBindings"), go_opentelemetry_io_otel_attribute.String("kind", "RoleBinding"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedRbacV1beta1Roles wrapper @@ -13798,119 +18235,164 @@ func newRbacV1beta1Roles(inner k8s_io_client_go_kubernetes_typed_rbac_v1beta1.Ro func (c *wrappedRbacV1beta1Roles) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_rbac_v1beta1.RoleApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_rbac_v1beta1.Role, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1beta1/Roles", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1beta1/Roles/Apply", go_opentelemetry_io_otel_attribute.String("client", "RbacV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Roles"), go_opentelemetry_io_otel_attribute.String("kind", "Role"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1beta1Roles) Create(arg0 context.Context, arg1 *k8s_io_api_rbac_v1beta1.Role, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_rbac_v1beta1.Role, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1beta1/Roles", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1beta1/Roles/Create", go_opentelemetry_io_otel_attribute.String("client", "RbacV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Roles"), go_opentelemetry_io_otel_attribute.String("kind", "Role"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1beta1Roles) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1beta1/Roles", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1beta1/Roles/Delete", go_opentelemetry_io_otel_attribute.String("client", "RbacV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Roles"), go_opentelemetry_io_otel_attribute.String("kind", "Role"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedRbacV1beta1Roles) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1beta1/Roles", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1beta1/Roles/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "RbacV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Roles"), go_opentelemetry_io_otel_attribute.String("kind", "Role"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedRbacV1beta1Roles) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_rbac_v1beta1.Role, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1beta1/Roles", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1beta1/Roles/Get", go_opentelemetry_io_otel_attribute.String("client", "RbacV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Roles"), go_opentelemetry_io_otel_attribute.String("kind", "Role"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1beta1Roles) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_rbac_v1beta1.RoleList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1beta1/Roles", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1beta1/Roles/List", go_opentelemetry_io_otel_attribute.String("client", "RbacV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Roles"), go_opentelemetry_io_otel_attribute.String("kind", "Role"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1beta1Roles) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_rbac_v1beta1.Role, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1beta1/Roles", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1beta1/Roles/Patch", go_opentelemetry_io_otel_attribute.String("client", "RbacV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Roles"), go_opentelemetry_io_otel_attribute.String("kind", "Role"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1beta1Roles) Update(arg0 context.Context, arg1 *k8s_io_api_rbac_v1beta1.Role, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_rbac_v1beta1.Role, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1beta1/Roles", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1beta1/Roles/Update", go_opentelemetry_io_otel_attribute.String("client", "RbacV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Roles"), go_opentelemetry_io_otel_attribute.String("kind", "Role"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedRbacV1beta1Roles) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "RbacV1beta1/Roles", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE RbacV1beta1/Roles/Watch", go_opentelemetry_io_otel_attribute.String("client", "RbacV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "Roles"), go_opentelemetry_io_otel_attribute.String("kind", "Role"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedSchedulingV1PriorityClasses wrapper @@ -13924,119 +18406,164 @@ func newSchedulingV1PriorityClasses(inner k8s_io_client_go_kubernetes_typed_sche func (c *wrappedSchedulingV1PriorityClasses) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_scheduling_v1.PriorityClassApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_scheduling_v1.PriorityClass, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "SchedulingV1/PriorityClasses", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE SchedulingV1/PriorityClasses/Apply", go_opentelemetry_io_otel_attribute.String("client", "SchedulingV1"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityClasses"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityClass"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedSchedulingV1PriorityClasses) Create(arg0 context.Context, arg1 *k8s_io_api_scheduling_v1.PriorityClass, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_scheduling_v1.PriorityClass, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "SchedulingV1/PriorityClasses", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE SchedulingV1/PriorityClasses/Create", go_opentelemetry_io_otel_attribute.String("client", "SchedulingV1"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityClasses"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityClass"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedSchedulingV1PriorityClasses) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "SchedulingV1/PriorityClasses", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE SchedulingV1/PriorityClasses/Delete", go_opentelemetry_io_otel_attribute.String("client", "SchedulingV1"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityClasses"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityClass"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedSchedulingV1PriorityClasses) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "SchedulingV1/PriorityClasses", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE SchedulingV1/PriorityClasses/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "SchedulingV1"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityClasses"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityClass"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedSchedulingV1PriorityClasses) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_scheduling_v1.PriorityClass, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "SchedulingV1/PriorityClasses", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE SchedulingV1/PriorityClasses/Get", go_opentelemetry_io_otel_attribute.String("client", "SchedulingV1"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityClasses"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityClass"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedSchedulingV1PriorityClasses) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_scheduling_v1.PriorityClassList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "SchedulingV1/PriorityClasses", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE SchedulingV1/PriorityClasses/List", go_opentelemetry_io_otel_attribute.String("client", "SchedulingV1"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityClasses"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityClass"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedSchedulingV1PriorityClasses) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_scheduling_v1.PriorityClass, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "SchedulingV1/PriorityClasses", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE SchedulingV1/PriorityClasses/Patch", go_opentelemetry_io_otel_attribute.String("client", "SchedulingV1"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityClasses"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityClass"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedSchedulingV1PriorityClasses) Update(arg0 context.Context, arg1 *k8s_io_api_scheduling_v1.PriorityClass, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_scheduling_v1.PriorityClass, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "SchedulingV1/PriorityClasses", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE SchedulingV1/PriorityClasses/Update", go_opentelemetry_io_otel_attribute.String("client", "SchedulingV1"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityClasses"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityClass"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedSchedulingV1PriorityClasses) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "SchedulingV1/PriorityClasses", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE SchedulingV1/PriorityClasses/Watch", go_opentelemetry_io_otel_attribute.String("client", "SchedulingV1"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityClasses"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityClass"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedSchedulingV1alpha1PriorityClasses wrapper @@ -14050,119 +18577,164 @@ func newSchedulingV1alpha1PriorityClasses(inner k8s_io_client_go_kubernetes_type func (c *wrappedSchedulingV1alpha1PriorityClasses) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_scheduling_v1alpha1.PriorityClassApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_scheduling_v1alpha1.PriorityClass, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "SchedulingV1alpha1/PriorityClasses", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE SchedulingV1alpha1/PriorityClasses/Apply", go_opentelemetry_io_otel_attribute.String("client", "SchedulingV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityClasses"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityClass"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedSchedulingV1alpha1PriorityClasses) Create(arg0 context.Context, arg1 *k8s_io_api_scheduling_v1alpha1.PriorityClass, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_scheduling_v1alpha1.PriorityClass, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "SchedulingV1alpha1/PriorityClasses", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE SchedulingV1alpha1/PriorityClasses/Create", go_opentelemetry_io_otel_attribute.String("client", "SchedulingV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityClasses"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityClass"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedSchedulingV1alpha1PriorityClasses) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "SchedulingV1alpha1/PriorityClasses", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE SchedulingV1alpha1/PriorityClasses/Delete", go_opentelemetry_io_otel_attribute.String("client", "SchedulingV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityClasses"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityClass"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedSchedulingV1alpha1PriorityClasses) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "SchedulingV1alpha1/PriorityClasses", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE SchedulingV1alpha1/PriorityClasses/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "SchedulingV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityClasses"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityClass"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedSchedulingV1alpha1PriorityClasses) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_scheduling_v1alpha1.PriorityClass, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "SchedulingV1alpha1/PriorityClasses", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE SchedulingV1alpha1/PriorityClasses/Get", go_opentelemetry_io_otel_attribute.String("client", "SchedulingV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityClasses"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityClass"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedSchedulingV1alpha1PriorityClasses) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_scheduling_v1alpha1.PriorityClassList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "SchedulingV1alpha1/PriorityClasses", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE SchedulingV1alpha1/PriorityClasses/List", go_opentelemetry_io_otel_attribute.String("client", "SchedulingV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityClasses"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityClass"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedSchedulingV1alpha1PriorityClasses) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_scheduling_v1alpha1.PriorityClass, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "SchedulingV1alpha1/PriorityClasses", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE SchedulingV1alpha1/PriorityClasses/Patch", go_opentelemetry_io_otel_attribute.String("client", "SchedulingV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityClasses"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityClass"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedSchedulingV1alpha1PriorityClasses) Update(arg0 context.Context, arg1 *k8s_io_api_scheduling_v1alpha1.PriorityClass, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_scheduling_v1alpha1.PriorityClass, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "SchedulingV1alpha1/PriorityClasses", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE SchedulingV1alpha1/PriorityClasses/Update", go_opentelemetry_io_otel_attribute.String("client", "SchedulingV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityClasses"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityClass"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedSchedulingV1alpha1PriorityClasses) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "SchedulingV1alpha1/PriorityClasses", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE SchedulingV1alpha1/PriorityClasses/Watch", go_opentelemetry_io_otel_attribute.String("client", "SchedulingV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityClasses"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityClass"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedSchedulingV1beta1PriorityClasses wrapper @@ -14176,119 +18748,164 @@ func newSchedulingV1beta1PriorityClasses(inner k8s_io_client_go_kubernetes_typed func (c *wrappedSchedulingV1beta1PriorityClasses) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_scheduling_v1beta1.PriorityClassApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_scheduling_v1beta1.PriorityClass, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "SchedulingV1beta1/PriorityClasses", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE SchedulingV1beta1/PriorityClasses/Apply", go_opentelemetry_io_otel_attribute.String("client", "SchedulingV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityClasses"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityClass"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedSchedulingV1beta1PriorityClasses) Create(arg0 context.Context, arg1 *k8s_io_api_scheduling_v1beta1.PriorityClass, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_scheduling_v1beta1.PriorityClass, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "SchedulingV1beta1/PriorityClasses", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE SchedulingV1beta1/PriorityClasses/Create", go_opentelemetry_io_otel_attribute.String("client", "SchedulingV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityClasses"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityClass"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedSchedulingV1beta1PriorityClasses) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "SchedulingV1beta1/PriorityClasses", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE SchedulingV1beta1/PriorityClasses/Delete", go_opentelemetry_io_otel_attribute.String("client", "SchedulingV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityClasses"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityClass"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedSchedulingV1beta1PriorityClasses) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "SchedulingV1beta1/PriorityClasses", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE SchedulingV1beta1/PriorityClasses/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "SchedulingV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityClasses"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityClass"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedSchedulingV1beta1PriorityClasses) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_scheduling_v1beta1.PriorityClass, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "SchedulingV1beta1/PriorityClasses", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE SchedulingV1beta1/PriorityClasses/Get", go_opentelemetry_io_otel_attribute.String("client", "SchedulingV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityClasses"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityClass"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedSchedulingV1beta1PriorityClasses) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_scheduling_v1beta1.PriorityClassList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "SchedulingV1beta1/PriorityClasses", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE SchedulingV1beta1/PriorityClasses/List", go_opentelemetry_io_otel_attribute.String("client", "SchedulingV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityClasses"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityClass"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedSchedulingV1beta1PriorityClasses) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_scheduling_v1beta1.PriorityClass, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "SchedulingV1beta1/PriorityClasses", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE SchedulingV1beta1/PriorityClasses/Patch", go_opentelemetry_io_otel_attribute.String("client", "SchedulingV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityClasses"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityClass"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedSchedulingV1beta1PriorityClasses) Update(arg0 context.Context, arg1 *k8s_io_api_scheduling_v1beta1.PriorityClass, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_scheduling_v1beta1.PriorityClass, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "SchedulingV1beta1/PriorityClasses", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE SchedulingV1beta1/PriorityClasses/Update", go_opentelemetry_io_otel_attribute.String("client", "SchedulingV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityClasses"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityClass"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedSchedulingV1beta1PriorityClasses) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "SchedulingV1beta1/PriorityClasses", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE SchedulingV1beta1/PriorityClasses/Watch", go_opentelemetry_io_otel_attribute.String("client", "SchedulingV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "PriorityClasses"), go_opentelemetry_io_otel_attribute.String("kind", "PriorityClass"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedStorageV1CSIDrivers wrapper @@ -14302,119 +18919,164 @@ func newStorageV1CSIDrivers(inner k8s_io_client_go_kubernetes_typed_storage_v1.C func (c *wrappedStorageV1CSIDrivers) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_storage_v1.CSIDriverApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_storage_v1.CSIDriver, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1/CSIDrivers", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1/CSIDrivers/Apply", go_opentelemetry_io_otel_attribute.String("client", "StorageV1"), go_opentelemetry_io_otel_attribute.String("resource", "CSIDrivers"), go_opentelemetry_io_otel_attribute.String("kind", "CSIDriver"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1CSIDrivers) Create(arg0 context.Context, arg1 *k8s_io_api_storage_v1.CSIDriver, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_storage_v1.CSIDriver, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1/CSIDrivers", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1/CSIDrivers/Create", go_opentelemetry_io_otel_attribute.String("client", "StorageV1"), go_opentelemetry_io_otel_attribute.String("resource", "CSIDrivers"), go_opentelemetry_io_otel_attribute.String("kind", "CSIDriver"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1CSIDrivers) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1/CSIDrivers", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1/CSIDrivers/Delete", go_opentelemetry_io_otel_attribute.String("client", "StorageV1"), go_opentelemetry_io_otel_attribute.String("resource", "CSIDrivers"), go_opentelemetry_io_otel_attribute.String("kind", "CSIDriver"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedStorageV1CSIDrivers) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1/CSIDrivers", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1/CSIDrivers/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "StorageV1"), go_opentelemetry_io_otel_attribute.String("resource", "CSIDrivers"), go_opentelemetry_io_otel_attribute.String("kind", "CSIDriver"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedStorageV1CSIDrivers) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_storage_v1.CSIDriver, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1/CSIDrivers", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1/CSIDrivers/Get", go_opentelemetry_io_otel_attribute.String("client", "StorageV1"), go_opentelemetry_io_otel_attribute.String("resource", "CSIDrivers"), go_opentelemetry_io_otel_attribute.String("kind", "CSIDriver"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1CSIDrivers) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_storage_v1.CSIDriverList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1/CSIDrivers", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1/CSIDrivers/List", go_opentelemetry_io_otel_attribute.String("client", "StorageV1"), go_opentelemetry_io_otel_attribute.String("resource", "CSIDrivers"), go_opentelemetry_io_otel_attribute.String("kind", "CSIDriver"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1CSIDrivers) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_storage_v1.CSIDriver, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1/CSIDrivers", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1/CSIDrivers/Patch", go_opentelemetry_io_otel_attribute.String("client", "StorageV1"), go_opentelemetry_io_otel_attribute.String("resource", "CSIDrivers"), go_opentelemetry_io_otel_attribute.String("kind", "CSIDriver"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1CSIDrivers) Update(arg0 context.Context, arg1 *k8s_io_api_storage_v1.CSIDriver, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_storage_v1.CSIDriver, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1/CSIDrivers", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1/CSIDrivers/Update", go_opentelemetry_io_otel_attribute.String("client", "StorageV1"), go_opentelemetry_io_otel_attribute.String("resource", "CSIDrivers"), go_opentelemetry_io_otel_attribute.String("kind", "CSIDriver"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1CSIDrivers) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1/CSIDrivers", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1/CSIDrivers/Watch", go_opentelemetry_io_otel_attribute.String("client", "StorageV1"), go_opentelemetry_io_otel_attribute.String("resource", "CSIDrivers"), go_opentelemetry_io_otel_attribute.String("kind", "CSIDriver"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedStorageV1CSINodes wrapper @@ -14428,119 +19090,164 @@ func newStorageV1CSINodes(inner k8s_io_client_go_kubernetes_typed_storage_v1.CSI func (c *wrappedStorageV1CSINodes) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_storage_v1.CSINodeApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_storage_v1.CSINode, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1/CSINodes", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1/CSINodes/Apply", go_opentelemetry_io_otel_attribute.String("client", "StorageV1"), go_opentelemetry_io_otel_attribute.String("resource", "CSINodes"), go_opentelemetry_io_otel_attribute.String("kind", "CSINode"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1CSINodes) Create(arg0 context.Context, arg1 *k8s_io_api_storage_v1.CSINode, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_storage_v1.CSINode, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1/CSINodes", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1/CSINodes/Create", go_opentelemetry_io_otel_attribute.String("client", "StorageV1"), go_opentelemetry_io_otel_attribute.String("resource", "CSINodes"), go_opentelemetry_io_otel_attribute.String("kind", "CSINode"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1CSINodes) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1/CSINodes", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1/CSINodes/Delete", go_opentelemetry_io_otel_attribute.String("client", "StorageV1"), go_opentelemetry_io_otel_attribute.String("resource", "CSINodes"), go_opentelemetry_io_otel_attribute.String("kind", "CSINode"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedStorageV1CSINodes) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1/CSINodes", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1/CSINodes/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "StorageV1"), go_opentelemetry_io_otel_attribute.String("resource", "CSINodes"), go_opentelemetry_io_otel_attribute.String("kind", "CSINode"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedStorageV1CSINodes) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_storage_v1.CSINode, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1/CSINodes", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1/CSINodes/Get", go_opentelemetry_io_otel_attribute.String("client", "StorageV1"), go_opentelemetry_io_otel_attribute.String("resource", "CSINodes"), go_opentelemetry_io_otel_attribute.String("kind", "CSINode"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1CSINodes) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_storage_v1.CSINodeList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1/CSINodes", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1/CSINodes/List", go_opentelemetry_io_otel_attribute.String("client", "StorageV1"), go_opentelemetry_io_otel_attribute.String("resource", "CSINodes"), go_opentelemetry_io_otel_attribute.String("kind", "CSINode"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1CSINodes) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_storage_v1.CSINode, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1/CSINodes", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1/CSINodes/Patch", go_opentelemetry_io_otel_attribute.String("client", "StorageV1"), go_opentelemetry_io_otel_attribute.String("resource", "CSINodes"), go_opentelemetry_io_otel_attribute.String("kind", "CSINode"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1CSINodes) Update(arg0 context.Context, arg1 *k8s_io_api_storage_v1.CSINode, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_storage_v1.CSINode, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1/CSINodes", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1/CSINodes/Update", go_opentelemetry_io_otel_attribute.String("client", "StorageV1"), go_opentelemetry_io_otel_attribute.String("resource", "CSINodes"), go_opentelemetry_io_otel_attribute.String("kind", "CSINode"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1CSINodes) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1/CSINodes", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1/CSINodes/Watch", go_opentelemetry_io_otel_attribute.String("client", "StorageV1"), go_opentelemetry_io_otel_attribute.String("resource", "CSINodes"), go_opentelemetry_io_otel_attribute.String("kind", "CSINode"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedStorageV1CSIStorageCapacities wrapper @@ -14554,119 +19261,164 @@ func newStorageV1CSIStorageCapacities(inner k8s_io_client_go_kubernetes_typed_st func (c *wrappedStorageV1CSIStorageCapacities) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_storage_v1.CSIStorageCapacityApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_storage_v1.CSIStorageCapacity, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1/CSIStorageCapacities", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1/CSIStorageCapacities/Apply", go_opentelemetry_io_otel_attribute.String("client", "StorageV1"), go_opentelemetry_io_otel_attribute.String("resource", "CSIStorageCapacities"), go_opentelemetry_io_otel_attribute.String("kind", "CSIStorageCapacity"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1CSIStorageCapacities) Create(arg0 context.Context, arg1 *k8s_io_api_storage_v1.CSIStorageCapacity, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_storage_v1.CSIStorageCapacity, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1/CSIStorageCapacities", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1/CSIStorageCapacities/Create", go_opentelemetry_io_otel_attribute.String("client", "StorageV1"), go_opentelemetry_io_otel_attribute.String("resource", "CSIStorageCapacities"), go_opentelemetry_io_otel_attribute.String("kind", "CSIStorageCapacity"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1CSIStorageCapacities) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1/CSIStorageCapacities", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1/CSIStorageCapacities/Delete", go_opentelemetry_io_otel_attribute.String("client", "StorageV1"), go_opentelemetry_io_otel_attribute.String("resource", "CSIStorageCapacities"), go_opentelemetry_io_otel_attribute.String("kind", "CSIStorageCapacity"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedStorageV1CSIStorageCapacities) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1/CSIStorageCapacities", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1/CSIStorageCapacities/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "StorageV1"), go_opentelemetry_io_otel_attribute.String("resource", "CSIStorageCapacities"), go_opentelemetry_io_otel_attribute.String("kind", "CSIStorageCapacity"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedStorageV1CSIStorageCapacities) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_storage_v1.CSIStorageCapacity, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1/CSIStorageCapacities", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1/CSIStorageCapacities/Get", go_opentelemetry_io_otel_attribute.String("client", "StorageV1"), go_opentelemetry_io_otel_attribute.String("resource", "CSIStorageCapacities"), go_opentelemetry_io_otel_attribute.String("kind", "CSIStorageCapacity"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1CSIStorageCapacities) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_storage_v1.CSIStorageCapacityList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1/CSIStorageCapacities", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1/CSIStorageCapacities/List", go_opentelemetry_io_otel_attribute.String("client", "StorageV1"), go_opentelemetry_io_otel_attribute.String("resource", "CSIStorageCapacities"), go_opentelemetry_io_otel_attribute.String("kind", "CSIStorageCapacity"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1CSIStorageCapacities) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_storage_v1.CSIStorageCapacity, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1/CSIStorageCapacities", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1/CSIStorageCapacities/Patch", go_opentelemetry_io_otel_attribute.String("client", "StorageV1"), go_opentelemetry_io_otel_attribute.String("resource", "CSIStorageCapacities"), go_opentelemetry_io_otel_attribute.String("kind", "CSIStorageCapacity"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1CSIStorageCapacities) Update(arg0 context.Context, arg1 *k8s_io_api_storage_v1.CSIStorageCapacity, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_storage_v1.CSIStorageCapacity, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1/CSIStorageCapacities", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1/CSIStorageCapacities/Update", go_opentelemetry_io_otel_attribute.String("client", "StorageV1"), go_opentelemetry_io_otel_attribute.String("resource", "CSIStorageCapacities"), go_opentelemetry_io_otel_attribute.String("kind", "CSIStorageCapacity"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1CSIStorageCapacities) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1/CSIStorageCapacities", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1/CSIStorageCapacities/Watch", go_opentelemetry_io_otel_attribute.String("client", "StorageV1"), go_opentelemetry_io_otel_attribute.String("resource", "CSIStorageCapacities"), go_opentelemetry_io_otel_attribute.String("kind", "CSIStorageCapacity"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedStorageV1StorageClasses wrapper @@ -14680,119 +19432,164 @@ func newStorageV1StorageClasses(inner k8s_io_client_go_kubernetes_typed_storage_ func (c *wrappedStorageV1StorageClasses) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_storage_v1.StorageClassApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_storage_v1.StorageClass, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1/StorageClasses", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1/StorageClasses/Apply", go_opentelemetry_io_otel_attribute.String("client", "StorageV1"), go_opentelemetry_io_otel_attribute.String("resource", "StorageClasses"), go_opentelemetry_io_otel_attribute.String("kind", "StorageClass"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1StorageClasses) Create(arg0 context.Context, arg1 *k8s_io_api_storage_v1.StorageClass, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_storage_v1.StorageClass, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1/StorageClasses", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1/StorageClasses/Create", go_opentelemetry_io_otel_attribute.String("client", "StorageV1"), go_opentelemetry_io_otel_attribute.String("resource", "StorageClasses"), go_opentelemetry_io_otel_attribute.String("kind", "StorageClass"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1StorageClasses) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1/StorageClasses", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1/StorageClasses/Delete", go_opentelemetry_io_otel_attribute.String("client", "StorageV1"), go_opentelemetry_io_otel_attribute.String("resource", "StorageClasses"), go_opentelemetry_io_otel_attribute.String("kind", "StorageClass"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedStorageV1StorageClasses) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1/StorageClasses", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1/StorageClasses/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "StorageV1"), go_opentelemetry_io_otel_attribute.String("resource", "StorageClasses"), go_opentelemetry_io_otel_attribute.String("kind", "StorageClass"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedStorageV1StorageClasses) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_storage_v1.StorageClass, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1/StorageClasses", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1/StorageClasses/Get", go_opentelemetry_io_otel_attribute.String("client", "StorageV1"), go_opentelemetry_io_otel_attribute.String("resource", "StorageClasses"), go_opentelemetry_io_otel_attribute.String("kind", "StorageClass"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1StorageClasses) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_storage_v1.StorageClassList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1/StorageClasses", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1/StorageClasses/List", go_opentelemetry_io_otel_attribute.String("client", "StorageV1"), go_opentelemetry_io_otel_attribute.String("resource", "StorageClasses"), go_opentelemetry_io_otel_attribute.String("kind", "StorageClass"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1StorageClasses) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_storage_v1.StorageClass, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1/StorageClasses", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1/StorageClasses/Patch", go_opentelemetry_io_otel_attribute.String("client", "StorageV1"), go_opentelemetry_io_otel_attribute.String("resource", "StorageClasses"), go_opentelemetry_io_otel_attribute.String("kind", "StorageClass"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1StorageClasses) Update(arg0 context.Context, arg1 *k8s_io_api_storage_v1.StorageClass, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_storage_v1.StorageClass, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1/StorageClasses", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1/StorageClasses/Update", go_opentelemetry_io_otel_attribute.String("client", "StorageV1"), go_opentelemetry_io_otel_attribute.String("resource", "StorageClasses"), go_opentelemetry_io_otel_attribute.String("kind", "StorageClass"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1StorageClasses) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1/StorageClasses", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1/StorageClasses/Watch", go_opentelemetry_io_otel_attribute.String("client", "StorageV1"), go_opentelemetry_io_otel_attribute.String("resource", "StorageClasses"), go_opentelemetry_io_otel_attribute.String("kind", "StorageClass"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedStorageV1VolumeAttachments wrapper @@ -14806,145 +19603,200 @@ func newStorageV1VolumeAttachments(inner k8s_io_client_go_kubernetes_typed_stora func (c *wrappedStorageV1VolumeAttachments) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_storage_v1.VolumeAttachmentApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_storage_v1.VolumeAttachment, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1/VolumeAttachments", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1/VolumeAttachments/Apply", go_opentelemetry_io_otel_attribute.String("client", "StorageV1"), go_opentelemetry_io_otel_attribute.String("resource", "VolumeAttachments"), go_opentelemetry_io_otel_attribute.String("kind", "VolumeAttachment"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1VolumeAttachments) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_storage_v1.VolumeAttachmentApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_storage_v1.VolumeAttachment, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1/VolumeAttachments", - "ApplyStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1/VolumeAttachments/ApplyStatus", go_opentelemetry_io_otel_attribute.String("client", "StorageV1"), go_opentelemetry_io_otel_attribute.String("resource", "VolumeAttachments"), go_opentelemetry_io_otel_attribute.String("kind", "VolumeAttachment"), ) defer span.End() arg0 = ctx - return c.inner.ApplyStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.ApplyStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1VolumeAttachments) Create(arg0 context.Context, arg1 *k8s_io_api_storage_v1.VolumeAttachment, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_storage_v1.VolumeAttachment, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1/VolumeAttachments", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1/VolumeAttachments/Create", go_opentelemetry_io_otel_attribute.String("client", "StorageV1"), go_opentelemetry_io_otel_attribute.String("resource", "VolumeAttachments"), go_opentelemetry_io_otel_attribute.String("kind", "VolumeAttachment"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1VolumeAttachments) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1/VolumeAttachments", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1/VolumeAttachments/Delete", go_opentelemetry_io_otel_attribute.String("client", "StorageV1"), go_opentelemetry_io_otel_attribute.String("resource", "VolumeAttachments"), go_opentelemetry_io_otel_attribute.String("kind", "VolumeAttachment"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedStorageV1VolumeAttachments) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1/VolumeAttachments", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1/VolumeAttachments/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "StorageV1"), go_opentelemetry_io_otel_attribute.String("resource", "VolumeAttachments"), go_opentelemetry_io_otel_attribute.String("kind", "VolumeAttachment"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedStorageV1VolumeAttachments) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_storage_v1.VolumeAttachment, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1/VolumeAttachments", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1/VolumeAttachments/Get", go_opentelemetry_io_otel_attribute.String("client", "StorageV1"), go_opentelemetry_io_otel_attribute.String("resource", "VolumeAttachments"), go_opentelemetry_io_otel_attribute.String("kind", "VolumeAttachment"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1VolumeAttachments) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_storage_v1.VolumeAttachmentList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1/VolumeAttachments", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1/VolumeAttachments/List", go_opentelemetry_io_otel_attribute.String("client", "StorageV1"), go_opentelemetry_io_otel_attribute.String("resource", "VolumeAttachments"), go_opentelemetry_io_otel_attribute.String("kind", "VolumeAttachment"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1VolumeAttachments) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_storage_v1.VolumeAttachment, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1/VolumeAttachments", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1/VolumeAttachments/Patch", go_opentelemetry_io_otel_attribute.String("client", "StorageV1"), go_opentelemetry_io_otel_attribute.String("resource", "VolumeAttachments"), go_opentelemetry_io_otel_attribute.String("kind", "VolumeAttachment"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1VolumeAttachments) Update(arg0 context.Context, arg1 *k8s_io_api_storage_v1.VolumeAttachment, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_storage_v1.VolumeAttachment, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1/VolumeAttachments", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1/VolumeAttachments/Update", go_opentelemetry_io_otel_attribute.String("client", "StorageV1"), go_opentelemetry_io_otel_attribute.String("resource", "VolumeAttachments"), go_opentelemetry_io_otel_attribute.String("kind", "VolumeAttachment"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1VolumeAttachments) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_storage_v1.VolumeAttachment, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_storage_v1.VolumeAttachment, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1/VolumeAttachments", - "UpdateStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1/VolumeAttachments/UpdateStatus", go_opentelemetry_io_otel_attribute.String("client", "StorageV1"), go_opentelemetry_io_otel_attribute.String("resource", "VolumeAttachments"), go_opentelemetry_io_otel_attribute.String("kind", "VolumeAttachment"), ) defer span.End() arg0 = ctx - return c.inner.UpdateStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.UpdateStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1VolumeAttachments) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1/VolumeAttachments", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1/VolumeAttachments/Watch", go_opentelemetry_io_otel_attribute.String("client", "StorageV1"), go_opentelemetry_io_otel_attribute.String("resource", "VolumeAttachments"), go_opentelemetry_io_otel_attribute.String("kind", "VolumeAttachment"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedStorageV1alpha1CSIStorageCapacities wrapper @@ -14958,119 +19810,164 @@ func newStorageV1alpha1CSIStorageCapacities(inner k8s_io_client_go_kubernetes_ty func (c *wrappedStorageV1alpha1CSIStorageCapacities) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_storage_v1alpha1.CSIStorageCapacityApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_storage_v1alpha1.CSIStorageCapacity, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1alpha1/CSIStorageCapacities", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1alpha1/CSIStorageCapacities/Apply", go_opentelemetry_io_otel_attribute.String("client", "StorageV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "CSIStorageCapacities"), go_opentelemetry_io_otel_attribute.String("kind", "CSIStorageCapacity"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1alpha1CSIStorageCapacities) Create(arg0 context.Context, arg1 *k8s_io_api_storage_v1alpha1.CSIStorageCapacity, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_storage_v1alpha1.CSIStorageCapacity, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1alpha1/CSIStorageCapacities", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1alpha1/CSIStorageCapacities/Create", go_opentelemetry_io_otel_attribute.String("client", "StorageV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "CSIStorageCapacities"), go_opentelemetry_io_otel_attribute.String("kind", "CSIStorageCapacity"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1alpha1CSIStorageCapacities) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1alpha1/CSIStorageCapacities", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1alpha1/CSIStorageCapacities/Delete", go_opentelemetry_io_otel_attribute.String("client", "StorageV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "CSIStorageCapacities"), go_opentelemetry_io_otel_attribute.String("kind", "CSIStorageCapacity"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedStorageV1alpha1CSIStorageCapacities) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1alpha1/CSIStorageCapacities", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1alpha1/CSIStorageCapacities/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "StorageV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "CSIStorageCapacities"), go_opentelemetry_io_otel_attribute.String("kind", "CSIStorageCapacity"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedStorageV1alpha1CSIStorageCapacities) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_storage_v1alpha1.CSIStorageCapacity, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1alpha1/CSIStorageCapacities", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1alpha1/CSIStorageCapacities/Get", go_opentelemetry_io_otel_attribute.String("client", "StorageV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "CSIStorageCapacities"), go_opentelemetry_io_otel_attribute.String("kind", "CSIStorageCapacity"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1alpha1CSIStorageCapacities) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_storage_v1alpha1.CSIStorageCapacityList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1alpha1/CSIStorageCapacities", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1alpha1/CSIStorageCapacities/List", go_opentelemetry_io_otel_attribute.String("client", "StorageV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "CSIStorageCapacities"), go_opentelemetry_io_otel_attribute.String("kind", "CSIStorageCapacity"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1alpha1CSIStorageCapacities) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_storage_v1alpha1.CSIStorageCapacity, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1alpha1/CSIStorageCapacities", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1alpha1/CSIStorageCapacities/Patch", go_opentelemetry_io_otel_attribute.String("client", "StorageV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "CSIStorageCapacities"), go_opentelemetry_io_otel_attribute.String("kind", "CSIStorageCapacity"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1alpha1CSIStorageCapacities) Update(arg0 context.Context, arg1 *k8s_io_api_storage_v1alpha1.CSIStorageCapacity, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_storage_v1alpha1.CSIStorageCapacity, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1alpha1/CSIStorageCapacities", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1alpha1/CSIStorageCapacities/Update", go_opentelemetry_io_otel_attribute.String("client", "StorageV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "CSIStorageCapacities"), go_opentelemetry_io_otel_attribute.String("kind", "CSIStorageCapacity"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1alpha1CSIStorageCapacities) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1alpha1/CSIStorageCapacities", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1alpha1/CSIStorageCapacities/Watch", go_opentelemetry_io_otel_attribute.String("client", "StorageV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "CSIStorageCapacities"), go_opentelemetry_io_otel_attribute.String("kind", "CSIStorageCapacity"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedStorageV1alpha1VolumeAttachments wrapper @@ -15084,145 +19981,200 @@ func newStorageV1alpha1VolumeAttachments(inner k8s_io_client_go_kubernetes_typed func (c *wrappedStorageV1alpha1VolumeAttachments) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_storage_v1alpha1.VolumeAttachmentApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_storage_v1alpha1.VolumeAttachment, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1alpha1/VolumeAttachments", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1alpha1/VolumeAttachments/Apply", go_opentelemetry_io_otel_attribute.String("client", "StorageV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "VolumeAttachments"), go_opentelemetry_io_otel_attribute.String("kind", "VolumeAttachment"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1alpha1VolumeAttachments) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_storage_v1alpha1.VolumeAttachmentApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_storage_v1alpha1.VolumeAttachment, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1alpha1/VolumeAttachments", - "ApplyStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1alpha1/VolumeAttachments/ApplyStatus", go_opentelemetry_io_otel_attribute.String("client", "StorageV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "VolumeAttachments"), go_opentelemetry_io_otel_attribute.String("kind", "VolumeAttachment"), ) defer span.End() arg0 = ctx - return c.inner.ApplyStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.ApplyStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1alpha1VolumeAttachments) Create(arg0 context.Context, arg1 *k8s_io_api_storage_v1alpha1.VolumeAttachment, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_storage_v1alpha1.VolumeAttachment, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1alpha1/VolumeAttachments", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1alpha1/VolumeAttachments/Create", go_opentelemetry_io_otel_attribute.String("client", "StorageV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "VolumeAttachments"), go_opentelemetry_io_otel_attribute.String("kind", "VolumeAttachment"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1alpha1VolumeAttachments) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1alpha1/VolumeAttachments", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1alpha1/VolumeAttachments/Delete", go_opentelemetry_io_otel_attribute.String("client", "StorageV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "VolumeAttachments"), go_opentelemetry_io_otel_attribute.String("kind", "VolumeAttachment"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedStorageV1alpha1VolumeAttachments) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1alpha1/VolumeAttachments", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1alpha1/VolumeAttachments/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "StorageV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "VolumeAttachments"), go_opentelemetry_io_otel_attribute.String("kind", "VolumeAttachment"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedStorageV1alpha1VolumeAttachments) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_storage_v1alpha1.VolumeAttachment, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1alpha1/VolumeAttachments", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1alpha1/VolumeAttachments/Get", go_opentelemetry_io_otel_attribute.String("client", "StorageV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "VolumeAttachments"), go_opentelemetry_io_otel_attribute.String("kind", "VolumeAttachment"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1alpha1VolumeAttachments) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_storage_v1alpha1.VolumeAttachmentList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1alpha1/VolumeAttachments", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1alpha1/VolumeAttachments/List", go_opentelemetry_io_otel_attribute.String("client", "StorageV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "VolumeAttachments"), go_opentelemetry_io_otel_attribute.String("kind", "VolumeAttachment"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1alpha1VolumeAttachments) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_storage_v1alpha1.VolumeAttachment, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1alpha1/VolumeAttachments", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1alpha1/VolumeAttachments/Patch", go_opentelemetry_io_otel_attribute.String("client", "StorageV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "VolumeAttachments"), go_opentelemetry_io_otel_attribute.String("kind", "VolumeAttachment"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1alpha1VolumeAttachments) Update(arg0 context.Context, arg1 *k8s_io_api_storage_v1alpha1.VolumeAttachment, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_storage_v1alpha1.VolumeAttachment, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1alpha1/VolumeAttachments", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1alpha1/VolumeAttachments/Update", go_opentelemetry_io_otel_attribute.String("client", "StorageV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "VolumeAttachments"), go_opentelemetry_io_otel_attribute.String("kind", "VolumeAttachment"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1alpha1VolumeAttachments) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_storage_v1alpha1.VolumeAttachment, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_storage_v1alpha1.VolumeAttachment, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1alpha1/VolumeAttachments", - "UpdateStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1alpha1/VolumeAttachments/UpdateStatus", go_opentelemetry_io_otel_attribute.String("client", "StorageV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "VolumeAttachments"), go_opentelemetry_io_otel_attribute.String("kind", "VolumeAttachment"), ) defer span.End() arg0 = ctx - return c.inner.UpdateStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.UpdateStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1alpha1VolumeAttachments) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1alpha1/VolumeAttachments", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1alpha1/VolumeAttachments/Watch", go_opentelemetry_io_otel_attribute.String("client", "StorageV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "VolumeAttachments"), go_opentelemetry_io_otel_attribute.String("kind", "VolumeAttachment"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedStorageV1beta1CSIDrivers wrapper @@ -15236,119 +20188,164 @@ func newStorageV1beta1CSIDrivers(inner k8s_io_client_go_kubernetes_typed_storage func (c *wrappedStorageV1beta1CSIDrivers) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_storage_v1beta1.CSIDriverApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_storage_v1beta1.CSIDriver, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1beta1/CSIDrivers", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1beta1/CSIDrivers/Apply", go_opentelemetry_io_otel_attribute.String("client", "StorageV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "CSIDrivers"), go_opentelemetry_io_otel_attribute.String("kind", "CSIDriver"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1beta1CSIDrivers) Create(arg0 context.Context, arg1 *k8s_io_api_storage_v1beta1.CSIDriver, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_storage_v1beta1.CSIDriver, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1beta1/CSIDrivers", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1beta1/CSIDrivers/Create", go_opentelemetry_io_otel_attribute.String("client", "StorageV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "CSIDrivers"), go_opentelemetry_io_otel_attribute.String("kind", "CSIDriver"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1beta1CSIDrivers) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1beta1/CSIDrivers", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1beta1/CSIDrivers/Delete", go_opentelemetry_io_otel_attribute.String("client", "StorageV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "CSIDrivers"), go_opentelemetry_io_otel_attribute.String("kind", "CSIDriver"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedStorageV1beta1CSIDrivers) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1beta1/CSIDrivers", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1beta1/CSIDrivers/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "StorageV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "CSIDrivers"), go_opentelemetry_io_otel_attribute.String("kind", "CSIDriver"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedStorageV1beta1CSIDrivers) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_storage_v1beta1.CSIDriver, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1beta1/CSIDrivers", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1beta1/CSIDrivers/Get", go_opentelemetry_io_otel_attribute.String("client", "StorageV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "CSIDrivers"), go_opentelemetry_io_otel_attribute.String("kind", "CSIDriver"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1beta1CSIDrivers) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_storage_v1beta1.CSIDriverList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1beta1/CSIDrivers", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1beta1/CSIDrivers/List", go_opentelemetry_io_otel_attribute.String("client", "StorageV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "CSIDrivers"), go_opentelemetry_io_otel_attribute.String("kind", "CSIDriver"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1beta1CSIDrivers) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_storage_v1beta1.CSIDriver, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1beta1/CSIDrivers", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1beta1/CSIDrivers/Patch", go_opentelemetry_io_otel_attribute.String("client", "StorageV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "CSIDrivers"), go_opentelemetry_io_otel_attribute.String("kind", "CSIDriver"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1beta1CSIDrivers) Update(arg0 context.Context, arg1 *k8s_io_api_storage_v1beta1.CSIDriver, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_storage_v1beta1.CSIDriver, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1beta1/CSIDrivers", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1beta1/CSIDrivers/Update", go_opentelemetry_io_otel_attribute.String("client", "StorageV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "CSIDrivers"), go_opentelemetry_io_otel_attribute.String("kind", "CSIDriver"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1beta1CSIDrivers) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1beta1/CSIDrivers", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1beta1/CSIDrivers/Watch", go_opentelemetry_io_otel_attribute.String("client", "StorageV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "CSIDrivers"), go_opentelemetry_io_otel_attribute.String("kind", "CSIDriver"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedStorageV1beta1CSINodes wrapper @@ -15362,119 +20359,164 @@ func newStorageV1beta1CSINodes(inner k8s_io_client_go_kubernetes_typed_storage_v func (c *wrappedStorageV1beta1CSINodes) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_storage_v1beta1.CSINodeApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_storage_v1beta1.CSINode, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1beta1/CSINodes", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1beta1/CSINodes/Apply", go_opentelemetry_io_otel_attribute.String("client", "StorageV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "CSINodes"), go_opentelemetry_io_otel_attribute.String("kind", "CSINode"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1beta1CSINodes) Create(arg0 context.Context, arg1 *k8s_io_api_storage_v1beta1.CSINode, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_storage_v1beta1.CSINode, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1beta1/CSINodes", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1beta1/CSINodes/Create", go_opentelemetry_io_otel_attribute.String("client", "StorageV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "CSINodes"), go_opentelemetry_io_otel_attribute.String("kind", "CSINode"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1beta1CSINodes) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1beta1/CSINodes", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1beta1/CSINodes/Delete", go_opentelemetry_io_otel_attribute.String("client", "StorageV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "CSINodes"), go_opentelemetry_io_otel_attribute.String("kind", "CSINode"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedStorageV1beta1CSINodes) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1beta1/CSINodes", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1beta1/CSINodes/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "StorageV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "CSINodes"), go_opentelemetry_io_otel_attribute.String("kind", "CSINode"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedStorageV1beta1CSINodes) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_storage_v1beta1.CSINode, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1beta1/CSINodes", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1beta1/CSINodes/Get", go_opentelemetry_io_otel_attribute.String("client", "StorageV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "CSINodes"), go_opentelemetry_io_otel_attribute.String("kind", "CSINode"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1beta1CSINodes) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_storage_v1beta1.CSINodeList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1beta1/CSINodes", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1beta1/CSINodes/List", go_opentelemetry_io_otel_attribute.String("client", "StorageV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "CSINodes"), go_opentelemetry_io_otel_attribute.String("kind", "CSINode"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1beta1CSINodes) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_storage_v1beta1.CSINode, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1beta1/CSINodes", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1beta1/CSINodes/Patch", go_opentelemetry_io_otel_attribute.String("client", "StorageV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "CSINodes"), go_opentelemetry_io_otel_attribute.String("kind", "CSINode"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1beta1CSINodes) Update(arg0 context.Context, arg1 *k8s_io_api_storage_v1beta1.CSINode, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_storage_v1beta1.CSINode, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1beta1/CSINodes", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1beta1/CSINodes/Update", go_opentelemetry_io_otel_attribute.String("client", "StorageV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "CSINodes"), go_opentelemetry_io_otel_attribute.String("kind", "CSINode"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1beta1CSINodes) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1beta1/CSINodes", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1beta1/CSINodes/Watch", go_opentelemetry_io_otel_attribute.String("client", "StorageV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "CSINodes"), go_opentelemetry_io_otel_attribute.String("kind", "CSINode"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedStorageV1beta1CSIStorageCapacities wrapper @@ -15488,119 +20530,164 @@ func newStorageV1beta1CSIStorageCapacities(inner k8s_io_client_go_kubernetes_typ func (c *wrappedStorageV1beta1CSIStorageCapacities) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_storage_v1beta1.CSIStorageCapacityApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_storage_v1beta1.CSIStorageCapacity, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1beta1/CSIStorageCapacities", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1beta1/CSIStorageCapacities/Apply", go_opentelemetry_io_otel_attribute.String("client", "StorageV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "CSIStorageCapacities"), go_opentelemetry_io_otel_attribute.String("kind", "CSIStorageCapacity"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1beta1CSIStorageCapacities) Create(arg0 context.Context, arg1 *k8s_io_api_storage_v1beta1.CSIStorageCapacity, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_storage_v1beta1.CSIStorageCapacity, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1beta1/CSIStorageCapacities", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1beta1/CSIStorageCapacities/Create", go_opentelemetry_io_otel_attribute.String("client", "StorageV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "CSIStorageCapacities"), go_opentelemetry_io_otel_attribute.String("kind", "CSIStorageCapacity"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1beta1CSIStorageCapacities) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1beta1/CSIStorageCapacities", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1beta1/CSIStorageCapacities/Delete", go_opentelemetry_io_otel_attribute.String("client", "StorageV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "CSIStorageCapacities"), go_opentelemetry_io_otel_attribute.String("kind", "CSIStorageCapacity"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedStorageV1beta1CSIStorageCapacities) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1beta1/CSIStorageCapacities", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1beta1/CSIStorageCapacities/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "StorageV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "CSIStorageCapacities"), go_opentelemetry_io_otel_attribute.String("kind", "CSIStorageCapacity"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedStorageV1beta1CSIStorageCapacities) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_storage_v1beta1.CSIStorageCapacity, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1beta1/CSIStorageCapacities", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1beta1/CSIStorageCapacities/Get", go_opentelemetry_io_otel_attribute.String("client", "StorageV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "CSIStorageCapacities"), go_opentelemetry_io_otel_attribute.String("kind", "CSIStorageCapacity"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1beta1CSIStorageCapacities) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_storage_v1beta1.CSIStorageCapacityList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1beta1/CSIStorageCapacities", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1beta1/CSIStorageCapacities/List", go_opentelemetry_io_otel_attribute.String("client", "StorageV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "CSIStorageCapacities"), go_opentelemetry_io_otel_attribute.String("kind", "CSIStorageCapacity"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1beta1CSIStorageCapacities) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_storage_v1beta1.CSIStorageCapacity, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1beta1/CSIStorageCapacities", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1beta1/CSIStorageCapacities/Patch", go_opentelemetry_io_otel_attribute.String("client", "StorageV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "CSIStorageCapacities"), go_opentelemetry_io_otel_attribute.String("kind", "CSIStorageCapacity"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1beta1CSIStorageCapacities) Update(arg0 context.Context, arg1 *k8s_io_api_storage_v1beta1.CSIStorageCapacity, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_storage_v1beta1.CSIStorageCapacity, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1beta1/CSIStorageCapacities", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1beta1/CSIStorageCapacities/Update", go_opentelemetry_io_otel_attribute.String("client", "StorageV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "CSIStorageCapacities"), go_opentelemetry_io_otel_attribute.String("kind", "CSIStorageCapacity"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1beta1CSIStorageCapacities) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1beta1/CSIStorageCapacities", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1beta1/CSIStorageCapacities/Watch", go_opentelemetry_io_otel_attribute.String("client", "StorageV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "CSIStorageCapacities"), go_opentelemetry_io_otel_attribute.String("kind", "CSIStorageCapacity"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedStorageV1beta1StorageClasses wrapper @@ -15614,119 +20701,164 @@ func newStorageV1beta1StorageClasses(inner k8s_io_client_go_kubernetes_typed_sto func (c *wrappedStorageV1beta1StorageClasses) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_storage_v1beta1.StorageClassApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_storage_v1beta1.StorageClass, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1beta1/StorageClasses", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1beta1/StorageClasses/Apply", go_opentelemetry_io_otel_attribute.String("client", "StorageV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "StorageClasses"), go_opentelemetry_io_otel_attribute.String("kind", "StorageClass"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1beta1StorageClasses) Create(arg0 context.Context, arg1 *k8s_io_api_storage_v1beta1.StorageClass, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_storage_v1beta1.StorageClass, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1beta1/StorageClasses", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1beta1/StorageClasses/Create", go_opentelemetry_io_otel_attribute.String("client", "StorageV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "StorageClasses"), go_opentelemetry_io_otel_attribute.String("kind", "StorageClass"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1beta1StorageClasses) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1beta1/StorageClasses", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1beta1/StorageClasses/Delete", go_opentelemetry_io_otel_attribute.String("client", "StorageV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "StorageClasses"), go_opentelemetry_io_otel_attribute.String("kind", "StorageClass"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedStorageV1beta1StorageClasses) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1beta1/StorageClasses", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1beta1/StorageClasses/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "StorageV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "StorageClasses"), go_opentelemetry_io_otel_attribute.String("kind", "StorageClass"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedStorageV1beta1StorageClasses) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_storage_v1beta1.StorageClass, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1beta1/StorageClasses", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1beta1/StorageClasses/Get", go_opentelemetry_io_otel_attribute.String("client", "StorageV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "StorageClasses"), go_opentelemetry_io_otel_attribute.String("kind", "StorageClass"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1beta1StorageClasses) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_storage_v1beta1.StorageClassList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1beta1/StorageClasses", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1beta1/StorageClasses/List", go_opentelemetry_io_otel_attribute.String("client", "StorageV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "StorageClasses"), go_opentelemetry_io_otel_attribute.String("kind", "StorageClass"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1beta1StorageClasses) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_storage_v1beta1.StorageClass, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1beta1/StorageClasses", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1beta1/StorageClasses/Patch", go_opentelemetry_io_otel_attribute.String("client", "StorageV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "StorageClasses"), go_opentelemetry_io_otel_attribute.String("kind", "StorageClass"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1beta1StorageClasses) Update(arg0 context.Context, arg1 *k8s_io_api_storage_v1beta1.StorageClass, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_storage_v1beta1.StorageClass, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1beta1/StorageClasses", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1beta1/StorageClasses/Update", go_opentelemetry_io_otel_attribute.String("client", "StorageV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "StorageClasses"), go_opentelemetry_io_otel_attribute.String("kind", "StorageClass"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1beta1StorageClasses) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1beta1/StorageClasses", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1beta1/StorageClasses/Watch", go_opentelemetry_io_otel_attribute.String("client", "StorageV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "StorageClasses"), go_opentelemetry_io_otel_attribute.String("kind", "StorageClass"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedStorageV1beta1VolumeAttachments wrapper @@ -15740,143 +20872,198 @@ func newStorageV1beta1VolumeAttachments(inner k8s_io_client_go_kubernetes_typed_ func (c *wrappedStorageV1beta1VolumeAttachments) Apply(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_storage_v1beta1.VolumeAttachmentApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_storage_v1beta1.VolumeAttachment, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1beta1/VolumeAttachments", - "Apply", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1beta1/VolumeAttachments/Apply", go_opentelemetry_io_otel_attribute.String("client", "StorageV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "VolumeAttachments"), go_opentelemetry_io_otel_attribute.String("kind", "VolumeAttachment"), ) defer span.End() arg0 = ctx - return c.inner.Apply(arg0, arg1, arg2) + ret0, ret1 := c.inner.Apply(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1beta1VolumeAttachments) ApplyStatus(arg0 context.Context, arg1 *k8s_io_client_go_applyconfigurations_storage_v1beta1.VolumeAttachmentApplyConfiguration, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ApplyOptions) (*k8s_io_api_storage_v1beta1.VolumeAttachment, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1beta1/VolumeAttachments", - "ApplyStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1beta1/VolumeAttachments/ApplyStatus", go_opentelemetry_io_otel_attribute.String("client", "StorageV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "VolumeAttachments"), go_opentelemetry_io_otel_attribute.String("kind", "VolumeAttachment"), ) defer span.End() arg0 = ctx - return c.inner.ApplyStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.ApplyStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1beta1VolumeAttachments) Create(arg0 context.Context, arg1 *k8s_io_api_storage_v1beta1.VolumeAttachment, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*k8s_io_api_storage_v1beta1.VolumeAttachment, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1beta1/VolumeAttachments", - "Create", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1beta1/VolumeAttachments/Create", go_opentelemetry_io_otel_attribute.String("client", "StorageV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "VolumeAttachments"), go_opentelemetry_io_otel_attribute.String("kind", "VolumeAttachment"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1beta1VolumeAttachments) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1beta1/VolumeAttachments", - "Delete", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1beta1/VolumeAttachments/Delete", go_opentelemetry_io_otel_attribute.String("client", "StorageV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "VolumeAttachments"), go_opentelemetry_io_otel_attribute.String("kind", "VolumeAttachment"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedStorageV1beta1VolumeAttachments) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1beta1/VolumeAttachments", - "DeleteCollection", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1beta1/VolumeAttachments/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "StorageV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "VolumeAttachments"), go_opentelemetry_io_otel_attribute.String("kind", "VolumeAttachment"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedStorageV1beta1VolumeAttachments) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*k8s_io_api_storage_v1beta1.VolumeAttachment, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1beta1/VolumeAttachments", - "Get", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1beta1/VolumeAttachments/Get", go_opentelemetry_io_otel_attribute.String("client", "StorageV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "VolumeAttachments"), go_opentelemetry_io_otel_attribute.String("kind", "VolumeAttachment"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1beta1VolumeAttachments) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*k8s_io_api_storage_v1beta1.VolumeAttachmentList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1beta1/VolumeAttachments", - "List", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1beta1/VolumeAttachments/List", go_opentelemetry_io_otel_attribute.String("client", "StorageV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "VolumeAttachments"), go_opentelemetry_io_otel_attribute.String("kind", "VolumeAttachment"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1beta1VolumeAttachments) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*k8s_io_api_storage_v1beta1.VolumeAttachment, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1beta1/VolumeAttachments", - "Patch", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1beta1/VolumeAttachments/Patch", go_opentelemetry_io_otel_attribute.String("client", "StorageV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "VolumeAttachments"), go_opentelemetry_io_otel_attribute.String("kind", "VolumeAttachment"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1beta1VolumeAttachments) Update(arg0 context.Context, arg1 *k8s_io_api_storage_v1beta1.VolumeAttachment, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_storage_v1beta1.VolumeAttachment, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1beta1/VolumeAttachments", - "Update", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1beta1/VolumeAttachments/Update", go_opentelemetry_io_otel_attribute.String("client", "StorageV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "VolumeAttachments"), go_opentelemetry_io_otel_attribute.String("kind", "VolumeAttachment"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1beta1VolumeAttachments) UpdateStatus(arg0 context.Context, arg1 *k8s_io_api_storage_v1beta1.VolumeAttachment, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*k8s_io_api_storage_v1beta1.VolumeAttachment, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1beta1/VolumeAttachments", - "UpdateStatus", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1beta1/VolumeAttachments/UpdateStatus", go_opentelemetry_io_otel_attribute.String("client", "StorageV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "VolumeAttachments"), go_opentelemetry_io_otel_attribute.String("kind", "VolumeAttachment"), ) defer span.End() arg0 = ctx - return c.inner.UpdateStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.UpdateStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedStorageV1beta1VolumeAttachments) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "StorageV1beta1/VolumeAttachments", - "Watch", + "pkg/clients/wrappers/traces/kube", + "KUBE StorageV1beta1/VolumeAttachments/Watch", go_opentelemetry_io_otel_attribute.String("client", "StorageV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "VolumeAttachments"), go_opentelemetry_io_otel_attribute.String("kind", "VolumeAttachment"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } diff --git a/pkg/clients/wrappers/traces/kyverno/clientset.generated.go b/pkg/clients/wrappers/traces/kyverno/clientset.generated.go index a3d36a76b0..d700333877 100644 --- a/pkg/clients/wrappers/traces/kyverno/clientset.generated.go +++ b/pkg/clients/wrappers/traces/kyverno/clientset.generated.go @@ -16,6 +16,7 @@ import ( github_com_kyverno_kyverno_pkg_client_clientset_versioned_typed_policyreport_v1alpha2 "github.com/kyverno/kyverno/pkg/client/clientset/versioned/typed/policyreport/v1alpha2" github_com_kyverno_kyverno_pkg_tracing "github.com/kyverno/kyverno/pkg/tracing" go_opentelemetry_io_otel_attribute "go.opentelemetry.io/otel/attribute" + go_opentelemetry_io_otel_codes "go.opentelemetry.io/otel/codes" k8s_io_apimachinery_pkg_apis_meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1" k8s_io_apimachinery_pkg_types "k8s.io/apimachinery/pkg/types" k8s_io_apimachinery_pkg_watch "k8s.io/apimachinery/pkg/watch" @@ -191,119 +192,164 @@ func newKyvernoV1ClusterPolicies(inner github_com_kyverno_kyverno_pkg_client_cli func (c *wrappedKyvernoV1ClusterPolicies) Create(arg0 context.Context, arg1 *github_com_kyverno_kyverno_api_kyverno_v1.ClusterPolicy, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*github_com_kyverno_kyverno_api_kyverno_v1.ClusterPolicy, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1/ClusterPolicies", - "Create", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1/ClusterPolicies/Create", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterPolicy"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedKyvernoV1ClusterPolicies) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1/ClusterPolicies", - "Delete", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1/ClusterPolicies/Delete", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterPolicy"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedKyvernoV1ClusterPolicies) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1/ClusterPolicies", - "DeleteCollection", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1/ClusterPolicies/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterPolicy"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedKyvernoV1ClusterPolicies) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*github_com_kyverno_kyverno_api_kyverno_v1.ClusterPolicy, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1/ClusterPolicies", - "Get", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1/ClusterPolicies/Get", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterPolicy"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedKyvernoV1ClusterPolicies) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*github_com_kyverno_kyverno_api_kyverno_v1.ClusterPolicyList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1/ClusterPolicies", - "List", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1/ClusterPolicies/List", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterPolicy"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedKyvernoV1ClusterPolicies) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*github_com_kyverno_kyverno_api_kyverno_v1.ClusterPolicy, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1/ClusterPolicies", - "Patch", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1/ClusterPolicies/Patch", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterPolicy"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedKyvernoV1ClusterPolicies) Update(arg0 context.Context, arg1 *github_com_kyverno_kyverno_api_kyverno_v1.ClusterPolicy, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*github_com_kyverno_kyverno_api_kyverno_v1.ClusterPolicy, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1/ClusterPolicies", - "Update", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1/ClusterPolicies/Update", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterPolicy"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedKyvernoV1ClusterPolicies) UpdateStatus(arg0 context.Context, arg1 *github_com_kyverno_kyverno_api_kyverno_v1.ClusterPolicy, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*github_com_kyverno_kyverno_api_kyverno_v1.ClusterPolicy, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1/ClusterPolicies", - "UpdateStatus", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1/ClusterPolicies/UpdateStatus", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterPolicy"), ) defer span.End() arg0 = ctx - return c.inner.UpdateStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.UpdateStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedKyvernoV1ClusterPolicies) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1/ClusterPolicies", - "Watch", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1/ClusterPolicies/Watch", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterPolicy"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedKyvernoV1GenerateRequests wrapper @@ -317,119 +363,164 @@ func newKyvernoV1GenerateRequests(inner github_com_kyverno_kyverno_pkg_client_cl func (c *wrappedKyvernoV1GenerateRequests) Create(arg0 context.Context, arg1 *github_com_kyverno_kyverno_api_kyverno_v1.GenerateRequest, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*github_com_kyverno_kyverno_api_kyverno_v1.GenerateRequest, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1/GenerateRequests", - "Create", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1/GenerateRequests/Create", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1"), go_opentelemetry_io_otel_attribute.String("resource", "GenerateRequests"), go_opentelemetry_io_otel_attribute.String("kind", "GenerateRequest"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedKyvernoV1GenerateRequests) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1/GenerateRequests", - "Delete", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1/GenerateRequests/Delete", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1"), go_opentelemetry_io_otel_attribute.String("resource", "GenerateRequests"), go_opentelemetry_io_otel_attribute.String("kind", "GenerateRequest"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedKyvernoV1GenerateRequests) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1/GenerateRequests", - "DeleteCollection", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1/GenerateRequests/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1"), go_opentelemetry_io_otel_attribute.String("resource", "GenerateRequests"), go_opentelemetry_io_otel_attribute.String("kind", "GenerateRequest"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedKyvernoV1GenerateRequests) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*github_com_kyverno_kyverno_api_kyverno_v1.GenerateRequest, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1/GenerateRequests", - "Get", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1/GenerateRequests/Get", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1"), go_opentelemetry_io_otel_attribute.String("resource", "GenerateRequests"), go_opentelemetry_io_otel_attribute.String("kind", "GenerateRequest"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedKyvernoV1GenerateRequests) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*github_com_kyverno_kyverno_api_kyverno_v1.GenerateRequestList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1/GenerateRequests", - "List", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1/GenerateRequests/List", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1"), go_opentelemetry_io_otel_attribute.String("resource", "GenerateRequests"), go_opentelemetry_io_otel_attribute.String("kind", "GenerateRequest"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedKyvernoV1GenerateRequests) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*github_com_kyverno_kyverno_api_kyverno_v1.GenerateRequest, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1/GenerateRequests", - "Patch", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1/GenerateRequests/Patch", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1"), go_opentelemetry_io_otel_attribute.String("resource", "GenerateRequests"), go_opentelemetry_io_otel_attribute.String("kind", "GenerateRequest"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedKyvernoV1GenerateRequests) Update(arg0 context.Context, arg1 *github_com_kyverno_kyverno_api_kyverno_v1.GenerateRequest, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*github_com_kyverno_kyverno_api_kyverno_v1.GenerateRequest, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1/GenerateRequests", - "Update", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1/GenerateRequests/Update", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1"), go_opentelemetry_io_otel_attribute.String("resource", "GenerateRequests"), go_opentelemetry_io_otel_attribute.String("kind", "GenerateRequest"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedKyvernoV1GenerateRequests) UpdateStatus(arg0 context.Context, arg1 *github_com_kyverno_kyverno_api_kyverno_v1.GenerateRequest, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*github_com_kyverno_kyverno_api_kyverno_v1.GenerateRequest, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1/GenerateRequests", - "UpdateStatus", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1/GenerateRequests/UpdateStatus", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1"), go_opentelemetry_io_otel_attribute.String("resource", "GenerateRequests"), go_opentelemetry_io_otel_attribute.String("kind", "GenerateRequest"), ) defer span.End() arg0 = ctx - return c.inner.UpdateStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.UpdateStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedKyvernoV1GenerateRequests) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1/GenerateRequests", - "Watch", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1/GenerateRequests/Watch", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1"), go_opentelemetry_io_otel_attribute.String("resource", "GenerateRequests"), go_opentelemetry_io_otel_attribute.String("kind", "GenerateRequest"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedKyvernoV1Policies wrapper @@ -443,119 +534,164 @@ func newKyvernoV1Policies(inner github_com_kyverno_kyverno_pkg_client_clientset_ func (c *wrappedKyvernoV1Policies) Create(arg0 context.Context, arg1 *github_com_kyverno_kyverno_api_kyverno_v1.Policy, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*github_com_kyverno_kyverno_api_kyverno_v1.Policy, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1/Policies", - "Create", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1/Policies/Create", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1"), go_opentelemetry_io_otel_attribute.String("resource", "Policies"), go_opentelemetry_io_otel_attribute.String("kind", "Policy"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedKyvernoV1Policies) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1/Policies", - "Delete", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1/Policies/Delete", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1"), go_opentelemetry_io_otel_attribute.String("resource", "Policies"), go_opentelemetry_io_otel_attribute.String("kind", "Policy"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedKyvernoV1Policies) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1/Policies", - "DeleteCollection", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1/Policies/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1"), go_opentelemetry_io_otel_attribute.String("resource", "Policies"), go_opentelemetry_io_otel_attribute.String("kind", "Policy"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedKyvernoV1Policies) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*github_com_kyverno_kyverno_api_kyverno_v1.Policy, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1/Policies", - "Get", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1/Policies/Get", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1"), go_opentelemetry_io_otel_attribute.String("resource", "Policies"), go_opentelemetry_io_otel_attribute.String("kind", "Policy"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedKyvernoV1Policies) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*github_com_kyverno_kyverno_api_kyverno_v1.PolicyList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1/Policies", - "List", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1/Policies/List", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1"), go_opentelemetry_io_otel_attribute.String("resource", "Policies"), go_opentelemetry_io_otel_attribute.String("kind", "Policy"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedKyvernoV1Policies) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*github_com_kyverno_kyverno_api_kyverno_v1.Policy, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1/Policies", - "Patch", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1/Policies/Patch", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1"), go_opentelemetry_io_otel_attribute.String("resource", "Policies"), go_opentelemetry_io_otel_attribute.String("kind", "Policy"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedKyvernoV1Policies) Update(arg0 context.Context, arg1 *github_com_kyverno_kyverno_api_kyverno_v1.Policy, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*github_com_kyverno_kyverno_api_kyverno_v1.Policy, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1/Policies", - "Update", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1/Policies/Update", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1"), go_opentelemetry_io_otel_attribute.String("resource", "Policies"), go_opentelemetry_io_otel_attribute.String("kind", "Policy"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedKyvernoV1Policies) UpdateStatus(arg0 context.Context, arg1 *github_com_kyverno_kyverno_api_kyverno_v1.Policy, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*github_com_kyverno_kyverno_api_kyverno_v1.Policy, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1/Policies", - "UpdateStatus", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1/Policies/UpdateStatus", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1"), go_opentelemetry_io_otel_attribute.String("resource", "Policies"), go_opentelemetry_io_otel_attribute.String("kind", "Policy"), ) defer span.End() arg0 = ctx - return c.inner.UpdateStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.UpdateStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedKyvernoV1Policies) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1/Policies", - "Watch", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1/Policies/Watch", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1"), go_opentelemetry_io_otel_attribute.String("resource", "Policies"), go_opentelemetry_io_otel_attribute.String("kind", "Policy"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedKyvernoV1alpha1CleanupPolicies wrapper @@ -569,119 +705,164 @@ func newKyvernoV1alpha1CleanupPolicies(inner github_com_kyverno_kyverno_pkg_clie func (c *wrappedKyvernoV1alpha1CleanupPolicies) Create(arg0 context.Context, arg1 *github_com_kyverno_kyverno_api_kyverno_v1alpha1.CleanupPolicy, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*github_com_kyverno_kyverno_api_kyverno_v1alpha1.CleanupPolicy, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1alpha1/CleanupPolicies", - "Create", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1alpha1/CleanupPolicies/Create", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "CleanupPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "CleanupPolicy"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedKyvernoV1alpha1CleanupPolicies) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1alpha1/CleanupPolicies", - "Delete", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1alpha1/CleanupPolicies/Delete", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "CleanupPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "CleanupPolicy"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedKyvernoV1alpha1CleanupPolicies) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1alpha1/CleanupPolicies", - "DeleteCollection", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1alpha1/CleanupPolicies/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "CleanupPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "CleanupPolicy"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedKyvernoV1alpha1CleanupPolicies) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*github_com_kyverno_kyverno_api_kyverno_v1alpha1.CleanupPolicy, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1alpha1/CleanupPolicies", - "Get", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1alpha1/CleanupPolicies/Get", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "CleanupPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "CleanupPolicy"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedKyvernoV1alpha1CleanupPolicies) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*github_com_kyverno_kyverno_api_kyverno_v1alpha1.CleanupPolicyList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1alpha1/CleanupPolicies", - "List", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1alpha1/CleanupPolicies/List", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "CleanupPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "CleanupPolicy"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedKyvernoV1alpha1CleanupPolicies) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*github_com_kyverno_kyverno_api_kyverno_v1alpha1.CleanupPolicy, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1alpha1/CleanupPolicies", - "Patch", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1alpha1/CleanupPolicies/Patch", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "CleanupPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "CleanupPolicy"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedKyvernoV1alpha1CleanupPolicies) Update(arg0 context.Context, arg1 *github_com_kyverno_kyverno_api_kyverno_v1alpha1.CleanupPolicy, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*github_com_kyverno_kyverno_api_kyverno_v1alpha1.CleanupPolicy, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1alpha1/CleanupPolicies", - "Update", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1alpha1/CleanupPolicies/Update", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "CleanupPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "CleanupPolicy"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedKyvernoV1alpha1CleanupPolicies) UpdateStatus(arg0 context.Context, arg1 *github_com_kyverno_kyverno_api_kyverno_v1alpha1.CleanupPolicy, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*github_com_kyverno_kyverno_api_kyverno_v1alpha1.CleanupPolicy, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1alpha1/CleanupPolicies", - "UpdateStatus", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1alpha1/CleanupPolicies/UpdateStatus", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "CleanupPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "CleanupPolicy"), ) defer span.End() arg0 = ctx - return c.inner.UpdateStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.UpdateStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedKyvernoV1alpha1CleanupPolicies) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1alpha1/CleanupPolicies", - "Watch", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1alpha1/CleanupPolicies/Watch", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "CleanupPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "CleanupPolicy"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedKyvernoV1alpha1ClusterCleanupPolicies wrapper @@ -695,119 +876,164 @@ func newKyvernoV1alpha1ClusterCleanupPolicies(inner github_com_kyverno_kyverno_p func (c *wrappedKyvernoV1alpha1ClusterCleanupPolicies) Create(arg0 context.Context, arg1 *github_com_kyverno_kyverno_api_kyverno_v1alpha1.ClusterCleanupPolicy, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*github_com_kyverno_kyverno_api_kyverno_v1alpha1.ClusterCleanupPolicy, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1alpha1/ClusterCleanupPolicies", - "Create", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1alpha1/ClusterCleanupPolicies/Create", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterCleanupPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterCleanupPolicy"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedKyvernoV1alpha1ClusterCleanupPolicies) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1alpha1/ClusterCleanupPolicies", - "Delete", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1alpha1/ClusterCleanupPolicies/Delete", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterCleanupPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterCleanupPolicy"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedKyvernoV1alpha1ClusterCleanupPolicies) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1alpha1/ClusterCleanupPolicies", - "DeleteCollection", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1alpha1/ClusterCleanupPolicies/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterCleanupPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterCleanupPolicy"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedKyvernoV1alpha1ClusterCleanupPolicies) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*github_com_kyverno_kyverno_api_kyverno_v1alpha1.ClusterCleanupPolicy, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1alpha1/ClusterCleanupPolicies", - "Get", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1alpha1/ClusterCleanupPolicies/Get", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterCleanupPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterCleanupPolicy"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedKyvernoV1alpha1ClusterCleanupPolicies) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*github_com_kyverno_kyverno_api_kyverno_v1alpha1.ClusterCleanupPolicyList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1alpha1/ClusterCleanupPolicies", - "List", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1alpha1/ClusterCleanupPolicies/List", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterCleanupPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterCleanupPolicy"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedKyvernoV1alpha1ClusterCleanupPolicies) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*github_com_kyverno_kyverno_api_kyverno_v1alpha1.ClusterCleanupPolicy, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1alpha1/ClusterCleanupPolicies", - "Patch", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1alpha1/ClusterCleanupPolicies/Patch", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterCleanupPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterCleanupPolicy"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedKyvernoV1alpha1ClusterCleanupPolicies) Update(arg0 context.Context, arg1 *github_com_kyverno_kyverno_api_kyverno_v1alpha1.ClusterCleanupPolicy, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*github_com_kyverno_kyverno_api_kyverno_v1alpha1.ClusterCleanupPolicy, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1alpha1/ClusterCleanupPolicies", - "Update", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1alpha1/ClusterCleanupPolicies/Update", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterCleanupPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterCleanupPolicy"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedKyvernoV1alpha1ClusterCleanupPolicies) UpdateStatus(arg0 context.Context, arg1 *github_com_kyverno_kyverno_api_kyverno_v1alpha1.ClusterCleanupPolicy, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*github_com_kyverno_kyverno_api_kyverno_v1alpha1.ClusterCleanupPolicy, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1alpha1/ClusterCleanupPolicies", - "UpdateStatus", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1alpha1/ClusterCleanupPolicies/UpdateStatus", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterCleanupPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterCleanupPolicy"), ) defer span.End() arg0 = ctx - return c.inner.UpdateStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.UpdateStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedKyvernoV1alpha1ClusterCleanupPolicies) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1alpha1/ClusterCleanupPolicies", - "Watch", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1alpha1/ClusterCleanupPolicies/Watch", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1alpha1"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterCleanupPolicies"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterCleanupPolicy"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedKyvernoV1alpha2AdmissionReports wrapper @@ -821,106 +1047,146 @@ func newKyvernoV1alpha2AdmissionReports(inner github_com_kyverno_kyverno_pkg_cli func (c *wrappedKyvernoV1alpha2AdmissionReports) Create(arg0 context.Context, arg1 *github_com_kyverno_kyverno_api_kyverno_v1alpha2.AdmissionReport, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*github_com_kyverno_kyverno_api_kyverno_v1alpha2.AdmissionReport, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1alpha2/AdmissionReports", - "Create", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1alpha2/AdmissionReports/Create", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1alpha2"), go_opentelemetry_io_otel_attribute.String("resource", "AdmissionReports"), go_opentelemetry_io_otel_attribute.String("kind", "AdmissionReport"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedKyvernoV1alpha2AdmissionReports) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1alpha2/AdmissionReports", - "Delete", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1alpha2/AdmissionReports/Delete", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1alpha2"), go_opentelemetry_io_otel_attribute.String("resource", "AdmissionReports"), go_opentelemetry_io_otel_attribute.String("kind", "AdmissionReport"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedKyvernoV1alpha2AdmissionReports) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1alpha2/AdmissionReports", - "DeleteCollection", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1alpha2/AdmissionReports/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1alpha2"), go_opentelemetry_io_otel_attribute.String("resource", "AdmissionReports"), go_opentelemetry_io_otel_attribute.String("kind", "AdmissionReport"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedKyvernoV1alpha2AdmissionReports) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*github_com_kyverno_kyverno_api_kyverno_v1alpha2.AdmissionReport, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1alpha2/AdmissionReports", - "Get", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1alpha2/AdmissionReports/Get", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1alpha2"), go_opentelemetry_io_otel_attribute.String("resource", "AdmissionReports"), go_opentelemetry_io_otel_attribute.String("kind", "AdmissionReport"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedKyvernoV1alpha2AdmissionReports) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*github_com_kyverno_kyverno_api_kyverno_v1alpha2.AdmissionReportList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1alpha2/AdmissionReports", - "List", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1alpha2/AdmissionReports/List", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1alpha2"), go_opentelemetry_io_otel_attribute.String("resource", "AdmissionReports"), go_opentelemetry_io_otel_attribute.String("kind", "AdmissionReport"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedKyvernoV1alpha2AdmissionReports) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*github_com_kyverno_kyverno_api_kyverno_v1alpha2.AdmissionReport, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1alpha2/AdmissionReports", - "Patch", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1alpha2/AdmissionReports/Patch", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1alpha2"), go_opentelemetry_io_otel_attribute.String("resource", "AdmissionReports"), go_opentelemetry_io_otel_attribute.String("kind", "AdmissionReport"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedKyvernoV1alpha2AdmissionReports) Update(arg0 context.Context, arg1 *github_com_kyverno_kyverno_api_kyverno_v1alpha2.AdmissionReport, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*github_com_kyverno_kyverno_api_kyverno_v1alpha2.AdmissionReport, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1alpha2/AdmissionReports", - "Update", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1alpha2/AdmissionReports/Update", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1alpha2"), go_opentelemetry_io_otel_attribute.String("resource", "AdmissionReports"), go_opentelemetry_io_otel_attribute.String("kind", "AdmissionReport"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedKyvernoV1alpha2AdmissionReports) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1alpha2/AdmissionReports", - "Watch", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1alpha2/AdmissionReports/Watch", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1alpha2"), go_opentelemetry_io_otel_attribute.String("resource", "AdmissionReports"), go_opentelemetry_io_otel_attribute.String("kind", "AdmissionReport"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedKyvernoV1alpha2BackgroundScanReports wrapper @@ -934,106 +1200,146 @@ func newKyvernoV1alpha2BackgroundScanReports(inner github_com_kyverno_kyverno_pk func (c *wrappedKyvernoV1alpha2BackgroundScanReports) Create(arg0 context.Context, arg1 *github_com_kyverno_kyverno_api_kyverno_v1alpha2.BackgroundScanReport, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*github_com_kyverno_kyverno_api_kyverno_v1alpha2.BackgroundScanReport, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1alpha2/BackgroundScanReports", - "Create", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1alpha2/BackgroundScanReports/Create", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1alpha2"), go_opentelemetry_io_otel_attribute.String("resource", "BackgroundScanReports"), go_opentelemetry_io_otel_attribute.String("kind", "BackgroundScanReport"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedKyvernoV1alpha2BackgroundScanReports) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1alpha2/BackgroundScanReports", - "Delete", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1alpha2/BackgroundScanReports/Delete", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1alpha2"), go_opentelemetry_io_otel_attribute.String("resource", "BackgroundScanReports"), go_opentelemetry_io_otel_attribute.String("kind", "BackgroundScanReport"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedKyvernoV1alpha2BackgroundScanReports) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1alpha2/BackgroundScanReports", - "DeleteCollection", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1alpha2/BackgroundScanReports/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1alpha2"), go_opentelemetry_io_otel_attribute.String("resource", "BackgroundScanReports"), go_opentelemetry_io_otel_attribute.String("kind", "BackgroundScanReport"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedKyvernoV1alpha2BackgroundScanReports) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*github_com_kyverno_kyverno_api_kyverno_v1alpha2.BackgroundScanReport, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1alpha2/BackgroundScanReports", - "Get", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1alpha2/BackgroundScanReports/Get", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1alpha2"), go_opentelemetry_io_otel_attribute.String("resource", "BackgroundScanReports"), go_opentelemetry_io_otel_attribute.String("kind", "BackgroundScanReport"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedKyvernoV1alpha2BackgroundScanReports) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*github_com_kyverno_kyverno_api_kyverno_v1alpha2.BackgroundScanReportList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1alpha2/BackgroundScanReports", - "List", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1alpha2/BackgroundScanReports/List", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1alpha2"), go_opentelemetry_io_otel_attribute.String("resource", "BackgroundScanReports"), go_opentelemetry_io_otel_attribute.String("kind", "BackgroundScanReport"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedKyvernoV1alpha2BackgroundScanReports) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*github_com_kyverno_kyverno_api_kyverno_v1alpha2.BackgroundScanReport, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1alpha2/BackgroundScanReports", - "Patch", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1alpha2/BackgroundScanReports/Patch", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1alpha2"), go_opentelemetry_io_otel_attribute.String("resource", "BackgroundScanReports"), go_opentelemetry_io_otel_attribute.String("kind", "BackgroundScanReport"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedKyvernoV1alpha2BackgroundScanReports) Update(arg0 context.Context, arg1 *github_com_kyverno_kyverno_api_kyverno_v1alpha2.BackgroundScanReport, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*github_com_kyverno_kyverno_api_kyverno_v1alpha2.BackgroundScanReport, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1alpha2/BackgroundScanReports", - "Update", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1alpha2/BackgroundScanReports/Update", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1alpha2"), go_opentelemetry_io_otel_attribute.String("resource", "BackgroundScanReports"), go_opentelemetry_io_otel_attribute.String("kind", "BackgroundScanReport"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedKyvernoV1alpha2BackgroundScanReports) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1alpha2/BackgroundScanReports", - "Watch", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1alpha2/BackgroundScanReports/Watch", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1alpha2"), go_opentelemetry_io_otel_attribute.String("resource", "BackgroundScanReports"), go_opentelemetry_io_otel_attribute.String("kind", "BackgroundScanReport"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedKyvernoV1alpha2ClusterAdmissionReports wrapper @@ -1047,106 +1353,146 @@ func newKyvernoV1alpha2ClusterAdmissionReports(inner github_com_kyverno_kyverno_ func (c *wrappedKyvernoV1alpha2ClusterAdmissionReports) Create(arg0 context.Context, arg1 *github_com_kyverno_kyverno_api_kyverno_v1alpha2.ClusterAdmissionReport, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*github_com_kyverno_kyverno_api_kyverno_v1alpha2.ClusterAdmissionReport, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1alpha2/ClusterAdmissionReports", - "Create", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1alpha2/ClusterAdmissionReports/Create", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1alpha2"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterAdmissionReports"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterAdmissionReport"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedKyvernoV1alpha2ClusterAdmissionReports) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1alpha2/ClusterAdmissionReports", - "Delete", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1alpha2/ClusterAdmissionReports/Delete", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1alpha2"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterAdmissionReports"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterAdmissionReport"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedKyvernoV1alpha2ClusterAdmissionReports) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1alpha2/ClusterAdmissionReports", - "DeleteCollection", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1alpha2/ClusterAdmissionReports/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1alpha2"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterAdmissionReports"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterAdmissionReport"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedKyvernoV1alpha2ClusterAdmissionReports) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*github_com_kyverno_kyverno_api_kyverno_v1alpha2.ClusterAdmissionReport, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1alpha2/ClusterAdmissionReports", - "Get", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1alpha2/ClusterAdmissionReports/Get", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1alpha2"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterAdmissionReports"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterAdmissionReport"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedKyvernoV1alpha2ClusterAdmissionReports) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*github_com_kyverno_kyverno_api_kyverno_v1alpha2.ClusterAdmissionReportList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1alpha2/ClusterAdmissionReports", - "List", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1alpha2/ClusterAdmissionReports/List", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1alpha2"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterAdmissionReports"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterAdmissionReport"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedKyvernoV1alpha2ClusterAdmissionReports) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*github_com_kyverno_kyverno_api_kyverno_v1alpha2.ClusterAdmissionReport, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1alpha2/ClusterAdmissionReports", - "Patch", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1alpha2/ClusterAdmissionReports/Patch", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1alpha2"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterAdmissionReports"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterAdmissionReport"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedKyvernoV1alpha2ClusterAdmissionReports) Update(arg0 context.Context, arg1 *github_com_kyverno_kyverno_api_kyverno_v1alpha2.ClusterAdmissionReport, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*github_com_kyverno_kyverno_api_kyverno_v1alpha2.ClusterAdmissionReport, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1alpha2/ClusterAdmissionReports", - "Update", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1alpha2/ClusterAdmissionReports/Update", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1alpha2"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterAdmissionReports"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterAdmissionReport"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedKyvernoV1alpha2ClusterAdmissionReports) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1alpha2/ClusterAdmissionReports", - "Watch", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1alpha2/ClusterAdmissionReports/Watch", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1alpha2"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterAdmissionReports"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterAdmissionReport"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedKyvernoV1alpha2ClusterBackgroundScanReports wrapper @@ -1160,106 +1506,146 @@ func newKyvernoV1alpha2ClusterBackgroundScanReports(inner github_com_kyverno_kyv func (c *wrappedKyvernoV1alpha2ClusterBackgroundScanReports) Create(arg0 context.Context, arg1 *github_com_kyverno_kyverno_api_kyverno_v1alpha2.ClusterBackgroundScanReport, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*github_com_kyverno_kyverno_api_kyverno_v1alpha2.ClusterBackgroundScanReport, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1alpha2/ClusterBackgroundScanReports", - "Create", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1alpha2/ClusterBackgroundScanReports/Create", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1alpha2"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterBackgroundScanReports"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterBackgroundScanReport"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedKyvernoV1alpha2ClusterBackgroundScanReports) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1alpha2/ClusterBackgroundScanReports", - "Delete", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1alpha2/ClusterBackgroundScanReports/Delete", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1alpha2"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterBackgroundScanReports"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterBackgroundScanReport"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedKyvernoV1alpha2ClusterBackgroundScanReports) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1alpha2/ClusterBackgroundScanReports", - "DeleteCollection", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1alpha2/ClusterBackgroundScanReports/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1alpha2"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterBackgroundScanReports"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterBackgroundScanReport"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedKyvernoV1alpha2ClusterBackgroundScanReports) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*github_com_kyverno_kyverno_api_kyverno_v1alpha2.ClusterBackgroundScanReport, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1alpha2/ClusterBackgroundScanReports", - "Get", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1alpha2/ClusterBackgroundScanReports/Get", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1alpha2"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterBackgroundScanReports"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterBackgroundScanReport"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedKyvernoV1alpha2ClusterBackgroundScanReports) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*github_com_kyverno_kyverno_api_kyverno_v1alpha2.ClusterBackgroundScanReportList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1alpha2/ClusterBackgroundScanReports", - "List", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1alpha2/ClusterBackgroundScanReports/List", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1alpha2"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterBackgroundScanReports"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterBackgroundScanReport"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedKyvernoV1alpha2ClusterBackgroundScanReports) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*github_com_kyverno_kyverno_api_kyverno_v1alpha2.ClusterBackgroundScanReport, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1alpha2/ClusterBackgroundScanReports", - "Patch", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1alpha2/ClusterBackgroundScanReports/Patch", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1alpha2"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterBackgroundScanReports"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterBackgroundScanReport"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedKyvernoV1alpha2ClusterBackgroundScanReports) Update(arg0 context.Context, arg1 *github_com_kyverno_kyverno_api_kyverno_v1alpha2.ClusterBackgroundScanReport, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*github_com_kyverno_kyverno_api_kyverno_v1alpha2.ClusterBackgroundScanReport, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1alpha2/ClusterBackgroundScanReports", - "Update", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1alpha2/ClusterBackgroundScanReports/Update", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1alpha2"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterBackgroundScanReports"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterBackgroundScanReport"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedKyvernoV1alpha2ClusterBackgroundScanReports) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1alpha2/ClusterBackgroundScanReports", - "Watch", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1alpha2/ClusterBackgroundScanReports/Watch", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1alpha2"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterBackgroundScanReports"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterBackgroundScanReport"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedKyvernoV1beta1UpdateRequests wrapper @@ -1273,119 +1659,164 @@ func newKyvernoV1beta1UpdateRequests(inner github_com_kyverno_kyverno_pkg_client func (c *wrappedKyvernoV1beta1UpdateRequests) Create(arg0 context.Context, arg1 *github_com_kyverno_kyverno_api_kyverno_v1beta1.UpdateRequest, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*github_com_kyverno_kyverno_api_kyverno_v1beta1.UpdateRequest, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1beta1/UpdateRequests", - "Create", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1beta1/UpdateRequests/Create", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "UpdateRequests"), go_opentelemetry_io_otel_attribute.String("kind", "UpdateRequest"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedKyvernoV1beta1UpdateRequests) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1beta1/UpdateRequests", - "Delete", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1beta1/UpdateRequests/Delete", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "UpdateRequests"), go_opentelemetry_io_otel_attribute.String("kind", "UpdateRequest"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedKyvernoV1beta1UpdateRequests) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1beta1/UpdateRequests", - "DeleteCollection", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1beta1/UpdateRequests/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "UpdateRequests"), go_opentelemetry_io_otel_attribute.String("kind", "UpdateRequest"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedKyvernoV1beta1UpdateRequests) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*github_com_kyverno_kyverno_api_kyverno_v1beta1.UpdateRequest, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1beta1/UpdateRequests", - "Get", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1beta1/UpdateRequests/Get", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "UpdateRequests"), go_opentelemetry_io_otel_attribute.String("kind", "UpdateRequest"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedKyvernoV1beta1UpdateRequests) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*github_com_kyverno_kyverno_api_kyverno_v1beta1.UpdateRequestList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1beta1/UpdateRequests", - "List", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1beta1/UpdateRequests/List", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "UpdateRequests"), go_opentelemetry_io_otel_attribute.String("kind", "UpdateRequest"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedKyvernoV1beta1UpdateRequests) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*github_com_kyverno_kyverno_api_kyverno_v1beta1.UpdateRequest, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1beta1/UpdateRequests", - "Patch", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1beta1/UpdateRequests/Patch", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "UpdateRequests"), go_opentelemetry_io_otel_attribute.String("kind", "UpdateRequest"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedKyvernoV1beta1UpdateRequests) Update(arg0 context.Context, arg1 *github_com_kyverno_kyverno_api_kyverno_v1beta1.UpdateRequest, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*github_com_kyverno_kyverno_api_kyverno_v1beta1.UpdateRequest, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1beta1/UpdateRequests", - "Update", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1beta1/UpdateRequests/Update", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "UpdateRequests"), go_opentelemetry_io_otel_attribute.String("kind", "UpdateRequest"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedKyvernoV1beta1UpdateRequests) UpdateStatus(arg0 context.Context, arg1 *github_com_kyverno_kyverno_api_kyverno_v1beta1.UpdateRequest, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*github_com_kyverno_kyverno_api_kyverno_v1beta1.UpdateRequest, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1beta1/UpdateRequests", - "UpdateStatus", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1beta1/UpdateRequests/UpdateStatus", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "UpdateRequests"), go_opentelemetry_io_otel_attribute.String("kind", "UpdateRequest"), ) defer span.End() arg0 = ctx - return c.inner.UpdateStatus(arg0, arg1, arg2) + ret0, ret1 := c.inner.UpdateStatus(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedKyvernoV1beta1UpdateRequests) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "KyvernoV1beta1/UpdateRequests", - "Watch", + "pkg/clients/wrappers/traces/kyverno", + "KUBE KyvernoV1beta1/UpdateRequests/Watch", go_opentelemetry_io_otel_attribute.String("client", "KyvernoV1beta1"), go_opentelemetry_io_otel_attribute.String("resource", "UpdateRequests"), go_opentelemetry_io_otel_attribute.String("kind", "UpdateRequest"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedWgpolicyk8sV1alpha2ClusterPolicyReports wrapper @@ -1399,106 +1830,146 @@ func newWgpolicyk8sV1alpha2ClusterPolicyReports(inner github_com_kyverno_kyverno func (c *wrappedWgpolicyk8sV1alpha2ClusterPolicyReports) Create(arg0 context.Context, arg1 *github_com_kyverno_kyverno_api_policyreport_v1alpha2.ClusterPolicyReport, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*github_com_kyverno_kyverno_api_policyreport_v1alpha2.ClusterPolicyReport, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "Wgpolicyk8sV1alpha2/ClusterPolicyReports", - "Create", + "pkg/clients/wrappers/traces/kyverno", + "KUBE Wgpolicyk8sV1alpha2/ClusterPolicyReports/Create", go_opentelemetry_io_otel_attribute.String("client", "Wgpolicyk8sV1alpha2"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterPolicyReports"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterPolicyReport"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedWgpolicyk8sV1alpha2ClusterPolicyReports) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "Wgpolicyk8sV1alpha2/ClusterPolicyReports", - "Delete", + "pkg/clients/wrappers/traces/kyverno", + "KUBE Wgpolicyk8sV1alpha2/ClusterPolicyReports/Delete", go_opentelemetry_io_otel_attribute.String("client", "Wgpolicyk8sV1alpha2"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterPolicyReports"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterPolicyReport"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedWgpolicyk8sV1alpha2ClusterPolicyReports) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "Wgpolicyk8sV1alpha2/ClusterPolicyReports", - "DeleteCollection", + "pkg/clients/wrappers/traces/kyverno", + "KUBE Wgpolicyk8sV1alpha2/ClusterPolicyReports/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "Wgpolicyk8sV1alpha2"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterPolicyReports"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterPolicyReport"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedWgpolicyk8sV1alpha2ClusterPolicyReports) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*github_com_kyverno_kyverno_api_policyreport_v1alpha2.ClusterPolicyReport, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "Wgpolicyk8sV1alpha2/ClusterPolicyReports", - "Get", + "pkg/clients/wrappers/traces/kyverno", + "KUBE Wgpolicyk8sV1alpha2/ClusterPolicyReports/Get", go_opentelemetry_io_otel_attribute.String("client", "Wgpolicyk8sV1alpha2"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterPolicyReports"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterPolicyReport"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedWgpolicyk8sV1alpha2ClusterPolicyReports) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*github_com_kyverno_kyverno_api_policyreport_v1alpha2.ClusterPolicyReportList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "Wgpolicyk8sV1alpha2/ClusterPolicyReports", - "List", + "pkg/clients/wrappers/traces/kyverno", + "KUBE Wgpolicyk8sV1alpha2/ClusterPolicyReports/List", go_opentelemetry_io_otel_attribute.String("client", "Wgpolicyk8sV1alpha2"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterPolicyReports"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterPolicyReport"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedWgpolicyk8sV1alpha2ClusterPolicyReports) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*github_com_kyverno_kyverno_api_policyreport_v1alpha2.ClusterPolicyReport, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "Wgpolicyk8sV1alpha2/ClusterPolicyReports", - "Patch", + "pkg/clients/wrappers/traces/kyverno", + "KUBE Wgpolicyk8sV1alpha2/ClusterPolicyReports/Patch", go_opentelemetry_io_otel_attribute.String("client", "Wgpolicyk8sV1alpha2"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterPolicyReports"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterPolicyReport"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedWgpolicyk8sV1alpha2ClusterPolicyReports) Update(arg0 context.Context, arg1 *github_com_kyverno_kyverno_api_policyreport_v1alpha2.ClusterPolicyReport, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*github_com_kyverno_kyverno_api_policyreport_v1alpha2.ClusterPolicyReport, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "Wgpolicyk8sV1alpha2/ClusterPolicyReports", - "Update", + "pkg/clients/wrappers/traces/kyverno", + "KUBE Wgpolicyk8sV1alpha2/ClusterPolicyReports/Update", go_opentelemetry_io_otel_attribute.String("client", "Wgpolicyk8sV1alpha2"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterPolicyReports"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterPolicyReport"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedWgpolicyk8sV1alpha2ClusterPolicyReports) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "Wgpolicyk8sV1alpha2/ClusterPolicyReports", - "Watch", + "pkg/clients/wrappers/traces/kyverno", + "KUBE Wgpolicyk8sV1alpha2/ClusterPolicyReports/Watch", go_opentelemetry_io_otel_attribute.String("client", "Wgpolicyk8sV1alpha2"), go_opentelemetry_io_otel_attribute.String("resource", "ClusterPolicyReports"), go_opentelemetry_io_otel_attribute.String("kind", "ClusterPolicyReport"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } // wrappedWgpolicyk8sV1alpha2PolicyReports wrapper @@ -1512,104 +1983,144 @@ func newWgpolicyk8sV1alpha2PolicyReports(inner github_com_kyverno_kyverno_pkg_cl func (c *wrappedWgpolicyk8sV1alpha2PolicyReports) Create(arg0 context.Context, arg1 *github_com_kyverno_kyverno_api_policyreport_v1alpha2.PolicyReport, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.CreateOptions) (*github_com_kyverno_kyverno_api_policyreport_v1alpha2.PolicyReport, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "Wgpolicyk8sV1alpha2/PolicyReports", - "Create", + "pkg/clients/wrappers/traces/kyverno", + "KUBE Wgpolicyk8sV1alpha2/PolicyReports/Create", go_opentelemetry_io_otel_attribute.String("client", "Wgpolicyk8sV1alpha2"), go_opentelemetry_io_otel_attribute.String("resource", "PolicyReports"), go_opentelemetry_io_otel_attribute.String("kind", "PolicyReport"), ) defer span.End() arg0 = ctx - return c.inner.Create(arg0, arg1, arg2) + ret0, ret1 := c.inner.Create(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedWgpolicyk8sV1alpha2PolicyReports) Delete(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "Wgpolicyk8sV1alpha2/PolicyReports", - "Delete", + "pkg/clients/wrappers/traces/kyverno", + "KUBE Wgpolicyk8sV1alpha2/PolicyReports/Delete", go_opentelemetry_io_otel_attribute.String("client", "Wgpolicyk8sV1alpha2"), go_opentelemetry_io_otel_attribute.String("resource", "PolicyReports"), go_opentelemetry_io_otel_attribute.String("kind", "PolicyReport"), ) defer span.End() arg0 = ctx - return c.inner.Delete(arg0, arg1, arg2) + ret0 := c.inner.Delete(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedWgpolicyk8sV1alpha2PolicyReports) DeleteCollection(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) error { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "Wgpolicyk8sV1alpha2/PolicyReports", - "DeleteCollection", + "pkg/clients/wrappers/traces/kyverno", + "KUBE Wgpolicyk8sV1alpha2/PolicyReports/DeleteCollection", go_opentelemetry_io_otel_attribute.String("client", "Wgpolicyk8sV1alpha2"), go_opentelemetry_io_otel_attribute.String("resource", "PolicyReports"), go_opentelemetry_io_otel_attribute.String("kind", "PolicyReport"), ) defer span.End() arg0 = ctx - return c.inner.DeleteCollection(arg0, arg1, arg2) + ret0 := c.inner.DeleteCollection(arg0, arg1, arg2) + if ret0 != nil { + span.RecordError(ret0) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret0.Error()) + } + return ret0 } func (c *wrappedWgpolicyk8sV1alpha2PolicyReports) Get(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.GetOptions) (*github_com_kyverno_kyverno_api_policyreport_v1alpha2.PolicyReport, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "Wgpolicyk8sV1alpha2/PolicyReports", - "Get", + "pkg/clients/wrappers/traces/kyverno", + "KUBE Wgpolicyk8sV1alpha2/PolicyReports/Get", go_opentelemetry_io_otel_attribute.String("client", "Wgpolicyk8sV1alpha2"), go_opentelemetry_io_otel_attribute.String("resource", "PolicyReports"), go_opentelemetry_io_otel_attribute.String("kind", "PolicyReport"), ) defer span.End() arg0 = ctx - return c.inner.Get(arg0, arg1, arg2) + ret0, ret1 := c.inner.Get(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedWgpolicyk8sV1alpha2PolicyReports) List(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (*github_com_kyverno_kyverno_api_policyreport_v1alpha2.PolicyReportList, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "Wgpolicyk8sV1alpha2/PolicyReports", - "List", + "pkg/clients/wrappers/traces/kyverno", + "KUBE Wgpolicyk8sV1alpha2/PolicyReports/List", go_opentelemetry_io_otel_attribute.String("client", "Wgpolicyk8sV1alpha2"), go_opentelemetry_io_otel_attribute.String("resource", "PolicyReports"), go_opentelemetry_io_otel_attribute.String("kind", "PolicyReport"), ) defer span.End() arg0 = ctx - return c.inner.List(arg0, arg1) + ret0, ret1 := c.inner.List(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedWgpolicyk8sV1alpha2PolicyReports) Patch(arg0 context.Context, arg1 string, arg2 k8s_io_apimachinery_pkg_types.PatchType, arg3 []uint8, arg4 k8s_io_apimachinery_pkg_apis_meta_v1.PatchOptions, arg5 ...string) (*github_com_kyverno_kyverno_api_policyreport_v1alpha2.PolicyReport, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "Wgpolicyk8sV1alpha2/PolicyReports", - "Patch", + "pkg/clients/wrappers/traces/kyverno", + "KUBE Wgpolicyk8sV1alpha2/PolicyReports/Patch", go_opentelemetry_io_otel_attribute.String("client", "Wgpolicyk8sV1alpha2"), go_opentelemetry_io_otel_attribute.String("resource", "PolicyReports"), go_opentelemetry_io_otel_attribute.String("kind", "PolicyReport"), ) defer span.End() arg0 = ctx - return c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + ret0, ret1 := c.inner.Patch(arg0, arg1, arg2, arg3, arg4, arg5...) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedWgpolicyk8sV1alpha2PolicyReports) Update(arg0 context.Context, arg1 *github_com_kyverno_kyverno_api_policyreport_v1alpha2.PolicyReport, arg2 k8s_io_apimachinery_pkg_apis_meta_v1.UpdateOptions) (*github_com_kyverno_kyverno_api_policyreport_v1alpha2.PolicyReport, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "Wgpolicyk8sV1alpha2/PolicyReports", - "Update", + "pkg/clients/wrappers/traces/kyverno", + "KUBE Wgpolicyk8sV1alpha2/PolicyReports/Update", go_opentelemetry_io_otel_attribute.String("client", "Wgpolicyk8sV1alpha2"), go_opentelemetry_io_otel_attribute.String("resource", "PolicyReports"), go_opentelemetry_io_otel_attribute.String("kind", "PolicyReport"), ) defer span.End() arg0 = ctx - return c.inner.Update(arg0, arg1, arg2) + ret0, ret1 := c.inner.Update(arg0, arg1, arg2) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } func (c *wrappedWgpolicyk8sV1alpha2PolicyReports) Watch(arg0 context.Context, arg1 k8s_io_apimachinery_pkg_apis_meta_v1.ListOptions) (k8s_io_apimachinery_pkg_watch.Interface, error) { ctx, span := github_com_kyverno_kyverno_pkg_tracing.StartSpan( arg0, - "Wgpolicyk8sV1alpha2/PolicyReports", - "Watch", + "pkg/clients/wrappers/traces/kyverno", + "KUBE Wgpolicyk8sV1alpha2/PolicyReports/Watch", go_opentelemetry_io_otel_attribute.String("client", "Wgpolicyk8sV1alpha2"), go_opentelemetry_io_otel_attribute.String("resource", "PolicyReports"), go_opentelemetry_io_otel_attribute.String("kind", "PolicyReport"), ) defer span.End() arg0 = ctx - return c.inner.Watch(arg0, arg1) + ret0, ret1 := c.inner.Watch(arg0, arg1) + if ret1 != nil { + span.RecordError(ret1) + span.SetStatus(go_opentelemetry_io_otel_codes.Ok, ret1.Error()) + } + return ret0, ret1 } diff --git a/pkg/webhooks/handlers/admission.go b/pkg/webhooks/handlers/admission.go index 4ddc5b5387..59ee87e167 100644 --- a/pkg/webhooks/handlers/admission.go +++ b/pkg/webhooks/handlers/admission.go @@ -1,7 +1,6 @@ package handlers import ( - "context" "encoding/json" "fmt" "io" @@ -10,15 +9,9 @@ import ( "github.com/go-logr/logr" "github.com/kyverno/kyverno/pkg/tracing" - "go.opentelemetry.io/otel/attribute" admissionv1 "k8s.io/api/admission/v1" ) -type ( - AdmissionHandler func(context.Context, logr.Logger, *admissionv1.AdmissionRequest, time.Time) *admissionv1.AdmissionResponse - HttpHandler func(http.ResponseWriter, *http.Request) -) - func (h AdmissionHandler) WithAdmission(logger logr.Logger) HttpHandler { return withAdmission(logger, h) } @@ -65,13 +58,9 @@ func withAdmission(logger logr.Logger, inner AdmissionHandler) HttpHandler { // start span from request context ctx, span := tracing.StartSpan( request.Context(), - "admission_webhook_operations", - string(admissionReview.Request.Operation), - attribute.String("kind", admissionReview.Request.Kind.Kind), - attribute.String("namespace", admissionReview.Request.Namespace), - attribute.String("name", admissionReview.Request.Name), - attribute.String("operation", string(admissionReview.Request.Operation)), - attribute.String("uid", string(admissionReview.Request.UID)), + "webhooks/handlers", + fmt.Sprintf("ADMISSION %s %s", admissionReview.Request.Operation, admissionReview.Request.Kind), + admissionRequestAttributes(admissionReview.Request)..., ) defer span.End() adminssionResponse := inner(ctx, logger, admissionReview.Request, startTime) diff --git a/pkg/webhooks/handlers/dump.go b/pkg/webhooks/handlers/dump.go index 93d8e7d082..cf5dbe3c6b 100644 --- a/pkg/webhooks/handlers/dump.go +++ b/pkg/webhooks/handlers/dump.go @@ -2,6 +2,7 @@ package handlers import ( "context" + "fmt" "strings" "time" @@ -107,13 +108,14 @@ func withDump(inner AdmissionHandler) AdmissionHandler { return func(ctx context.Context, logger logr.Logger, request *admissionv1.AdmissionRequest, startTime time.Time) *admissionv1.AdmissionResponse { return tracing.Span1( ctx, - "admission_webhook_operations", - "dump", + "webhooks/handlers", + fmt.Sprintf("DUMP %s %s", request.Operation, request.Kind), func(ctx context.Context, span trace.Span) *admissionv1.AdmissionResponse { response := inner(ctx, logger, request, startTime) dumpPayload(logger, request, response) return response }, + trace.WithAttributes(admissionRequestAttributes(request)...), ) } } diff --git a/pkg/webhooks/handlers/filter.go b/pkg/webhooks/handlers/filter.go index 806b4cedbd..784b706c66 100644 --- a/pkg/webhooks/handlers/filter.go +++ b/pkg/webhooks/handlers/filter.go @@ -2,6 +2,7 @@ package handlers import ( "context" + "fmt" "time" "github.com/go-logr/logr" @@ -19,14 +20,15 @@ func withFilter(c config.Configuration, inner AdmissionHandler) AdmissionHandler return func(ctx context.Context, logger logr.Logger, request *admissionv1.AdmissionRequest, startTime time.Time) *admissionv1.AdmissionResponse { return tracing.Span1( ctx, - "admission_webhook_operations", - "filter", + "webhooks/handlers", + fmt.Sprintf("FILTER %s %s", request.Operation, request.Kind), func(ctx context.Context, span trace.Span) *admissionv1.AdmissionResponse { if c.ToFilter(request.Kind.Kind, request.Namespace, request.Name) { return nil } return inner(ctx, logger, request, startTime) }, + trace.WithAttributes(admissionRequestAttributes(request)...), ) } } diff --git a/pkg/webhooks/handlers/metrics.go b/pkg/webhooks/handlers/metrics.go index 7fa3748136..648cb88bb3 100644 --- a/pkg/webhooks/handlers/metrics.go +++ b/pkg/webhooks/handlers/metrics.go @@ -2,6 +2,7 @@ package handlers import ( "context" + "fmt" "time" "github.com/go-logr/logr" @@ -21,13 +22,14 @@ func withMetrics(metricsConfig *metrics.MetricsConfig, inner AdmissionHandler) A return func(ctx context.Context, logger logr.Logger, request *admissionv1.AdmissionRequest, startTime time.Time) *admissionv1.AdmissionResponse { return tracing.Span1( ctx, - "admission_webhook_operations", - "metrics", + "webhooks/handlers", + fmt.Sprintf("METRICS %s %s", request.Operation, request.Kind), func(ctx context.Context, span trace.Span) *admissionv1.AdmissionResponse { defer admissionReviewDuration.Process(metricsConfig, request, int64(time.Since(startTime))) admissionRequests.Process(metricsConfig, request) return inner(ctx, logger, request, startTime) }, + trace.WithAttributes(admissionRequestAttributes(request)...), ) } } diff --git a/pkg/webhooks/handlers/protect.go b/pkg/webhooks/handlers/protect.go index 9ee068f0e1..c6cd3e7cb2 100644 --- a/pkg/webhooks/handlers/protect.go +++ b/pkg/webhooks/handlers/protect.go @@ -28,8 +28,8 @@ func withProtection(inner AdmissionHandler) AdmissionHandler { return func(ctx context.Context, logger logr.Logger, request *admissionv1.AdmissionRequest, startTime time.Time) *admissionv1.AdmissionResponse { return tracing.Span1( ctx, - "admission_webhook_operations", - "protect", + "webhooks/handlers", + fmt.Sprintf("PROTECT %s %s", request.Operation, request.Kind), func(ctx context.Context, span trace.Span) *admissionv1.AdmissionResponse { newResource, oldResource, err := utils.ExtractResources(nil, request) if err != nil { @@ -47,6 +47,7 @@ func withProtection(inner AdmissionHandler) AdmissionHandler { } return inner(ctx, logger, request, startTime) }, + trace.WithAttributes(admissionRequestAttributes(request)...), ) } } diff --git a/pkg/webhooks/handlers/trace.go b/pkg/webhooks/handlers/trace.go index 77f2a00a3d..53b05ade78 100644 --- a/pkg/webhooks/handlers/trace.go +++ b/pkg/webhooks/handlers/trace.go @@ -2,6 +2,7 @@ package handlers import ( "context" + "fmt" "net/http" "github.com/kyverno/kyverno/pkg/tracing" @@ -17,8 +18,8 @@ func withTrace(inner HttpHandler) HttpHandler { return func(writer http.ResponseWriter, request *http.Request) { tracing.Span( request.Context(), - "admission_webhook_operations", - request.URL.Path, + "webhooks/handlers", + fmt.Sprintf("HTTP %s %s", request.Method, request.URL.Path), func(ctx context.Context, span trace.Span) { inner(writer, request.WithContext(ctx)) }, diff --git a/pkg/webhooks/handlers/types.go b/pkg/webhooks/handlers/types.go new file mode 100644 index 0000000000..003aa3cd7c --- /dev/null +++ b/pkg/webhooks/handlers/types.go @@ -0,0 +1,15 @@ +package handlers + +import ( + "context" + "net/http" + "time" + + "github.com/go-logr/logr" + admissionv1 "k8s.io/api/admission/v1" +) + +type ( + AdmissionHandler func(context.Context, logr.Logger, *admissionv1.AdmissionRequest, time.Time) *admissionv1.AdmissionResponse + HttpHandler func(http.ResponseWriter, *http.Request) +) diff --git a/pkg/webhooks/handlers/utils.go b/pkg/webhooks/handlers/utils.go new file mode 100644 index 0000000000..4121e0a239 --- /dev/null +++ b/pkg/webhooks/handlers/utils.go @@ -0,0 +1,16 @@ +package handlers + +import ( + "go.opentelemetry.io/otel/attribute" + admissionv1 "k8s.io/api/admission/v1" +) + +func admissionRequestAttributes(request *admissionv1.AdmissionRequest) []attribute.KeyValue { + return []attribute.KeyValue{ + attribute.String("kind", request.Kind.Kind), + attribute.String("namespace", request.Namespace), + attribute.String("name", request.Name), + attribute.String("operation", string(request.Operation)), + attribute.String("uid", string(request.UID)), + } +} diff --git a/pkg/webhooks/handlers/verify.go b/pkg/webhooks/handlers/verify.go index 919aa5317c..7dfdd0a27b 100644 --- a/pkg/webhooks/handlers/verify.go +++ b/pkg/webhooks/handlers/verify.go @@ -2,6 +2,7 @@ package handlers import ( "context" + "fmt" "time" "github.com/go-logr/logr" @@ -17,8 +18,8 @@ func Verify() AdmissionHandler { return func(ctx context.Context, logger logr.Logger, request *admissionv1.AdmissionRequest, startTime time.Time) *admissionv1.AdmissionResponse { return tracing.Span1( ctx, - "admission_webhook_operations", - "verify", + "webhooks/handlers", + fmt.Sprintf("VERIFY %s %s", request.Operation, request.Kind), func(ctx context.Context, span trace.Span) *admissionv1.AdmissionResponse { if request.Name != "kyverno-health" || request.Namespace != config.KyvernoNamespace() { return admissionutils.ResponseSuccess() @@ -31,6 +32,7 @@ func Verify() AdmissionHandler { } return admissionutils.MutationResponse(bytes) }, + trace.WithAttributes(admissionRequestAttributes(request)...), ) } }