diff --git a/semconv/templates/registry/go/instrument.j2 b/semconv/templates/registry/go/instrument.j2 index 13e0735de..8d878bec5 100644 --- a/semconv/templates/registry/go/instrument.j2 +++ b/semconv/templates/registry/go/instrument.j2 @@ -133,6 +133,7 @@ func (m {{ name }}) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -172,6 +173,7 @@ func (m {{ h.to_go_name(metric.metric_name, pkg) }}) Add(ctx context.Context, in o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -200,6 +202,7 @@ func (m {{ h.to_go_name(metric.metric_name, pkg) }}) AddSet(ctx context.Context, o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -235,6 +238,7 @@ func (m {{ name }}) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -275,6 +279,7 @@ func (m {{ name }}) Record(ctx context.Context, val {{ value_type(metric) | lowe o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -304,6 +309,7 @@ func (m {{ name }}) RecordSet(ctx context.Context, val {{ value_type(metric) | l o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() diff --git a/semconv/v1.41.0/azureconv/metric.go b/semconv/v1.41.0/azureconv/metric.go index aec21c4b8..f905a0c0e 100644 --- a/semconv/v1.41.0/azureconv/metric.go +++ b/semconv/v1.41.0/azureconv/metric.go @@ -129,6 +129,7 @@ func (m CosmosDBClientActiveInstanceCount) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -155,6 +156,7 @@ func (m CosmosDBClientActiveInstanceCount) AddSet(ctx context.Context, incr int6 o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -332,6 +334,7 @@ func (m CosmosDBClientOperationRequestCharge) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -361,6 +364,7 @@ func (m CosmosDBClientOperationRequestCharge) RecordSet(ctx context.Context, val o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() diff --git a/semconv/v1.41.0/cicdconv/metric.go b/semconv/v1.41.0/cicdconv/metric.go index 19363aa7a..f651f0da6 100644 --- a/semconv/v1.41.0/cicdconv/metric.go +++ b/semconv/v1.41.0/cicdconv/metric.go @@ -175,6 +175,7 @@ func (m PipelineRunActive) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -205,6 +206,7 @@ func (m PipelineRunActive) AddSet(ctx context.Context, incr int64, set attribute o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -360,6 +362,7 @@ func (m PipelineRunDuration) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -390,6 +393,7 @@ func (m PipelineRunDuration) RecordSet(ctx context.Context, val float64, set att o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -501,6 +505,7 @@ func (m PipelineRunErrors) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -536,6 +541,7 @@ func (m PipelineRunErrors) AddSet(ctx context.Context, incr int64, set attribute o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -690,6 +696,7 @@ func (m SystemErrors) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -723,6 +730,7 @@ func (m SystemErrors) AddSet(ctx context.Context, incr int64, set attribute.Set) o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -869,6 +877,7 @@ func (m WorkerCount) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -898,6 +907,7 @@ func (m WorkerCount) AddSet(ctx context.Context, incr int64, set attribute.Set) o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() diff --git a/semconv/v1.41.0/containerconv/metric.go b/semconv/v1.41.0/containerconv/metric.go index 808ec7676..d5b438ae5 100644 --- a/semconv/v1.41.0/containerconv/metric.go +++ b/semconv/v1.41.0/containerconv/metric.go @@ -163,6 +163,7 @@ func (m CPUTime) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -191,6 +192,7 @@ func (m CPUTime) AddSet(ctx context.Context, incr float64, set attribute.Set) { o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -352,6 +354,7 @@ func (m CPUUsage) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -381,6 +384,7 @@ func (m CPUUsage) RecordSet(ctx context.Context, val int64, set attribute.Set) { o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -542,6 +546,7 @@ func (m DiskIO) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -571,6 +576,7 @@ func (m DiskIO) AddSet(ctx context.Context, incr int64, set attribute.Set) { o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -739,6 +745,7 @@ func (m FilesystemAvailable) Add(ctx context.Context, incr int64, attrs ...attri o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -767,6 +774,7 @@ func (m FilesystemAvailable) AddSet(ctx context.Context, incr int64, set attribu o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -912,6 +920,7 @@ func (m FilesystemCapacity) Add(ctx context.Context, incr int64, attrs ...attrib o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -940,6 +949,7 @@ func (m FilesystemCapacity) AddSet(ctx context.Context, incr int64, set attribut o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1087,6 +1097,7 @@ func (m FilesystemUsage) Add(ctx context.Context, incr int64, attrs ...attribute o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1117,6 +1128,7 @@ func (m FilesystemUsage) AddSet(ctx context.Context, incr int64, set attribute.S o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1266,6 +1278,7 @@ func (m MemoryAvailable) Add(ctx context.Context, incr int64, attrs ...attribute o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1298,6 +1311,7 @@ func (m MemoryAvailable) AddSet(ctx context.Context, incr int64, set attribute.S o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1454,6 +1468,7 @@ func (m MemoryPagingFaults) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1493,6 +1508,7 @@ func (m MemoryPagingFaults) AddSet(ctx context.Context, incr int64, set attribut o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1653,6 +1669,7 @@ func (m MemoryRss) Add(ctx context.Context, incr int64, attrs ...attribute.KeyVa o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1682,6 +1699,7 @@ func (m MemoryRss) AddSet(ctx context.Context, incr int64, set attribute.Set) { o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1820,6 +1838,7 @@ func (m MemoryUsage) Add(ctx context.Context, incr int64, attrs ...attribute.Key o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1842,6 +1861,7 @@ func (m MemoryUsage) AddSet(ctx context.Context, incr int64, set attribute.Set) o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1987,6 +2007,7 @@ func (m MemoryWorkingSet) Add(ctx context.Context, incr int64, attrs ...attribut o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -2016,6 +2037,7 @@ func (m MemoryWorkingSet) AddSet(ctx context.Context, incr int64, set attribute. o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -2161,6 +2183,7 @@ func (m NetworkIO) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -2189,6 +2212,7 @@ func (m NetworkIO) AddSet(ctx context.Context, incr int64, set attribute.Set) { o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -2357,6 +2381,7 @@ func (m Uptime) Record(ctx context.Context, val float64, attrs ...attribute.KeyV o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -2381,6 +2406,7 @@ func (m Uptime) RecordSet(ctx context.Context, val float64, set attribute.Set) { o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() diff --git a/semconv/v1.41.0/dbconv/metric.go b/semconv/v1.41.0/dbconv/metric.go index 9acea557c..49c0adfcb 100644 --- a/semconv/v1.41.0/dbconv/metric.go +++ b/semconv/v1.41.0/dbconv/metric.go @@ -306,6 +306,7 @@ func (m ClientConnectionCount) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -336,6 +337,7 @@ func (m ClientConnectionCount) AddSet(ctx context.Context, incr int64, set attri o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -490,6 +492,7 @@ func (m ClientConnectionCreateTime) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -519,6 +522,7 @@ func (m ClientConnectionCreateTime) RecordSet(ctx context.Context, val float64, o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -612,6 +616,7 @@ func (m ClientConnectionIdleMax) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -641,6 +646,7 @@ func (m ClientConnectionIdleMax) AddSet(ctx context.Context, incr int64, set att o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -793,6 +799,7 @@ func (m ClientConnectionIdleMin) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -822,6 +829,7 @@ func (m ClientConnectionIdleMin) AddSet(ctx context.Context, incr int64, set att o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -974,6 +982,7 @@ func (m ClientConnectionMax) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1003,6 +1012,7 @@ func (m ClientConnectionMax) AddSet(ctx context.Context, incr int64, set attribu o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1157,6 +1167,7 @@ func (m ClientConnectionPendingRequests) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1186,6 +1197,7 @@ func (m ClientConnectionPendingRequests) AddSet(ctx context.Context, incr int64, o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1340,6 +1352,7 @@ func (m ClientConnectionTimeouts) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1369,6 +1382,7 @@ func (m ClientConnectionTimeouts) AddSet(ctx context.Context, incr int64, set at o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1523,6 +1537,7 @@ func (m ClientConnectionUseTime) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -1552,6 +1567,7 @@ func (m ClientConnectionUseTime) RecordSet(ctx context.Context, val float64, set o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -1645,6 +1661,7 @@ func (m ClientConnectionWaitTime) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -1674,6 +1691,7 @@ func (m ClientConnectionWaitTime) RecordSet(ctx context.Context, val float64, se o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -1766,6 +1784,7 @@ func (m ClientOperationDuration) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -1797,6 +1816,7 @@ func (m ClientOperationDuration) RecordSet(ctx context.Context, val float64, set o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -1969,6 +1989,7 @@ func (m ClientResponseReturnedRows) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -1998,6 +2019,7 @@ func (m ClientResponseReturnedRows) RecordSet(ctx context.Context, val int64, se o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() diff --git a/semconv/v1.41.0/dnsconv/metric.go b/semconv/v1.41.0/dnsconv/metric.go index a8116f700..cf900470b 100644 --- a/semconv/v1.41.0/dnsconv/metric.go +++ b/semconv/v1.41.0/dnsconv/metric.go @@ -112,6 +112,7 @@ func (m LookupDuration) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -141,6 +142,7 @@ func (m LookupDuration) RecordSet(ctx context.Context, val float64, set attribut o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() diff --git a/semconv/v1.41.0/faasconv/metric.go b/semconv/v1.41.0/faasconv/metric.go index d0b791e64..d0c884f7e 100644 --- a/semconv/v1.41.0/faasconv/metric.go +++ b/semconv/v1.41.0/faasconv/metric.go @@ -117,6 +117,7 @@ func (m Coldstarts) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -143,6 +144,7 @@ func (m Coldstarts) AddSet(ctx context.Context, incr int64, set attribute.Set) { o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -299,6 +301,7 @@ func (m CPUUsage) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -325,6 +328,7 @@ func (m CPUUsage) RecordSet(ctx context.Context, val float64, set attribute.Set) o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -416,6 +420,7 @@ func (m Errors) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -442,6 +447,7 @@ func (m Errors) AddSet(ctx context.Context, incr int64, set attribute.Set) { o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -598,6 +604,7 @@ func (m InitDuration) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -624,6 +631,7 @@ func (m InitDuration) RecordSet(ctx context.Context, val float64, set attribute. o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -715,6 +723,7 @@ func (m Invocations) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -741,6 +750,7 @@ func (m Invocations) AddSet(ctx context.Context, incr int64, set attribute.Set) o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -897,6 +907,7 @@ func (m InvokeDuration) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -923,6 +934,7 @@ func (m InvokeDuration) RecordSet(ctx context.Context, val float64, set attribut o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -1014,6 +1026,7 @@ func (m MemUsage) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -1040,6 +1053,7 @@ func (m MemUsage) RecordSet(ctx context.Context, val int64, set attribute.Set) { o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -1131,6 +1145,7 @@ func (m NetIO) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -1157,6 +1172,7 @@ func (m NetIO) RecordSet(ctx context.Context, val int64, set attribute.Set) { o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -1248,6 +1264,7 @@ func (m Timeouts) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1274,6 +1291,7 @@ func (m Timeouts) AddSet(ctx context.Context, incr int64, set attribute.Set) { o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() diff --git a/semconv/v1.41.0/genaiconv/metric.go b/semconv/v1.41.0/genaiconv/metric.go index 8c3f9eba2..0dbe35270 100644 --- a/semconv/v1.41.0/genaiconv/metric.go +++ b/semconv/v1.41.0/genaiconv/metric.go @@ -233,6 +233,7 @@ func (m ClientOperationDuration) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -263,6 +264,7 @@ func (m ClientOperationDuration) RecordSet(ctx context.Context, val float64, set o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -396,6 +398,7 @@ func (m ClientOperationTimePerOutputChunk) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -429,6 +432,7 @@ func (m ClientOperationTimePerOutputChunk) RecordSet(ctx context.Context, val fl o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -555,6 +559,7 @@ func (m ClientOperationTimeToFirstChunk) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -588,6 +593,7 @@ func (m ClientOperationTimeToFirstChunk) RecordSet(ctx context.Context, val floa o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -712,6 +718,7 @@ func (m ClientTokenUsage) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -743,6 +750,7 @@ func (m ClientTokenUsage) RecordSet(ctx context.Context, val int64, set attribut o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -864,6 +872,7 @@ func (m ServerRequestDuration) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -894,6 +903,7 @@ func (m ServerRequestDuration) RecordSet(ctx context.Context, val float64, set a o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -1022,6 +1032,7 @@ func (m ServerTimePerOutputToken) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -1052,6 +1063,7 @@ func (m ServerTimePerOutputToken) RecordSet(ctx context.Context, val float64, se o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -1172,6 +1184,7 @@ func (m ServerTimeToFirstToken) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -1202,6 +1215,7 @@ func (m ServerTimeToFirstToken) RecordSet(ctx context.Context, val float64, set o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() diff --git a/semconv/v1.41.0/goconv/metric.go b/semconv/v1.41.0/goconv/metric.go index 0e22bd41a..65beab78c 100644 --- a/semconv/v1.41.0/goconv/metric.go +++ b/semconv/v1.41.0/goconv/metric.go @@ -194,6 +194,7 @@ func (m CPUTime) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -227,6 +228,7 @@ func (m CPUTime) AddSet(ctx context.Context, incr float64, set attribute.Set) { o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -553,6 +555,7 @@ func (m MemoryGCCycles) Add(ctx context.Context, incr int64, attrs ...attribute. o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -575,6 +578,7 @@ func (m MemoryGCCycles) AddSet(ctx context.Context, incr int64, set attribute.Se o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -773,6 +777,7 @@ func (m MemoryGCPauseDuration) Record(ctx context.Context, val float64, attrs .. o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -796,6 +801,7 @@ func (m MemoryGCPauseDuration) RecordSet(ctx context.Context, val float64, set a o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -1065,6 +1071,7 @@ func (m ScheduleDuration) Record(ctx context.Context, val float64, attrs ...attr o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -1088,6 +1095,7 @@ func (m ScheduleDuration) RecordSet(ctx context.Context, val float64, set attrib o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() diff --git a/semconv/v1.41.0/httpconv/metric.go b/semconv/v1.41.0/httpconv/metric.go index f0d0738ac..a830e87ed 100644 --- a/semconv/v1.41.0/httpconv/metric.go +++ b/semconv/v1.41.0/httpconv/metric.go @@ -172,6 +172,7 @@ func (m ClientActiveRequests) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -202,6 +203,7 @@ func (m ClientActiveRequests) AddSet(ctx context.Context, incr int64, set attrib o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -404,6 +406,7 @@ func (m ClientConnectionDuration) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -434,6 +437,7 @@ func (m ClientConnectionDuration) RecordSet(ctx context.Context, val float64, se o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -557,6 +561,7 @@ func (m ClientOpenConnections) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -588,6 +593,7 @@ func (m ClientOpenConnections) AddSet(ctx context.Context, incr int64, set attri o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -799,6 +805,7 @@ func (m ClientRequestBodySize) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -837,6 +844,7 @@ func (m ClientRequestBodySize) RecordSet(ctx context.Context, val int64, set att o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -986,6 +994,7 @@ func (m ClientRequestDuration) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -1017,6 +1026,7 @@ func (m ClientRequestDuration) RecordSet(ctx context.Context, val float64, set a o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -1172,6 +1182,7 @@ func (m ClientResponseBodySize) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -1210,6 +1221,7 @@ func (m ClientResponseBodySize) RecordSet(ctx context.Context, val int64, set at o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -1355,6 +1367,7 @@ func (m ServerActiveRequests) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1385,6 +1398,7 @@ func (m ServerActiveRequests) AddSet(ctx context.Context, incr int64, set attrib o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1574,6 +1588,7 @@ func (m ServerRequestBodySize) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -1611,6 +1626,7 @@ func (m ServerRequestBodySize) RecordSet(ctx context.Context, val int64, set att o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -1768,6 +1784,7 @@ func (m ServerRequestDuration) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -1798,6 +1815,7 @@ func (m ServerRequestDuration) RecordSet(ctx context.Context, val float64, set a o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -1961,6 +1979,7 @@ func (m ServerResponseBodySize) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -1998,6 +2017,7 @@ func (m ServerResponseBodySize) RecordSet(ctx context.Context, val int64, set at o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() diff --git a/semconv/v1.41.0/hwconv/metric.go b/semconv/v1.41.0/hwconv/metric.go index 76d56f18d..26a133385 100644 --- a/semconv/v1.41.0/hwconv/metric.go +++ b/semconv/v1.41.0/hwconv/metric.go @@ -267,6 +267,7 @@ func (m BatteryCharge) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -296,6 +297,7 @@ func (m BatteryCharge) RecordSet(ctx context.Context, val int64, set attribute.S o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -528,6 +530,7 @@ func (m BatteryChargeLimit) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -557,6 +560,7 @@ func (m BatteryChargeLimit) RecordSet(ctx context.Context, val int64, set attrib o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -815,6 +819,7 @@ func (m BatteryTimeLeft) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -845,6 +850,7 @@ func (m BatteryTimeLeft) RecordSet(ctx context.Context, val float64, set attribu o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -1089,6 +1095,7 @@ func (m CPUSpeed) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -1118,6 +1125,7 @@ func (m CPUSpeed) RecordSet(ctx context.Context, val int64, set attribute.Set) { o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -1318,6 +1326,7 @@ func (m CPUSpeedLimit) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -1347,6 +1356,7 @@ func (m CPUSpeedLimit) RecordSet(ctx context.Context, val int64, set attribute.S o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -1563,6 +1573,7 @@ func (m Energy) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1593,6 +1604,7 @@ func (m Energy) AddSet(ctx context.Context, incr int64, set attribute.Set) { o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1771,6 +1783,7 @@ func (m Errors) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1801,6 +1814,7 @@ func (m Errors) AddSet(ctx context.Context, incr int64, set attribute.Set) { o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -2001,6 +2015,7 @@ func (m FanSpeed) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -2030,6 +2045,7 @@ func (m FanSpeed) RecordSet(ctx context.Context, val int64, set attribute.Set) { o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -2216,6 +2232,7 @@ func (m FanSpeedLimit) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -2245,6 +2262,7 @@ func (m FanSpeedLimit) RecordSet(ctx context.Context, val int64, set attribute.S o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -2443,6 +2461,7 @@ func (m FanSpeedRatio) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -2472,6 +2491,7 @@ func (m FanSpeedRatio) RecordSet(ctx context.Context, val int64, set attribute.S o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -2662,6 +2682,7 @@ func (m GpuIO) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -2692,6 +2713,7 @@ func (m GpuIO) AddSet(ctx context.Context, incr int64, set attribute.Set) { o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -2934,6 +2956,7 @@ func (m GpuMemoryLimit) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -2963,6 +2986,7 @@ func (m GpuMemoryLimit) AddSet(ctx context.Context, incr int64, set attribute.Se o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -3204,6 +3228,7 @@ func (m GpuMemoryUsage) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -3233,6 +3258,7 @@ func (m GpuMemoryUsage) AddSet(ctx context.Context, incr int64, set attribute.Se o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -3475,6 +3501,7 @@ func (m GpuMemoryUtilization) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -3504,6 +3531,7 @@ func (m GpuMemoryUtilization) RecordSet(ctx context.Context, val int64, set attr o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -3747,6 +3775,7 @@ func (m GpuUtilization) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -3776,6 +3805,7 @@ func (m GpuUtilization) RecordSet(ctx context.Context, val int64, set attribute. o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -4030,6 +4060,7 @@ func (m HostAmbientTemperature) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -4059,6 +4090,7 @@ func (m HostAmbientTemperature) RecordSet(ctx context.Context, val int64, set at o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -4239,6 +4271,7 @@ func (m HostEnergy) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -4273,6 +4306,7 @@ func (m HostEnergy) AddSet(ctx context.Context, incr int64, set attribute.Set) { o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -4448,6 +4482,7 @@ func (m HostHeatingMargin) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -4477,6 +4512,7 @@ func (m HostHeatingMargin) RecordSet(ctx context.Context, val int64, set attribu o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -4658,6 +4694,7 @@ func (m HostPower) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -4692,6 +4729,7 @@ func (m HostPower) RecordSet(ctx context.Context, val int64, set attribute.Set) o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -4867,6 +4905,7 @@ func (m LogicalDiskLimit) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -4896,6 +4935,7 @@ func (m LogicalDiskLimit) AddSet(ctx context.Context, incr int64, set attribute. o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -5089,6 +5129,7 @@ func (m LogicalDiskUsage) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -5119,6 +5160,7 @@ func (m LogicalDiskUsage) AddSet(ctx context.Context, incr int64, set attribute. o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -5312,6 +5354,7 @@ func (m LogicalDiskUtilization) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -5342,6 +5385,7 @@ func (m LogicalDiskUtilization) RecordSet(ctx context.Context, val int64, set at o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -5531,6 +5575,7 @@ func (m MemorySize) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -5560,6 +5605,7 @@ func (m MemorySize) AddSet(ctx context.Context, incr int64, set attribute.Set) { o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -5786,6 +5832,7 @@ func (m NetworkBandwidthLimit) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -5815,6 +5862,7 @@ func (m NetworkBandwidthLimit) AddSet(ctx context.Context, incr int64, set attri o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -6059,6 +6107,7 @@ func (m NetworkBandwidthUtilization) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -6088,6 +6137,7 @@ func (m NetworkBandwidthUtilization) RecordSet(ctx context.Context, val int64, s o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -6336,6 +6386,7 @@ func (m NetworkIO) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -6366,6 +6417,7 @@ func (m NetworkIO) AddSet(ctx context.Context, incr int64, set attribute.Set) { o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -6612,6 +6664,7 @@ func (m NetworkPackets) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -6642,6 +6695,7 @@ func (m NetworkPackets) AddSet(ctx context.Context, incr int64, set attribute.Se o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -6884,6 +6938,7 @@ func (m NetworkUp) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -6913,6 +6968,7 @@ func (m NetworkUp) AddSet(ctx context.Context, incr int64, set attribute.Set) { o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -7160,6 +7216,7 @@ func (m PhysicalDiskEnduranceUtilization) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -7190,6 +7247,7 @@ func (m PhysicalDiskEnduranceUtilization) RecordSet(ctx context.Context, val int o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -7433,6 +7491,7 @@ func (m PhysicalDiskSize) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -7462,6 +7521,7 @@ func (m PhysicalDiskSize) AddSet(ctx context.Context, incr int64, set attribute. o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -7708,6 +7768,7 @@ func (m PhysicalDiskSmart) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -7737,6 +7798,7 @@ func (m PhysicalDiskSmart) RecordSet(ctx context.Context, val int64, set attribu o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -8009,6 +8071,7 @@ func (m Power) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -8041,6 +8104,7 @@ func (m Power) RecordSet(ctx context.Context, val int64, set attribute.Set) { o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -8215,6 +8279,7 @@ func (m PowerSupplyLimit) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -8244,6 +8309,7 @@ func (m PowerSupplyLimit) AddSet(ctx context.Context, incr int64, set attribute. o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -8471,6 +8537,7 @@ func (m PowerSupplyUsage) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -8500,6 +8567,7 @@ func (m PowerSupplyUsage) AddSet(ctx context.Context, incr int64, set attribute. o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -8716,6 +8784,7 @@ func (m PowerSupplyUtilization) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -8745,6 +8814,7 @@ func (m PowerSupplyUtilization) RecordSet(ctx context.Context, val int64, set at o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -8977,6 +9047,7 @@ func (m Status) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -9016,6 +9087,7 @@ func (m Status) AddSet(ctx context.Context, incr int64, set attribute.Set) { o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -9190,6 +9262,7 @@ func (m TapeDriveOperations) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -9219,6 +9292,7 @@ func (m TapeDriveOperations) AddSet(ctx context.Context, incr int64, set attribu o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -9448,6 +9522,7 @@ func (m Temperature) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -9477,6 +9552,7 @@ func (m Temperature) RecordSet(ctx context.Context, val int64, set attribute.Set o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -9663,6 +9739,7 @@ func (m TemperatureLimit) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -9692,6 +9769,7 @@ func (m TemperatureLimit) RecordSet(ctx context.Context, val int64, set attribut o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -9891,6 +9969,7 @@ func (m Voltage) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -9920,6 +9999,7 @@ func (m Voltage) RecordSet(ctx context.Context, val int64, set attribute.Set) { o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -10106,6 +10186,7 @@ func (m VoltageLimit) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -10135,6 +10216,7 @@ func (m VoltageLimit) RecordSet(ctx context.Context, val int64, set attribute.Se o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -10333,6 +10415,7 @@ func (m VoltageNominal) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -10362,6 +10445,7 @@ func (m VoltageNominal) RecordSet(ctx context.Context, val int64, set attribute. o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() diff --git a/semconv/v1.41.0/k8sconv/metric.go b/semconv/v1.41.0/k8sconv/metric.go index d1808c4c5..26c0111e1 100644 --- a/semconv/v1.41.0/k8sconv/metric.go +++ b/semconv/v1.41.0/k8sconv/metric.go @@ -390,6 +390,7 @@ func (m ContainerCPULimitCurrent) Add(ctx context.Context, incr int64, attrs ... o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -422,6 +423,7 @@ func (m ContainerCPULimitCurrent) AddSet(ctx context.Context, incr int64, set at o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -572,6 +574,7 @@ func (m ContainerCPULimitDesired) Add(ctx context.Context, incr int64, attrs ... o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -604,6 +607,7 @@ func (m ContainerCPULimitDesired) AddSet(ctx context.Context, incr int64, set at o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -753,6 +757,7 @@ func (m ContainerCPULimitUtilization) Record(ctx context.Context, val int64, att o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -783,6 +788,7 @@ func (m ContainerCPULimitUtilization) RecordSet(ctx context.Context, val int64, o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -935,6 +941,7 @@ func (m ContainerCPURequestCurrent) Add(ctx context.Context, incr int64, attrs . o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -967,6 +974,7 @@ func (m ContainerCPURequestCurrent) AddSet(ctx context.Context, incr int64, set o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1118,6 +1126,7 @@ func (m ContainerCPURequestDesired) Add(ctx context.Context, incr int64, attrs . o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1150,6 +1159,7 @@ func (m ContainerCPURequestDesired) AddSet(ctx context.Context, incr int64, set o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1300,6 +1310,7 @@ func (m ContainerCPURequestUtilization) Record(ctx context.Context, val int64, a o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -1330,6 +1341,7 @@ func (m ContainerCPURequestUtilization) RecordSet(ctx context.Context, val int64 o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -1474,6 +1486,7 @@ func (m ContainerEphemeralStorageLimit) Add(ctx context.Context, incr int64, att o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1498,6 +1511,7 @@ func (m ContainerEphemeralStorageLimit) AddSet(ctx context.Context, incr int64, o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1642,6 +1656,7 @@ func (m ContainerEphemeralStorageRequest) Add(ctx context.Context, incr int64, a o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1666,6 +1681,7 @@ func (m ContainerEphemeralStorageRequest) AddSet(ctx context.Context, incr int64 o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1818,6 +1834,7 @@ func (m ContainerMemoryLimitCurrent) Add(ctx context.Context, incr int64, attrs o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1850,6 +1867,7 @@ func (m ContainerMemoryLimitCurrent) AddSet(ctx context.Context, incr int64, set o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -2002,6 +2020,7 @@ func (m ContainerMemoryLimitDesired) Add(ctx context.Context, incr int64, attrs o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -2034,6 +2053,7 @@ func (m ContainerMemoryLimitDesired) AddSet(ctx context.Context, incr int64, set o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -2186,6 +2206,7 @@ func (m ContainerMemoryRequestCurrent) Add(ctx context.Context, incr int64, attr o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -2218,6 +2239,7 @@ func (m ContainerMemoryRequestCurrent) AddSet(ctx context.Context, incr int64, s o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -2369,6 +2391,7 @@ func (m ContainerMemoryRequestDesired) Add(ctx context.Context, incr int64, attr o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -2401,6 +2424,7 @@ func (m ContainerMemoryRequestDesired) AddSet(ctx context.Context, incr int64, s o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -2545,6 +2569,7 @@ func (m ContainerReady) Add(ctx context.Context, incr int64, attrs ...attribute. o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -2570,6 +2595,7 @@ func (m ContainerReady) AddSet(ctx context.Context, incr int64, set attribute.Se o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -2718,6 +2744,7 @@ func (m ContainerRestartCount) Add(ctx context.Context, incr int64, attrs ...att o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -2748,6 +2775,7 @@ func (m ContainerRestartCount) AddSet(ctx context.Context, incr int64, set attri o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -2905,6 +2933,7 @@ func (m ContainerStatusReason) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -2938,6 +2967,7 @@ func (m ContainerStatusReason) AddSet(ctx context.Context, incr int64, set attri o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -3092,6 +3122,7 @@ func (m ContainerStatusState) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -3125,6 +3156,7 @@ func (m ContainerStatusState) AddSet(ctx context.Context, incr int64, set attrib o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -3267,6 +3299,7 @@ func (m ContainerStorageLimit) Add(ctx context.Context, incr int64, attrs ...att o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -3291,6 +3324,7 @@ func (m ContainerStorageLimit) AddSet(ctx context.Context, incr int64, set attri o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -3432,6 +3466,7 @@ func (m ContainerStorageRequest) Add(ctx context.Context, incr int64, attrs ...a o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -3456,6 +3491,7 @@ func (m ContainerStorageRequest) AddSet(ctx context.Context, incr int64, set att o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -3598,6 +3634,7 @@ func (m CronJobJobActive) Add(ctx context.Context, incr int64, attrs ...attribut o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -3623,6 +3660,7 @@ func (m CronJobJobActive) AddSet(ctx context.Context, incr int64, set attribute. o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -3767,6 +3805,7 @@ func (m DaemonSetNodeCurrentScheduled) Add(ctx context.Context, incr int64, attr o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -3792,6 +3831,7 @@ func (m DaemonSetNodeCurrentScheduled) AddSet(ctx context.Context, incr int64, s o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -3937,6 +3977,7 @@ func (m DaemonSetNodeDesiredScheduled) Add(ctx context.Context, incr int64, attr o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -3962,6 +4003,7 @@ func (m DaemonSetNodeDesiredScheduled) AddSet(ctx context.Context, incr int64, s o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -4107,6 +4149,7 @@ func (m DaemonSetNodeMisscheduled) Add(ctx context.Context, incr int64, attrs .. o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -4132,6 +4175,7 @@ func (m DaemonSetNodeMisscheduled) AddSet(ctx context.Context, incr int64, set a o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -4276,6 +4320,7 @@ func (m DaemonSetNodeReady) Add(ctx context.Context, incr int64, attrs ...attrib o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -4301,6 +4346,7 @@ func (m DaemonSetNodeReady) AddSet(ctx context.Context, incr int64, set attribut o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -4445,6 +4491,7 @@ func (m DeploymentPodAvailable) Add(ctx context.Context, incr int64, attrs ...at o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -4470,6 +4517,7 @@ func (m DeploymentPodAvailable) AddSet(ctx context.Context, incr int64, set attr o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -4613,6 +4661,7 @@ func (m DeploymentPodDesired) Add(ctx context.Context, incr int64, attrs ...attr o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -4638,6 +4687,7 @@ func (m DeploymentPodDesired) AddSet(ctx context.Context, incr int64, set attrib o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -4792,6 +4842,7 @@ func (m HPAMetricTargetCPUAverageUtilization) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -4827,6 +4878,7 @@ func (m HPAMetricTargetCPUAverageUtilization) RecordSet(ctx context.Context, val o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -5013,6 +5065,7 @@ func (m HPAMetricTargetCPUAverageValue) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -5048,6 +5101,7 @@ func (m HPAMetricTargetCPUAverageValue) RecordSet(ctx context.Context, val int64 o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -5231,6 +5285,7 @@ func (m HPAMetricTargetCPUValue) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -5266,6 +5321,7 @@ func (m HPAMetricTargetCPUValue) RecordSet(ctx context.Context, val int64, set a o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -5439,6 +5495,7 @@ func (m HPAPodCurrent) Add(ctx context.Context, incr int64, attrs ...attribute.K o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -5464,6 +5521,7 @@ func (m HPAPodCurrent) AddSet(ctx context.Context, incr int64, set attribute.Set o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -5607,6 +5665,7 @@ func (m HPAPodDesired) Add(ctx context.Context, incr int64, attrs ...attribute.K o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -5632,6 +5691,7 @@ func (m HPAPodDesired) AddSet(ctx context.Context, incr int64, set attribute.Set o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -5774,6 +5834,7 @@ func (m HPAPodMax) Add(ctx context.Context, incr int64, attrs ...attribute.KeyVa o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -5799,6 +5860,7 @@ func (m HPAPodMax) AddSet(ctx context.Context, incr int64, set attribute.Set) { o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -5940,6 +6002,7 @@ func (m HPAPodMin) Add(ctx context.Context, incr int64, attrs ...attribute.KeyVa o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -5965,6 +6028,7 @@ func (m HPAPodMin) AddSet(ctx context.Context, incr int64, set attribute.Set) { o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -6106,6 +6170,7 @@ func (m JobPodActive) Add(ctx context.Context, incr int64, attrs ...attribute.Ke o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -6131,6 +6196,7 @@ func (m JobPodActive) AddSet(ctx context.Context, incr int64, set attribute.Set) o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -6273,6 +6339,7 @@ func (m JobPodDesiredSuccessful) Add(ctx context.Context, incr int64, attrs ...a o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -6298,6 +6365,7 @@ func (m JobPodDesiredSuccessful) AddSet(ctx context.Context, incr int64, set att o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -6441,6 +6509,7 @@ func (m JobPodFailed) Add(ctx context.Context, incr int64, attrs ...attribute.Ke o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -6466,6 +6535,7 @@ func (m JobPodFailed) AddSet(ctx context.Context, incr int64, set attribute.Set) o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -6607,6 +6677,7 @@ func (m JobPodMaxParallel) Add(ctx context.Context, incr int64, attrs ...attribu o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -6632,6 +6703,7 @@ func (m JobPodMaxParallel) AddSet(ctx context.Context, incr int64, set attribute o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -6775,6 +6847,7 @@ func (m JobPodSuccessful) Add(ctx context.Context, incr int64, attrs ...attribut o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -6800,6 +6873,7 @@ func (m JobPodSuccessful) AddSet(ctx context.Context, incr int64, set attribute. o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -6946,6 +7020,7 @@ func (m NamespacePhase) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -6975,6 +7050,7 @@ func (m NamespacePhase) AddSet(ctx context.Context, incr int64, set attribute.Se o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -7129,6 +7205,7 @@ func (m NodeConditionStatus) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -7163,6 +7240,7 @@ func (m NodeConditionStatus) AddSet(ctx context.Context, incr int64, set attribu o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -7300,6 +7378,7 @@ func (m NodeCPUAllocatable) Add(ctx context.Context, incr int64, attrs ...attrib o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -7320,6 +7399,7 @@ func (m NodeCPUAllocatable) AddSet(ctx context.Context, incr int64, set attribut o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -7459,6 +7539,7 @@ func (m NodeCPUTime) Add(ctx context.Context, incr float64, attrs ...attribute.K o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -7481,6 +7562,7 @@ func (m NodeCPUTime) AddSet(ctx context.Context, incr float64, set attribute.Set o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -7620,6 +7702,7 @@ func (m NodeCPUUsage) Record(ctx context.Context, val int64, attrs ...attribute. o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -7643,6 +7726,7 @@ func (m NodeCPUUsage) RecordSet(ctx context.Context, val int64, set attribute.Se o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -7782,6 +7866,7 @@ func (m NodeEphemeralStorageAllocatable) Add(ctx context.Context, incr int64, at o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -7802,6 +7887,7 @@ func (m NodeEphemeralStorageAllocatable) AddSet(ctx context.Context, incr int64, o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -7948,6 +8034,7 @@ func (m NodeFilesystemAvailable) Add(ctx context.Context, incr int64, attrs ...a o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -7976,6 +8063,7 @@ func (m NodeFilesystemAvailable) AddSet(ctx context.Context, incr int64, set att o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -8121,6 +8209,7 @@ func (m NodeFilesystemCapacity) Add(ctx context.Context, incr int64, attrs ...at o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -8149,6 +8238,7 @@ func (m NodeFilesystemCapacity) AddSet(ctx context.Context, incr int64, set attr o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -8296,6 +8386,7 @@ func (m NodeFilesystemUsage) Add(ctx context.Context, incr int64, attrs ...attri o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -8326,6 +8417,7 @@ func (m NodeFilesystemUsage) AddSet(ctx context.Context, incr int64, set attribu o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -8463,6 +8555,7 @@ func (m NodeMemoryAllocatable) Add(ctx context.Context, incr int64, attrs ...att o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -8483,6 +8576,7 @@ func (m NodeMemoryAllocatable) AddSet(ctx context.Context, incr int64, set attri o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -8628,6 +8722,7 @@ func (m NodeMemoryAvailable) Add(ctx context.Context, incr int64, attrs ...attri o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -8656,6 +8751,7 @@ func (m NodeMemoryAvailable) AddSet(ctx context.Context, incr int64, set attribu o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -8808,6 +8904,7 @@ func (m NodeMemoryPagingFaults) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -8843,6 +8940,7 @@ func (m NodeMemoryPagingFaults) AddSet(ctx context.Context, incr int64, set attr o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -9001,6 +9099,7 @@ func (m NodeMemoryRss) Add(ctx context.Context, incr int64, attrs ...attribute.K o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -9029,6 +9128,7 @@ func (m NodeMemoryRss) AddSet(ctx context.Context, incr int64, set attribute.Set o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -9167,6 +9267,7 @@ func (m NodeMemoryUsage) Record(ctx context.Context, val int64, attrs ...attribu o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -9189,6 +9290,7 @@ func (m NodeMemoryUsage) RecordSet(ctx context.Context, val int64, set attribute o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -9334,6 +9436,7 @@ func (m NodeMemoryWorkingSet) Add(ctx context.Context, incr int64, attrs ...attr o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -9362,6 +9465,7 @@ func (m NodeMemoryWorkingSet) AddSet(ctx context.Context, incr int64, set attrib o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -9505,6 +9609,7 @@ func (m NodeNetworkErrors) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -9531,6 +9636,7 @@ func (m NodeNetworkErrors) AddSet(ctx context.Context, incr int64, set attribute o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -9702,6 +9808,7 @@ func (m NodeNetworkIO) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -9728,6 +9835,7 @@ func (m NodeNetworkIO) AddSet(ctx context.Context, incr int64, set attribute.Set o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -9892,6 +10000,7 @@ func (m NodePodAllocatable) Add(ctx context.Context, incr int64, attrs ...attrib o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -9912,6 +10021,7 @@ func (m NodePodAllocatable) AddSet(ctx context.Context, incr int64, set attribut o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -10057,6 +10167,7 @@ func (m NodeSystemContainerCPUTime) Add(ctx context.Context, incr float64, attrs o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -10084,6 +10195,7 @@ func (m NodeSystemContainerCPUTime) AddSet(ctx context.Context, incr float64, se o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -10229,6 +10341,7 @@ func (m NodeSystemContainerCPUUsage) Record(ctx context.Context, val int64, attr o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -10256,6 +10369,7 @@ func (m NodeSystemContainerCPUUsage) RecordSet(ctx context.Context, val int64, s o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -10402,6 +10516,7 @@ func (m NodeSystemContainerMemoryUsage) Add(ctx context.Context, incr int64, att o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -10429,6 +10544,7 @@ func (m NodeSystemContainerMemoryUsage) AddSet(ctx context.Context, incr int64, o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -10574,6 +10690,7 @@ func (m NodeSystemContainerMemoryWorkingSet) Add(ctx context.Context, incr int64 o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -10601,6 +10718,7 @@ func (m NodeSystemContainerMemoryWorkingSet) AddSet(ctx context.Context, incr in o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -10742,6 +10860,7 @@ func (m NodeUptime) Record(ctx context.Context, val float64, attrs ...attribute. o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -10766,6 +10885,7 @@ func (m NodeUptime) RecordSet(ctx context.Context, val float64, set attribute.Se o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -10919,6 +11039,7 @@ func (m PersistentvolumeStatusPhase) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -10955,6 +11076,7 @@ func (m PersistentvolumeStatusPhase) AddSet(ctx context.Context, incr int64, set o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -11098,6 +11220,7 @@ func (m PersistentvolumeStorageCapacity) Add(ctx context.Context, incr int64, at o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -11123,6 +11246,7 @@ func (m PersistentvolumeStorageCapacity) AddSet(ctx context.Context, incr int64, o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -11280,6 +11404,7 @@ func (m PersistentvolumeclaimStatusPhase) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -11316,6 +11441,7 @@ func (m PersistentvolumeclaimStatusPhase) AddSet(ctx context.Context, incr int64 o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -11463,6 +11589,7 @@ func (m PersistentvolumeclaimStorageCapacity) Add(ctx context.Context, incr int6 o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -11490,6 +11617,7 @@ func (m PersistentvolumeclaimStorageCapacity) AddSet(ctx context.Context, incr i o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -11634,6 +11762,7 @@ func (m PersistentvolumeclaimStorageRequest) Add(ctx context.Context, incr int64 o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -11659,6 +11788,7 @@ func (m PersistentvolumeclaimStorageRequest) AddSet(ctx context.Context, incr in o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -11799,6 +11929,7 @@ func (m PodCPUTime) Add(ctx context.Context, incr float64, attrs ...attribute.Ke o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -11821,6 +11952,7 @@ func (m PodCPUTime) AddSet(ctx context.Context, incr float64, set attribute.Set) o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -11960,6 +12092,7 @@ func (m PodCPUUsage) Record(ctx context.Context, val int64, attrs ...attribute.K o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -11983,6 +12116,7 @@ func (m PodCPUUsage) RecordSet(ctx context.Context, val int64, set attribute.Set o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -12127,6 +12261,7 @@ func (m PodFilesystemAvailable) Add(ctx context.Context, incr int64, attrs ...at o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -12155,6 +12290,7 @@ func (m PodFilesystemAvailable) AddSet(ctx context.Context, incr int64, set attr o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -12300,6 +12436,7 @@ func (m PodFilesystemCapacity) Add(ctx context.Context, incr int64, attrs ...att o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -12328,6 +12465,7 @@ func (m PodFilesystemCapacity) AddSet(ctx context.Context, incr int64, set attri o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -12475,6 +12613,7 @@ func (m PodFilesystemUsage) Add(ctx context.Context, incr int64, attrs ...attrib o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -12505,6 +12644,7 @@ func (m PodFilesystemUsage) AddSet(ctx context.Context, incr int64, set attribut o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -12650,6 +12790,7 @@ func (m PodMemoryAvailable) Add(ctx context.Context, incr int64, attrs ...attrib o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -12678,6 +12819,7 @@ func (m PodMemoryAvailable) AddSet(ctx context.Context, incr int64, set attribut o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -12830,6 +12972,7 @@ func (m PodMemoryPagingFaults) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -12865,6 +13008,7 @@ func (m PodMemoryPagingFaults) AddSet(ctx context.Context, incr int64, set attri o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -13023,6 +13167,7 @@ func (m PodMemoryRss) Add(ctx context.Context, incr int64, attrs ...attribute.Ke o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -13051,6 +13196,7 @@ func (m PodMemoryRss) AddSet(ctx context.Context, incr int64, set attribute.Set) o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -13189,6 +13335,7 @@ func (m PodMemoryUsage) Record(ctx context.Context, val int64, attrs ...attribut o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -13211,6 +13358,7 @@ func (m PodMemoryUsage) RecordSet(ctx context.Context, val int64, set attribute. o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -13355,6 +13503,7 @@ func (m PodMemoryWorkingSet) Add(ctx context.Context, incr int64, attrs ...attri o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -13383,6 +13532,7 @@ func (m PodMemoryWorkingSet) AddSet(ctx context.Context, incr int64, set attribu o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -13526,6 +13676,7 @@ func (m PodNetworkErrors) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -13552,6 +13703,7 @@ func (m PodNetworkErrors) AddSet(ctx context.Context, incr int64, set attribute. o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -13723,6 +13875,7 @@ func (m PodNetworkIO) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -13749,6 +13902,7 @@ func (m PodNetworkIO) AddSet(ctx context.Context, incr int64, set attribute.Set) o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -13929,6 +14083,7 @@ func (m PodStatusPhase) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -13962,6 +14117,7 @@ func (m PodStatusPhase) AddSet(ctx context.Context, incr int64, set attribute.Se o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -14114,6 +14270,7 @@ func (m PodStatusReason) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -14147,6 +14304,7 @@ func (m PodStatusReason) AddSet(ctx context.Context, incr int64, set attribute.S o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -14289,6 +14447,7 @@ func (m PodUptime) Record(ctx context.Context, val float64, attrs ...attribute.K o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -14313,6 +14472,7 @@ func (m PodUptime) RecordSet(ctx context.Context, val float64, set attribute.Set o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -14468,6 +14628,7 @@ func (m PodVolumeAvailable) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -14505,6 +14666,7 @@ func (m PodVolumeAvailable) AddSet(ctx context.Context, incr int64, set attribut o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -14673,6 +14835,7 @@ func (m PodVolumeCapacity) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -14710,6 +14873,7 @@ func (m PodVolumeCapacity) AddSet(ctx context.Context, incr int64, set attribute o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -14878,6 +15042,7 @@ func (m PodVolumeInodeCount) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -14915,6 +15080,7 @@ func (m PodVolumeInodeCount) AddSet(ctx context.Context, incr int64, set attribu o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -15083,6 +15249,7 @@ func (m PodVolumeInodeFree) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -15120,6 +15287,7 @@ func (m PodVolumeInodeFree) AddSet(ctx context.Context, incr int64, set attribut o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -15291,6 +15459,7 @@ func (m PodVolumeInodeUsed) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -15331,6 +15500,7 @@ func (m PodVolumeInodeUsed) AddSet(ctx context.Context, incr int64, set attribut o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -15501,6 +15671,7 @@ func (m PodVolumeUsage) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -15540,6 +15711,7 @@ func (m PodVolumeUsage) AddSet(ctx context.Context, incr int64, set attribute.Se o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -15694,6 +15866,7 @@ func (m ReplicaSetPodAvailable) Add(ctx context.Context, incr int64, attrs ...at o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -15719,6 +15892,7 @@ func (m ReplicaSetPodAvailable) AddSet(ctx context.Context, incr int64, set attr o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -15862,6 +16036,7 @@ func (m ReplicaSetPodDesired) Add(ctx context.Context, incr int64, attrs ...attr o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -15887,6 +16062,7 @@ func (m ReplicaSetPodDesired) AddSet(ctx context.Context, incr int64, set attrib o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -16031,6 +16207,7 @@ func (m ReplicationControllerPodAvailable) Add(ctx context.Context, incr int64, o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -16056,6 +16233,7 @@ func (m ReplicationControllerPodAvailable) AddSet(ctx context.Context, incr int6 o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -16201,6 +16379,7 @@ func (m ReplicationControllerPodDesired) Add(ctx context.Context, incr int64, at o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -16226,6 +16405,7 @@ func (m ReplicationControllerPodDesired) AddSet(ctx context.Context, incr int64, o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -16372,6 +16552,7 @@ func (m ResourceQuotaCPULimitHard) Add(ctx context.Context, incr int64, attrs .. o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -16397,6 +16578,7 @@ func (m ResourceQuotaCPULimitHard) AddSet(ctx context.Context, incr int64, set a o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -16544,6 +16726,7 @@ func (m ResourceQuotaCPULimitUsed) Add(ctx context.Context, incr int64, attrs .. o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -16569,6 +16752,7 @@ func (m ResourceQuotaCPULimitUsed) AddSet(ctx context.Context, incr int64, set a o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -16716,6 +16900,7 @@ func (m ResourceQuotaCPURequestHard) Add(ctx context.Context, incr int64, attrs o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -16741,6 +16926,7 @@ func (m ResourceQuotaCPURequestHard) AddSet(ctx context.Context, incr int64, set o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -16888,6 +17074,7 @@ func (m ResourceQuotaCPURequestUsed) Add(ctx context.Context, incr int64, attrs o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -16913,6 +17100,7 @@ func (m ResourceQuotaCPURequestUsed) AddSet(ctx context.Context, incr int64, set o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -17061,6 +17249,7 @@ func (m ResourceQuotaEphemeralStorageLimitHard) Add(ctx context.Context, incr in o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -17086,6 +17275,7 @@ func (m ResourceQuotaEphemeralStorageLimitHard) AddSet(ctx context.Context, incr o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -17235,6 +17425,7 @@ func (m ResourceQuotaEphemeralStorageLimitUsed) Add(ctx context.Context, incr in o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -17260,6 +17451,7 @@ func (m ResourceQuotaEphemeralStorageLimitUsed) AddSet(ctx context.Context, incr o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -17409,6 +17601,7 @@ func (m ResourceQuotaEphemeralStorageRequestHard) Add(ctx context.Context, incr o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -17434,6 +17627,7 @@ func (m ResourceQuotaEphemeralStorageRequestHard) AddSet(ctx context.Context, in o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -17583,6 +17777,7 @@ func (m ResourceQuotaEphemeralStorageRequestUsed) Add(ctx context.Context, incr o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -17608,6 +17803,7 @@ func (m ResourceQuotaEphemeralStorageRequestUsed) AddSet(ctx context.Context, in o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -17766,6 +17962,7 @@ func (m ResourceQuotaHugepageCountRequestHard) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -17800,6 +17997,7 @@ func (m ResourceQuotaHugepageCountRequestHard) AddSet(ctx context.Context, incr o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -17958,6 +18156,7 @@ func (m ResourceQuotaHugepageCountRequestUsed) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -17992,6 +18191,7 @@ func (m ResourceQuotaHugepageCountRequestUsed) AddSet(ctx context.Context, incr o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -18140,6 +18340,7 @@ func (m ResourceQuotaMemoryLimitHard) Add(ctx context.Context, incr int64, attrs o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -18165,6 +18366,7 @@ func (m ResourceQuotaMemoryLimitHard) AddSet(ctx context.Context, incr int64, se o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -18312,6 +18514,7 @@ func (m ResourceQuotaMemoryLimitUsed) Add(ctx context.Context, incr int64, attrs o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -18337,6 +18540,7 @@ func (m ResourceQuotaMemoryLimitUsed) AddSet(ctx context.Context, incr int64, se o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -18484,6 +18688,7 @@ func (m ResourceQuotaMemoryRequestHard) Add(ctx context.Context, incr int64, att o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -18509,6 +18714,7 @@ func (m ResourceQuotaMemoryRequestHard) AddSet(ctx context.Context, incr int64, o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -18657,6 +18863,7 @@ func (m ResourceQuotaMemoryRequestUsed) Add(ctx context.Context, incr int64, att o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -18682,6 +18889,7 @@ func (m ResourceQuotaMemoryRequestUsed) AddSet(ctx context.Context, incr int64, o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -18840,6 +19048,7 @@ func (m ResourceQuotaObjectCountHard) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -18874,6 +19083,7 @@ func (m ResourceQuotaObjectCountHard) AddSet(ctx context.Context, incr int64, se o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -19031,6 +19241,7 @@ func (m ResourceQuotaObjectCountUsed) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -19065,6 +19276,7 @@ func (m ResourceQuotaObjectCountUsed) AddSet(ctx context.Context, incr int64, se o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -19224,6 +19436,7 @@ func (m ResourceQuotaPersistentvolumeclaimCountHard) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -19259,6 +19472,7 @@ func (m ResourceQuotaPersistentvolumeclaimCountHard) AddSet(ctx context.Context, o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -19438,6 +19652,7 @@ func (m ResourceQuotaPersistentvolumeclaimCountUsed) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -19473,6 +19688,7 @@ func (m ResourceQuotaPersistentvolumeclaimCountUsed) AddSet(ctx context.Context, o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -19650,6 +19866,7 @@ func (m ResourceQuotaStorageRequestHard) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -19685,6 +19902,7 @@ func (m ResourceQuotaStorageRequestHard) AddSet(ctx context.Context, incr int64, o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -19861,6 +20079,7 @@ func (m ResourceQuotaStorageRequestUsed) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -19896,6 +20115,7 @@ func (m ResourceQuotaStorageRequestUsed) AddSet(ctx context.Context, incr int64, o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -20100,6 +20320,7 @@ func (m ServiceEndpointCount) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -20160,6 +20381,7 @@ func (m ServiceEndpointCount) RecordSet(ctx context.Context, val int64, set attr o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -20334,6 +20556,7 @@ func (m ServiceLoadBalancerIngressCount) Record(ctx context.Context, val int64, o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -20374,6 +20597,7 @@ func (m ServiceLoadBalancerIngressCount) RecordSet(ctx context.Context, val int6 o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -20518,6 +20742,7 @@ func (m StatefulSetPodCurrent) Add(ctx context.Context, incr int64, attrs ...att o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -20543,6 +20768,7 @@ func (m StatefulSetPodCurrent) AddSet(ctx context.Context, incr int64, set attri o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -20686,6 +20912,7 @@ func (m StatefulSetPodDesired) Add(ctx context.Context, incr int64, attrs ...att o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -20711,6 +20938,7 @@ func (m StatefulSetPodDesired) AddSet(ctx context.Context, incr int64, set attri o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -20853,6 +21081,7 @@ func (m StatefulSetPodReady) Add(ctx context.Context, incr int64, attrs ...attri o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -20878,6 +21107,7 @@ func (m StatefulSetPodReady) AddSet(ctx context.Context, incr int64, set attribu o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -21022,6 +21252,7 @@ func (m StatefulSetPodUpdated) Add(ctx context.Context, incr int64, attrs ...att o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -21047,6 +21278,7 @@ func (m StatefulSetPodUpdated) AddSet(ctx context.Context, incr int64, set attri o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() diff --git a/semconv/v1.41.0/mcpconv/metric.go b/semconv/v1.41.0/mcpconv/metric.go index 575a19b0e..19e8713c8 100644 --- a/semconv/v1.41.0/mcpconv/metric.go +++ b/semconv/v1.41.0/mcpconv/metric.go @@ -242,6 +242,7 @@ func (m ClientOperationDuration) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -271,6 +272,7 @@ func (m ClientOperationDuration) RecordSet(ctx context.Context, val float64, set o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -448,6 +450,7 @@ func (m ClientSessionDuration) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -474,6 +477,7 @@ func (m ClientSessionDuration) RecordSet(ctx context.Context, val float64, set a o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -624,6 +628,7 @@ func (m ServerOperationDuration) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -653,6 +658,7 @@ func (m ServerOperationDuration) RecordSet(ctx context.Context, val float64, set o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -817,6 +823,7 @@ func (m ServerSessionDuration) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -843,6 +850,7 @@ func (m ServerSessionDuration) RecordSet(ctx context.Context, val float64, set a o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() diff --git a/semconv/v1.41.0/messagingconv/metric.go b/semconv/v1.41.0/messagingconv/metric.go index 07787529c..1bec17aa5 100644 --- a/semconv/v1.41.0/messagingconv/metric.go +++ b/semconv/v1.41.0/messagingconv/metric.go @@ -181,6 +181,7 @@ func (m ClientConsumedMessages) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -218,6 +219,7 @@ func (m ClientConsumedMessages) AddSet(ctx context.Context, incr int64, set attr o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -487,6 +489,7 @@ func (m ClientOperationDuration) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -520,6 +523,7 @@ func (m ClientOperationDuration) RecordSet(ctx context.Context, val float64, set o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -680,6 +684,7 @@ func (m ClientSentMessages) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -713,6 +718,7 @@ func (m ClientSentMessages) AddSet(ctx context.Context, incr int64, set attribut o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -953,6 +959,7 @@ func (m ProcessDuration) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -986,6 +993,7 @@ func (m ProcessDuration) RecordSet(ctx context.Context, val float64, set attribu o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() diff --git a/semconv/v1.41.0/nfsconv/metric.go b/semconv/v1.41.0/nfsconv/metric.go index f3cf7c544..49e9d41ad 100644 --- a/semconv/v1.41.0/nfsconv/metric.go +++ b/semconv/v1.41.0/nfsconv/metric.go @@ -145,6 +145,7 @@ func (m ClientNetCount) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -174,6 +175,7 @@ func (m ClientNetCount) AddSet(ctx context.Context, incr int64, set attribute.Se o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -335,6 +337,7 @@ func (m ClientNetTCPConnectionAccepted) Add(ctx context.Context, incr int64, att o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -357,6 +360,7 @@ func (m ClientNetTCPConnectionAccepted) AddSet(ctx context.Context, incr int64, o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -501,6 +505,7 @@ func (m ClientOperationCount) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -527,6 +532,7 @@ func (m ClientOperationCount) AddSet(ctx context.Context, incr int64, set attrib o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -694,6 +700,7 @@ func (m ClientProcedureCount) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -720,6 +727,7 @@ func (m ClientProcedureCount) AddSet(ctx context.Context, incr int64, set attrib o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -887,6 +895,7 @@ func (m ClientRPCAuthrefreshCount) Add(ctx context.Context, incr int64, attrs .. o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -909,6 +918,7 @@ func (m ClientRPCAuthrefreshCount) AddSet(ctx context.Context, incr int64, set a o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1050,6 +1060,7 @@ func (m ClientRPCCount) Add(ctx context.Context, incr int64, attrs ...attribute. o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1072,6 +1083,7 @@ func (m ClientRPCCount) AddSet(ctx context.Context, incr int64, set attribute.Se o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1211,6 +1223,7 @@ func (m ClientRPCRetransmitCount) Add(ctx context.Context, incr int64, attrs ... o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1233,6 +1246,7 @@ func (m ClientRPCRetransmitCount) AddSet(ctx context.Context, incr int64, set at o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1374,6 +1388,7 @@ func (m ServerFhStaleCount) Add(ctx context.Context, incr int64, attrs ...attrib o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1397,6 +1412,7 @@ func (m ServerFhStaleCount) AddSet(ctx context.Context, incr int64, set attribut o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1544,6 +1560,7 @@ func (m ServerIO) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1573,6 +1590,7 @@ func (m ServerIO) AddSet(ctx context.Context, incr int64, set attribute.Set) { o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1733,6 +1751,7 @@ func (m ServerNetCount) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1762,6 +1781,7 @@ func (m ServerNetCount) AddSet(ctx context.Context, incr int64, set attribute.Se o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1923,6 +1943,7 @@ func (m ServerNetTCPConnectionAccepted) Add(ctx context.Context, incr int64, att o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1945,6 +1966,7 @@ func (m ServerNetTCPConnectionAccepted) AddSet(ctx context.Context, incr int64, o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -2089,6 +2111,7 @@ func (m ServerOperationCount) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -2115,6 +2138,7 @@ func (m ServerOperationCount) AddSet(ctx context.Context, incr int64, set attrib o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -2282,6 +2306,7 @@ func (m ServerProcedureCount) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -2308,6 +2333,7 @@ func (m ServerProcedureCount) AddSet(ctx context.Context, incr int64, set attrib o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -2478,6 +2504,7 @@ func (m ServerRepcacheRequests) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -2504,6 +2531,7 @@ func (m ServerRepcacheRequests) AddSet(ctx context.Context, incr int64, set attr o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -2669,6 +2697,7 @@ func (m ServerRPCCount) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -2700,6 +2729,7 @@ func (m ServerRPCCount) AddSet(ctx context.Context, incr int64, set attribute.Se o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -2852,6 +2882,7 @@ func (m ServerThreadCount) Add(ctx context.Context, incr int64, attrs ...attribu o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -2874,6 +2905,7 @@ func (m ServerThreadCount) AddSet(ctx context.Context, incr int64, set attribute o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() diff --git a/semconv/v1.41.0/openshiftconv/metric.go b/semconv/v1.41.0/openshiftconv/metric.go index dafad5a6a..e3a584bee 100644 --- a/semconv/v1.41.0/openshiftconv/metric.go +++ b/semconv/v1.41.0/openshiftconv/metric.go @@ -100,6 +100,7 @@ func (m ClusterquotaCPULimitHard) Add(ctx context.Context, incr int64, attrs ... o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -128,6 +129,7 @@ func (m ClusterquotaCPULimitHard) AddSet(ctx context.Context, incr int64, set at o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -275,6 +277,7 @@ func (m ClusterquotaCPULimitUsed) Add(ctx context.Context, incr int64, attrs ... o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -303,6 +306,7 @@ func (m ClusterquotaCPULimitUsed) AddSet(ctx context.Context, incr int64, set at o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -451,6 +455,7 @@ func (m ClusterquotaCPURequestHard) Add(ctx context.Context, incr int64, attrs . o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -479,6 +484,7 @@ func (m ClusterquotaCPURequestHard) AddSet(ctx context.Context, incr int64, set o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -627,6 +633,7 @@ func (m ClusterquotaCPURequestUsed) Add(ctx context.Context, incr int64, attrs . o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -655,6 +662,7 @@ func (m ClusterquotaCPURequestUsed) AddSet(ctx context.Context, incr int64, set o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -803,6 +811,7 @@ func (m ClusterquotaEphemeralStorageLimitHard) Add(ctx context.Context, incr int o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -831,6 +840,7 @@ func (m ClusterquotaEphemeralStorageLimitHard) AddSet(ctx context.Context, incr o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -979,6 +989,7 @@ func (m ClusterquotaEphemeralStorageLimitUsed) Add(ctx context.Context, incr int o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1007,6 +1018,7 @@ func (m ClusterquotaEphemeralStorageLimitUsed) AddSet(ctx context.Context, incr o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1156,6 +1168,7 @@ func (m ClusterquotaEphemeralStorageRequestHard) Add(ctx context.Context, incr i o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1184,6 +1197,7 @@ func (m ClusterquotaEphemeralStorageRequestHard) AddSet(ctx context.Context, inc o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1333,6 +1347,7 @@ func (m ClusterquotaEphemeralStorageRequestUsed) Add(ctx context.Context, incr i o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1361,6 +1376,7 @@ func (m ClusterquotaEphemeralStorageRequestUsed) AddSet(ctx context.Context, inc o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1519,6 +1535,7 @@ func (m ClusterquotaHugepageCountRequestHard) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1556,6 +1573,7 @@ func (m ClusterquotaHugepageCountRequestHard) AddSet(ctx context.Context, incr i o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1713,6 +1731,7 @@ func (m ClusterquotaHugepageCountRequestUsed) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1750,6 +1769,7 @@ func (m ClusterquotaHugepageCountRequestUsed) AddSet(ctx context.Context, incr i o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1899,6 +1919,7 @@ func (m ClusterquotaMemoryLimitHard) Add(ctx context.Context, incr int64, attrs o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1927,6 +1948,7 @@ func (m ClusterquotaMemoryLimitHard) AddSet(ctx context.Context, incr int64, set o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -2075,6 +2097,7 @@ func (m ClusterquotaMemoryLimitUsed) Add(ctx context.Context, incr int64, attrs o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -2103,6 +2126,7 @@ func (m ClusterquotaMemoryLimitUsed) AddSet(ctx context.Context, incr int64, set o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -2251,6 +2275,7 @@ func (m ClusterquotaMemoryRequestHard) Add(ctx context.Context, incr int64, attr o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -2279,6 +2304,7 @@ func (m ClusterquotaMemoryRequestHard) AddSet(ctx context.Context, incr int64, s o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -2427,6 +2453,7 @@ func (m ClusterquotaMemoryRequestUsed) Add(ctx context.Context, incr int64, attr o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -2455,6 +2482,7 @@ func (m ClusterquotaMemoryRequestUsed) AddSet(ctx context.Context, incr int64, s o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -2613,6 +2641,7 @@ func (m ClusterquotaObjectCountHard) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -2650,6 +2679,7 @@ func (m ClusterquotaObjectCountHard) AddSet(ctx context.Context, incr int64, set o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -2808,6 +2838,7 @@ func (m ClusterquotaObjectCountUsed) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -2845,6 +2876,7 @@ func (m ClusterquotaObjectCountUsed) AddSet(ctx context.Context, incr int64, set o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -3004,6 +3036,7 @@ func (m ClusterquotaPersistentvolumeclaimCountHard) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -3042,6 +3075,7 @@ func (m ClusterquotaPersistentvolumeclaimCountHard) AddSet(ctx context.Context, o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -3220,6 +3254,7 @@ func (m ClusterquotaPersistentvolumeclaimCountUsed) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -3258,6 +3293,7 @@ func (m ClusterquotaPersistentvolumeclaimCountUsed) AddSet(ctx context.Context, o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -3435,6 +3471,7 @@ func (m ClusterquotaStorageRequestHard) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -3473,6 +3510,7 @@ func (m ClusterquotaStorageRequestHard) AddSet(ctx context.Context, incr int64, o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -3649,6 +3687,7 @@ func (m ClusterquotaStorageRequestUsed) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -3687,6 +3726,7 @@ func (m ClusterquotaStorageRequestUsed) AddSet(ctx context.Context, incr int64, o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() diff --git a/semconv/v1.41.0/otelconv/metric.go b/semconv/v1.41.0/otelconv/metric.go index cdef553f9..d50e19849 100644 --- a/semconv/v1.41.0/otelconv/metric.go +++ b/semconv/v1.41.0/otelconv/metric.go @@ -207,6 +207,7 @@ func (m SDKExporterLogExported) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -241,6 +242,7 @@ func (m SDKExporterLogExported) AddSet(ctx context.Context, incr int64, set attr o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -457,6 +459,7 @@ func (m SDKExporterLogInflight) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -486,6 +489,7 @@ func (m SDKExporterLogInflight) AddSet(ctx context.Context, incr int64, set attr o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -694,6 +698,7 @@ func (m SDKExporterMetricDataPointExported) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -728,6 +733,7 @@ func (m SDKExporterMetricDataPointExported) AddSet(ctx context.Context, incr int o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -946,6 +952,7 @@ func (m SDKExporterMetricDataPointInflight) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -975,6 +982,7 @@ func (m SDKExporterMetricDataPointInflight) AddSet(ctx context.Context, incr int o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1185,6 +1193,7 @@ func (m SDKExporterOperationDuration) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -1221,6 +1230,7 @@ func (m SDKExporterOperationDuration) RecordSet(ctx context.Context, val float64 o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -1362,6 +1372,7 @@ func (m SDKExporterSpanExported) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1396,6 +1407,7 @@ func (m SDKExporterSpanExported) AddSet(ctx context.Context, incr int64, set att o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1612,6 +1624,7 @@ func (m SDKExporterSpanInflight) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1641,6 +1654,7 @@ func (m SDKExporterSpanInflight) AddSet(ctx context.Context, incr int64, set att o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1834,6 +1848,7 @@ func (m SDKLogCreated) Add(ctx context.Context, incr int64, attrs ...attribute.K o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1854,6 +1869,7 @@ func (m SDKLogCreated) AddSet(ctx context.Context, incr int64, set attribute.Set o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -2004,6 +2020,7 @@ func (m SDKMetricReaderCollectionDuration) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -2036,6 +2053,7 @@ func (m SDKMetricReaderCollectionDuration) RecordSet(ctx context.Context, val fl o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -2148,6 +2166,7 @@ func (m SDKProcessorLogProcessed) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -2180,6 +2199,7 @@ func (m SDKProcessorLogProcessed) AddSet(ctx context.Context, incr int64, set at o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -2523,6 +2543,7 @@ func (m SDKProcessorSpanProcessed) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -2555,6 +2576,7 @@ func (m SDKProcessorSpanProcessed) AddSet(ctx context.Context, incr int64, set a o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -2892,6 +2914,7 @@ func (m SDKSpanLive) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -2918,6 +2941,7 @@ func (m SDKSpanLive) AddSet(ctx context.Context, incr int64, set attribute.Set) o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -3078,6 +3102,7 @@ func (m SDKSpanStarted) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -3107,6 +3132,7 @@ func (m SDKSpanStarted) AddSet(ctx context.Context, incr int64, set attribute.Se o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() diff --git a/semconv/v1.41.0/processconv/metric.go b/semconv/v1.41.0/processconv/metric.go index f808c8b2c..84ea00e7e 100644 --- a/semconv/v1.41.0/processconv/metric.go +++ b/semconv/v1.41.0/processconv/metric.go @@ -180,6 +180,7 @@ func (m ContextSwitches) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -209,6 +210,7 @@ func (m ContextSwitches) AddSet(ctx context.Context, incr int64, set attribute.S o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -414,6 +416,7 @@ func (m CPUUtilization) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -443,6 +446,7 @@ func (m CPUUtilization) RecordSet(ctx context.Context, val int64, set attribute. o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -589,6 +593,7 @@ func (m DiskIO) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -618,6 +623,7 @@ func (m DiskIO) AddSet(ctx context.Context, incr int64, set attribute.Set) { o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -754,6 +760,7 @@ func (m MemoryUsage) Add(ctx context.Context, incr int64, attrs ...attribute.Key o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -774,6 +781,7 @@ func (m MemoryUsage) AddSet(ctx context.Context, incr int64, set attribute.Set) o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -910,6 +918,7 @@ func (m MemoryVirtual) Add(ctx context.Context, incr int64, attrs ...attribute.K o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -930,6 +939,7 @@ func (m MemoryVirtual) AddSet(ctx context.Context, incr int64, set attribute.Set o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1075,6 +1085,7 @@ func (m NetworkIO) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1104,6 +1115,7 @@ func (m NetworkIO) AddSet(ctx context.Context, incr int64, set attribute.Set) { o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1246,6 +1258,7 @@ func (m PagingFaults) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1272,6 +1285,7 @@ func (m PagingFaults) AddSet(ctx context.Context, incr int64, set attribute.Set) o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1426,6 +1440,7 @@ func (m ThreadCount) Add(ctx context.Context, incr int64, attrs ...attribute.Key o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1446,6 +1461,7 @@ func (m ThreadCount) AddSet(ctx context.Context, incr int64, set attribute.Set) o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1582,6 +1598,7 @@ func (m UnixFileDescriptorCount) Add(ctx context.Context, incr int64, attrs ...a o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1602,6 +1619,7 @@ func (m UnixFileDescriptorCount) AddSet(ctx context.Context, incr int64, set att o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1744,6 +1762,7 @@ func (m Uptime) Record(ctx context.Context, val float64, attrs ...attribute.KeyV o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -1768,6 +1787,7 @@ func (m Uptime) RecordSet(ctx context.Context, val float64, set attribute.Set) { o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -1904,6 +1924,7 @@ func (m WindowsHandleCount) Add(ctx context.Context, incr int64, attrs ...attrib o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1924,6 +1945,7 @@ func (m WindowsHandleCount) AddSet(ctx context.Context, incr int64, set attribut o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() diff --git a/semconv/v1.41.0/rpcconv/metric.go b/semconv/v1.41.0/rpcconv/metric.go index 5799539ef..7b4acec91 100644 --- a/semconv/v1.41.0/rpcconv/metric.go +++ b/semconv/v1.41.0/rpcconv/metric.go @@ -140,6 +140,7 @@ func (m ClientCallDuration) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -172,6 +173,7 @@ func (m ClientCallDuration) RecordSet(ctx context.Context, val float64, set attr o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -299,6 +301,7 @@ func (m ServerCallDuration) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -331,6 +334,7 @@ func (m ServerCallDuration) RecordSet(ctx context.Context, val float64, set attr o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() diff --git a/semconv/v1.41.0/signalrconv/metric.go b/semconv/v1.41.0/signalrconv/metric.go index 737467cbf..ac9efc6f5 100644 --- a/semconv/v1.41.0/signalrconv/metric.go +++ b/semconv/v1.41.0/signalrconv/metric.go @@ -130,6 +130,7 @@ func (m ServerActiveConnections) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -159,6 +160,7 @@ func (m ServerActiveConnections) AddSet(ctx context.Context, incr int64, set att o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -336,6 +338,7 @@ func (m ServerConnectionDuration) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -365,6 +368,7 @@ func (m ServerConnectionDuration) RecordSet(ctx context.Context, val float64, se o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() diff --git a/semconv/v1.41.0/systemconv/metric.go b/semconv/v1.41.0/systemconv/metric.go index 98edf1630..14d320684 100644 --- a/semconv/v1.41.0/systemconv/metric.go +++ b/semconv/v1.41.0/systemconv/metric.go @@ -338,6 +338,7 @@ func (m CPUFrequency) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -364,6 +365,7 @@ func (m CPUFrequency) RecordSet(ctx context.Context, val int64, set attribute.Se o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -518,6 +520,7 @@ func (m CPULogicalCount) Add(ctx context.Context, incr int64, attrs ...attribute o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -541,6 +544,7 @@ func (m CPULogicalCount) AddSet(ctx context.Context, incr int64, set attribute.S o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -682,6 +686,7 @@ func (m CPUPhysicalCount) Add(ctx context.Context, incr int64, attrs ...attribut o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -705,6 +710,7 @@ func (m CPUPhysicalCount) AddSet(ctx context.Context, incr int64, set attribute. o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -921,6 +927,7 @@ func (m CPUUtilization) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -947,6 +954,7 @@ func (m CPUUtilization) RecordSet(ctx context.Context, val int64, set attribute. o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -1117,6 +1125,7 @@ func (m DiskIO) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1143,6 +1152,7 @@ func (m DiskIO) AddSet(ctx context.Context, incr int64, set attribute.Set) { o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1321,6 +1331,7 @@ func (m DiskIOTime) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1359,6 +1370,7 @@ func (m DiskIOTime) AddSet(ctx context.Context, incr float64, set attribute.Set) o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1513,6 +1525,7 @@ func (m DiskLimit) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1539,6 +1552,7 @@ func (m DiskLimit) AddSet(ctx context.Context, incr int64, set attribute.Set) { o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1693,6 +1707,7 @@ func (m DiskMerged) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1719,6 +1734,7 @@ func (m DiskMerged) AddSet(ctx context.Context, incr int64, set attribute.Set) { o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1895,6 +1911,7 @@ func (m DiskOperationTime) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1931,6 +1948,7 @@ func (m DiskOperationTime) AddSet(ctx context.Context, incr float64, set attribu o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -2098,6 +2116,7 @@ func (m DiskOperations) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -2124,6 +2143,7 @@ func (m DiskOperations) AddSet(ctx context.Context, incr int64, set attribute.Se o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -2290,6 +2310,7 @@ func (m FilesystemLimit) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -2316,6 +2337,7 @@ func (m FilesystemLimit) AddSet(ctx context.Context, incr int64, set attribute.S o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -2520,6 +2542,7 @@ func (m FilesystemUsage) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -2551,6 +2574,7 @@ func (m FilesystemUsage) AddSet(ctx context.Context, incr int64, set attribute.S o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -2764,6 +2788,7 @@ func (m FilesystemUtilization) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -2790,6 +2815,7 @@ func (m FilesystemUtilization) RecordSet(ctx context.Context, val int64, set att o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -2997,6 +3023,7 @@ func (m MemoryLimit) Add(ctx context.Context, incr int64, attrs ...attribute.Key o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -3017,6 +3044,7 @@ func (m MemoryLimit) AddSet(ctx context.Context, incr int64, set attribute.Set) o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -3164,6 +3192,7 @@ func (m MemoryLinuxAvailable) Add(ctx context.Context, incr int64, attrs ...attr o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -3194,6 +3223,7 @@ func (m MemoryLinuxAvailable) AddSet(ctx context.Context, incr int64, set attrib o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -3333,6 +3363,7 @@ func (m MemoryLinuxHugepagesLimit) Add(ctx context.Context, incr int64, attrs .. o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -3353,6 +3384,7 @@ func (m MemoryLinuxHugepagesLimit) AddSet(ctx context.Context, incr int64, set a o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -3491,6 +3523,7 @@ func (m MemoryLinuxHugepagesPageSize) Add(ctx context.Context, incr int64, attrs o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -3511,6 +3544,7 @@ func (m MemoryLinuxHugepagesPageSize) AddSet(ctx context.Context, incr int64, se o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -3656,6 +3690,7 @@ func (m MemoryLinuxHugepagesReserved) Add(ctx context.Context, incr int64, attrs o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -3683,6 +3718,7 @@ func (m MemoryLinuxHugepagesReserved) AddSet(ctx context.Context, incr int64, se o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -3827,6 +3863,7 @@ func (m MemoryLinuxHugepagesSurplus) Add(ctx context.Context, incr int64, attrs o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -3853,6 +3890,7 @@ func (m MemoryLinuxHugepagesSurplus) AddSet(ctx context.Context, incr int64, set o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -3997,6 +4035,7 @@ func (m MemoryLinuxHugepagesUsage) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -4023,6 +4062,7 @@ func (m MemoryLinuxHugepagesUsage) AddSet(ctx context.Context, incr int64, set a o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -4181,6 +4221,7 @@ func (m MemoryLinuxHugepagesUtilization) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -4207,6 +4248,7 @@ func (m MemoryLinuxHugepagesUtilization) RecordSet(ctx context.Context, val int6 o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -4365,6 +4407,7 @@ func (m MemoryLinuxShared) Add(ctx context.Context, incr int64, attrs ...attribu o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -4391,6 +4434,7 @@ func (m MemoryLinuxShared) AddSet(ctx context.Context, incr int64, set attribute o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -4544,6 +4588,7 @@ func (m MemoryLinuxSlabUsage) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -4579,6 +4624,7 @@ func (m MemoryLinuxSlabUsage) AddSet(ctx context.Context, incr int64, set attrib o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -4865,6 +4911,7 @@ func (m NetworkConnectionCount) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -4891,6 +4938,7 @@ func (m NetworkConnectionCount) AddSet(ctx context.Context, incr int64, set attr o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -5093,6 +5141,7 @@ func (m NetworkErrors) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -5130,6 +5179,7 @@ func (m NetworkErrors) AddSet(ctx context.Context, incr int64, set attribute.Set o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -5372,6 +5422,7 @@ func (m NetworkPacketCount) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -5398,6 +5449,7 @@ func (m NetworkPacketCount) AddSet(ctx context.Context, incr int64, set attribut o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -5578,6 +5630,7 @@ func (m NetworkPacketDropped) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -5615,6 +5668,7 @@ func (m NetworkPacketDropped) AddSet(ctx context.Context, incr int64, set attrib o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -5787,6 +5841,7 @@ func (m PagingFaults) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -5813,6 +5868,7 @@ func (m PagingFaults) AddSet(ctx context.Context, incr int64, set attribute.Set) o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -5969,6 +6025,7 @@ func (m PagingOperations) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -5995,6 +6052,7 @@ func (m PagingOperations) AddSet(ctx context.Context, incr int64, set attribute. o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -6166,6 +6224,7 @@ func (m PagingUsage) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -6192,6 +6251,7 @@ func (m PagingUsage) AddSet(ctx context.Context, incr int64, set attribute.Set) o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -6360,6 +6420,7 @@ func (m PagingUtilization) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -6386,6 +6447,7 @@ func (m PagingUtilization) RecordSet(ctx context.Context, val int64, set attribu o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -6555,6 +6617,7 @@ func (m ProcessCount) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -6581,6 +6644,7 @@ func (m ProcessCount) AddSet(ctx context.Context, incr int64, set attribute.Set) o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -6735,6 +6799,7 @@ func (m ProcessCreated) Add(ctx context.Context, incr int64, attrs ...attribute. o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -6755,6 +6820,7 @@ func (m ProcessCreated) AddSet(ctx context.Context, incr int64, set attribute.Se o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -6895,6 +6961,7 @@ func (m Uptime) Record(ctx context.Context, val float64, attrs ...attribute.KeyV o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -6919,6 +6986,7 @@ func (m Uptime) RecordSet(ctx context.Context, val float64, set attribute.Set) { o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() diff --git a/semconv/v1.41.0/vcsconv/metric.go b/semconv/v1.41.0/vcsconv/metric.go index f3dbb40eb..5c8307713 100644 --- a/semconv/v1.41.0/vcsconv/metric.go +++ b/semconv/v1.41.0/vcsconv/metric.go @@ -236,6 +236,7 @@ func (m ChangeCount) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -266,6 +267,7 @@ func (m ChangeCount) AddSet(ctx context.Context, incr int64, set attribute.Set) o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -471,6 +473,7 @@ func (m ChangeDuration) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -502,6 +505,7 @@ func (m ChangeDuration) RecordSet(ctx context.Context, val float64, set attribut o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -703,6 +707,7 @@ func (m ChangeTimeToApproval) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -733,6 +738,7 @@ func (m ChangeTimeToApproval) RecordSet(ctx context.Context, val float64, set at o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -993,6 +999,7 @@ func (m ChangeTimeToMerge) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -1023,6 +1030,7 @@ func (m ChangeTimeToMerge) RecordSet(ctx context.Context, val float64, set attri o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -1276,6 +1284,7 @@ func (m ContributorCount) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -1305,6 +1314,7 @@ func (m ContributorCount) RecordSet(ctx context.Context, val int64, set attribut o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -1504,6 +1514,7 @@ func (m RefCount) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1534,6 +1545,7 @@ func (m RefCount) AddSet(ctx context.Context, incr int64, set attribute.Set) { o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -1762,6 +1774,7 @@ func (m RefLinesDelta) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -1803,6 +1816,7 @@ func (m RefLinesDelta) RecordSet(ctx context.Context, val int64, set attribute.S o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -2045,6 +2059,7 @@ func (m RefRevisionsDelta) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -2084,6 +2099,7 @@ func (m RefRevisionsDelta) RecordSet(ctx context.Context, val int64, set attribu o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -2307,6 +2323,7 @@ func (m RefTime) Record( o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -2338,6 +2355,7 @@ func (m RefTime) RecordSet(ctx context.Context, val float64, set attribute.Set) o := recOptPool.Get().(*[]metric.RecordOption) defer func() { + clear(*o) *o = (*o)[:0] recOptPool.Put(o) }() @@ -2523,6 +2541,7 @@ func (m RepositoryCount) Add( o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }() @@ -2549,6 +2568,7 @@ func (m RepositoryCount) AddSet(ctx context.Context, incr int64, set attribute.S o := addOptPool.Get().(*[]metric.AddOption) defer func() { + clear(*o) *o = (*o)[:0] addOptPool.Put(o) }()